Hello,
in PrestaShop 8.2, PHP 8.0.30, and hummingbird theme, when I want to translate some missing words translations, in International > Translations > theme translation, I get an "undefined" error first:
Then I can't change page in translations tab, and when I reload page i get this error:
Fatal error: Uncaught Error: Failed opening required '/[MYSHOPNAME]/var/cache/dev/appParameters.php' (include_path='/[MYSHOPNAME]/vendor/pear/pear_exception:/[MYSHOPNAME]/vendor/pear/console_getopt:/[MYSHOPNAME]/vendor/pear/pear-core-minimal/src:/[MYSHOPNAME]/vendor/pear/archive_tar:.:') in /[MYSHOPNAME]/config/bootstrap.php:87 Stack trace: #0 /[MYSHOPNAME]/config/config.inc.php(57): require_once() #1 /[MYSHOPNAME]/admin464dtia6o5jeif87njp/index.php(40): require('...') #2 {main} thrown in /[MYSHOPNAME]/config/bootstrap.php on line 87
The line in this file is:
87 $config = require_once _PS_CACHE_DIR_ . 'appParameters.php';
88 array_walk($config['parameters'], function (&$param) {
89 $param = str_replace('%%', '%', $param ?? '');
});
The only thing I found working, is setting permissions 644 on file cache/dev/appParameters.php, but they reset after I make another translation.
I also saw something about OPCache having a impact on this, but I'm not sure.
I would be very thankful if anyone had an idea on how could i solve this.
Tell me if I need to provide more info