Jump to content

Error_log: PHP Warning, PHP Fatal error in TranslationsExtension.php


ljubica

Recommended Posts

I've alredy had this problem and I could not solve it... it's happening again and I do not know what to do... Hope someone will be able to help me or at least point me who to turn to.
 
Everything worked fine until I started to translate. I translated using the "Modify translations" section.
Then error_log appeared in Admin directory. 

[12-Mar-2017 14:05:03 Europe/Belgrade] PHP Warning:  Invalid argument supplied for foreach() in /home/xxxxx/public_html/src/PrestaShopBundle/Twig/TranslationsExtension.php on line 115
[12-Mar-2017 14:05:03 Europe/Belgrade] PHP Warning:  reset() expects parameter 1 to be array, null given in /home/xxxxx/public_html/src/PrestaShopBundle/Twig/TranslationsExtension.php on line 143
[12-Mar-2017 14:08:20 Europe/Belgrade] PHP Fatal error:  Uncaught exception 'RuntimeException' with message 'Failed to write cache file "/home/xxxxx/public_html/app/cache/prod/classes.php".' in /home/xxxxx/public_html/vendor/symfony/symfony/src/Symfony/Component/ClassLoader/ClassCollectionLoader.php:278
Stack trace:
#0 /home/xxxxx/public_html/vendor/symfony/symfony/src/Symfony/Component/ClassLoader/ClassCollectionLoader.php(152): Symfony\Component\ClassLoader\ClassCollectionLoader::writeCacheFile('/home/xxxxx/...', '<?php \nnamespac...')
#1 /home/xxxxx/public_html/app/bootstrap.php.cache(2665): Symfony\Component\ClassLoader\ClassCollectionLoader::load(Array, '/home/xxxxx/...', 'classes', false, false, '.php')
#2 /home/xxxxx/public_html/app/bootstrap.php.cache(2500): Symfony\Component\HttpKernel\Kernel->doLoadClassCache('classes', '.php')
#3 /home/xxxxx/public_html/app/bootstrap.php.cache(2534): Symfony\Component\HttpKernel\Kernel->boot()
#4 /home/xxxxx/public_html/admin/index.php(86): Symfony\Component\HttpKernel\Kernel->handle(Object( in /home/xxxxx/public_html/vendor/symfony/symfony/src/Symfony/Component/ClassLoader/ClassCollectionLoader.php on line 278
[12-Mar-2017 17:31:55 Europe/Belgrade] PHP Warning:  array_key_exists() expects parameter 2 to be array, string given in /home/xxxxx/public_html/src/PrestaShopBundle/Twig/TranslationsExtension.php on line 305

1.line-218.line - are same
225.-481. line - are same
 
 
Last time I did not notice error_log until there was an increasing problem. After that I was no longer able to log in as admin. I wrote about this issue here:
https://www.prestashop.com/forums/topic/596811-error-log-php-fatal-error-translation-not-found/?do=findComment&comment=2516323
 
I have to translate the site, but this is impossible in this way.
 
 
Thanks in advance

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

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...