DArnaez Posted February 23 Share Posted February 23 (edited) Running 1-Click Upgrade module I did the upgrade from 1.7.11 to 8.2. The process finished without errors. I tried to logout to login but I can't access to the admin anymore. Now in Debug mode you can see the error. Symfony\Component\ErrorHandler\Error\UndefinedMethodError in modules/pkamp/classes/Amp.php (line 52) $confOrdered = []; // get module config from file if ($f = @fopen(\Pkamp::CONFIG_FILE, 'r')) { $json_config = fread($f, filesize(\Pkamp::CONFIG_FILE)); if ($configObj = \Tools::jsonDecode($json_config)) { $fileConfig = (array)$configObj; } } // get module config from DB _________________________________ Please any help will be very thankful... is ohmyicons.com Thanks! Edited February 23 by DArnaez (see edit history) Link to comment Share on other sites More sharing options...
Knowband Plugins Posted February 24 Share Posted February 24 It's module compatibility issues. The module is not compatible with PS8 (The function used in the module is deprecated in the Prestashop) I can see the error on the website related to "creativeelements". It seems the version of the creativeelements is also not compatible. Link to comment Share on other sites More sharing options...
Prestashop Addict Posted February 24 Share Posted February 24 (edited) rename folder module pkamp to bug-pkamp Edited February 24 by Prestashop Addict (see edit history) Link to comment Share on other sites More sharing options...
DArnaez Posted February 24 Author Share Posted February 24 (edited) Hey guy! first thank you so much for your help. To prestashop Adict - Yesterday night I just deleted the folder "pkamp". Now the site in Debug Mode and shows: Fatal error: Uncaught Symfony\Component\Yaml\Exception\ParseException: Duplicate key "displayHeaderBuilder" detected at line 372 (near " - creativeelements"). in /home2/arnaezst/ohmyicons.com/vendor/symfony/symfony/src/Symfony/Component/Yaml/Parser.php:347 Stack trace: #0 /home2/arnaezst/ohmyicons.com/vendor/symfony/symfony/src/Symfony/Component/Yaml/Parser.php(533): Symfony\Component\Yaml\Parser->doParse(Array, 0) #1 /home2/arnaezst/ohmyicons.com/vendor/symfony/symfony/src/Symfony/Component/Yaml/Parser.php(329): Symfony\Component\Yaml\Parser->parseBlock(237, 'header:\n - pkc...', 0) #2 /home2/arnaezst/ohmyicons.com/vendor/symfony/symfony/src/Symfony/Component/Yaml/Parser.php(533): Symfony\Component\Yaml\Parser->doParse(Array, 0) #3 /home2/arnaezst/ohmyicons.com/vendor/symfony/symfony/src/Symfony/Component/Yaml/Parser.php(329): Symfony\Component\Yaml\Parser->parseBlock(172, 'custom_hooks:\n ...', 0) #4 /home2/arnaezst/ohmyicons.com/vendor/symfony/symfony/src/Symfony/Component/Yaml/Parser.php(533): Symfony\Component\Yaml in /home2/arnaezst/ohmyicons.com/classes/Hook.php on line 434 Question to "Knowband Plugins" : what should I do? I have only access to File manager from the cpanel. I can't access to the Prestashop admin... the error is Symfony\Component\ErrorHandler\Error\ UndefinedMethodError in modules/pkheaderitems/pkheaderitems.php (line 373) return false; } $json_config = fread($f, filesize($this->config_file)); if ($configObj = Tools::jsonDecode($json_config)) { return (array)$configObj; } return false; Edited February 24 by DArnaez (see edit history) Link to comment Share on other sites More sharing options...
DArnaez Posted February 24 Author Share Posted February 24 Genius! I rename the folder "pkheaderitems" to ""bug-pkheaderitem" and it works! Now I'm in Admin dashboard! Thanks brother! Now I need to find the way to make the store working. Link to comment Share on other sites More sharing options...
Knowband Plugins Posted February 25 Share Posted February 25 Temporary solution: Go to the override/classes folder & create a file i.e. Tools.php & add the following content. <?php class Tools extends ToolsCore { public static function jsonDecode($data, $assoc = false, $depth = 512, $options = 0) { return json_decode($data, $assoc, $depth, $options); } public static function jsonEncode($data, $options = 0, $depth = 512) { return json_encode($data, $options, $depth); } } Now clear the cache. Rename the folder to the original folder & (i.e. bug-pkheaderitem to pkheaderitem etc) it should work now. Permanent Solution: Upgrade the theme which is compatible with PHP8. 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