Jump to content

src/PrestaShopBundle/Resources/config/services/adapter/news.yml" does not contain valid YAML


marketyellow3

Recommended Posts

Hello,

After upgrading my PHP version to 7.2.34 my backoffice wont load anymore more, i have enabled the debug mode and received this order:

(3/3) FileLoaderLoadException

The file "/home/autotravel/domains/autoonderdelenexpres.nl/public_html/src/PrestaShopBundle/Resources/config/services/adapter/news.yml" does not contain valid YAML: The constant "\PrestaShop\PrestaShop\Adapter\News\NewsDataProvider::CLOSED_ALLOWED_FAILURES" is not defined at line 10 (near "- !php/const \PrestaShop\PrestaShop\Adapter\News\NewsDataProvider::CLOSED_ALLOWED_FAILURES") in /home/autotravel/domains/autoonderdelenexpres.nl/public_html/src/PrestaShopBundle/Resources/config/services/adapter/news.yml (which is being imported from "/home/autotravel/domains/autoonderdelenexpres.nl/public_html/src/PrestaShopBundle/Resources/config/services.yml").

Does anyone know how to resolve this error?

I am using Prestashop 1.7.6.9  and php version 7.2.34

 

 

 

Edited by marketyellow3 (see edit history)
Link to comment
Share on other sites

Hi,

I've solved the problem by just removing the news.yml file in "src/PrestaShopBundle/Resources/config/services/adapter/" if you get an error after removing that file replace the whole src map from Prestashop 1.7.6.9 download. When you restore your server the files are overwritten but new created files will stay on your server.

  • Like 1
  • Thanks 2
Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...