Jump to content

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


marketyellow3
 Share

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)

Share this post


Link to post
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.

  • Thanks 2

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More