SzymonBl Posted November 28, 2024 Share Posted November 28, 2024 (edited) 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 Edited November 30, 2024 by SzymonBl Problem solved (see edit history) Link to comment Share on other sites More sharing options...
SzymonBl Posted November 30, 2024 Author Share Posted November 30, 2024 Anyone? Link to comment Share on other sites More sharing options...
ComGrafPL Posted November 30, 2024 Share Posted November 30, 2024 Is it only on custom theme translation or classic / modules also? Link to comment Share on other sites More sharing options...
SzymonBl Posted November 30, 2024 Author Share Posted November 30, 2024 It was on every translation. I forgot to delete post/mark it as solved, but i managed to get it running, and I just forced appParameters.php to have 644 permissions, by adding a php file inside presta install folder: <?php $file = '/bigvape/var/cache/dev/appParameters.php'; if (file_exists($file)) { chmod($file, 0644); // Set permissions to 644 echo "Permissions set to 644 for appParameters.php."; } else { echo "File not found: $file"; } ?> 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now