ezigo36 Posted November 4, 2019 Share Posted November 4, 2019 Hello everyone! I tried to upgrade to the latest version of prestashop but things didn't go well. As a result, I rolled back the files and the database to a previous restore point. The front-end works great but I cannot access the back-office (blank page). I turned on debug mode and this is what i get: Any ideas? Link to comment Share on other sites More sharing options...
PCQUATRO Posted November 5, 2019 Share Posted November 5, 2019 On 11/4/2019 at 11:40 AM, ezigo36 said: Hello everyone! I tried to upgrade to the latest version of prestashop but things didn't go well. As a result, I rolled back the files and the database to a previous restore point. The front-end works great but I cannot access the back-office (blank page). I turned on debug mode and this is what i get: Any ideas? Clear the shops cache... And if that doesn´t do it, delete /var/cache/prod/* using FTP cliente... Best regards Link to comment Share on other sites More sharing options...
friweb99 Posted November 5, 2019 Share Posted November 5, 2019 I can't access to BO I'd clear cache using FTP but nothing change... Link to comment Share on other sites More sharing options...
PCQUATRO Posted November 5, 2019 Share Posted November 5, 2019 (edited) Try to enter debug mode by following this post -> Essentialy, using FTP Client, you have to go to /config/defines.inc.php and change this line define('_PS_MODE_DEV_', false); to this define('_PS_MODE_DEV_', true); Sorry i forgot you have already done that try to comment the line it mentions 1403, or even rename phpdumper.php... Also read this -> https://blog.floriancourgey.com/2018/04/understanding-the-cache-of-prestashop-1-7-and-symfony/ Remember Allways BACKUP first... How did you restore to a previous version?? over the current files?? or you deleted the files than copied them back? you should also read this -> Best regards Edited November 5, 2019 by PCQUATRO (see edit history) 3 Link to comment Share on other sites More sharing options...
friweb99 Posted November 5, 2019 Share Posted November 5, 2019 I'd comment line 1403 and everything works!!!! You saved my life Could I will have problems without this line? Thx a lot Link to comment Share on other sites More sharing options...
PCQUATRO Posted November 5, 2019 Share Posted November 5, 2019 40 minutes ago, friweb99 said: I'd comment line 1403 and everything works!!!! You saved my life Could I will have problems without this line? Thx a lot Nice. As for the question i don´t know the answer for that. What i do know is that if you intend to upgrade your shop i´d suggest a clean install, than migrate the shop for the new install. it´s allways better to do a fresh install… Or you can clone your shop into a subdomain than do your upgrade there, never in a live shop... Best Regards Link to comment Share on other sites More sharing options...
friweb99 Posted November 5, 2019 Share Posted November 5, 2019 ok thanks again Link to comment Share on other sites More sharing options...
Armando027160 Posted December 4, 2019 Share Posted December 4, 2019 Hello, I am from France and I have exactly the same problem line 1403. But I do not understand what to do when you say: "I'd comment line 1403" What exactly are you doing at this line? thank you for your comeback Armando Link to comment Share on other sites More sharing options...
PCQUATRO Posted December 4, 2019 Share Posted December 4, 2019 2 hours ago, Armando027160 said: What exactly are you doing at this line? thank you for your comeback Use Comment tags -> /* code */ Best regards Link to comment Share on other sites More sharing options...
NamaRawras Posted December 4, 2019 Share Posted December 4, 2019 On 11/5/2019 at 9:26 PM, PCQUATRO said: Try to enter debug mode by following this post -> Essentialy, using FTP Client, you have to go to /config/defines.inc.php and change this line define('_PS_MODE_DEV_', false); to this define('_PS_MODE_DEV_', true); Sorry i forgot you have already done that try to comment the line it mentions 1403, or even rename phpdumper.php... Also read this -> https://blog.floriancourgey.com/2018/04/understanding-the-cache-of-prestashop-1-7-and-symfony/bpl Remember Allways BACKUP first... How did you restore to a previous version?? over the current files?? or you deleted the files than copied them back? you should also read this -> Best regards Debugging help a lot but once i messed up my shop and even debug did not help. Now, to be on the safe side i have always test the upgrade on separate install. 1 Link to comment Share on other sites More sharing options...
Armando027160 Posted December 5, 2019 Share Posted December 5, 2019 17 hours ago, PCQUATRO said: Use Comment tags -> /* code */ Best regards Thank you for your return, but I'm a bit nil and do not understand what to register and where? here is my 1403 php line. If you could be a little more precise it would be nice. Link to comment Share on other sites More sharing options...
PCQUATRO Posted December 5, 2019 Share Posted December 5, 2019 3 hours ago, Armando027160 said: Thank you for your return, but I'm a bit nil and do not understand what to register and where? here is my 1403 php line. If you could be a little more precise it would be nice. If you don´t know what you are doing, it´s better not do it, you might do more arm than good!!! Lets say you want to coment out the line that says "return 0 === strpos($class, '\\')…" you would do this "/* return 0 === strpos($class, '\\')… */" If for instance it´s na if statemente you have to comment the all block. Note: by your exxample i don´t know whitch one is line 1403! Best Regards Link to comment Share on other sites More sharing options...
Jozef252 Posted December 15, 2019 Share Posted December 15, 2019 (edited) Hello, Please help! I have the same issue but don't know how to comment 1403 line: throw new RuntimeException(sprintf('Cannot dump definition because of invalid class name (%s)', $class ?: 'n/a')); Thank You. Edited December 15, 2019 by Jozef252 uploading picture (see edit history) Link to comment Share on other sites More sharing options...
selectshop.at Posted December 15, 2019 Share Posted December 15, 2019 Commenting lines in php: simply add /** to first line and */ to last line, or if it is only one line than begin the line with /** and add to end of line */ Link to comment Share on other sites More sharing options...
Jozef252 Posted December 15, 2019 Share Posted December 15, 2019 after adding : simply add /** to first line and */ to last line, or if it is only one line than begin the line with /** and add to end of line */ I get tis error: Link to comment Share on other sites More sharing options...
Jozef252 Posted December 15, 2019 Share Posted December 15, 2019 could you please specify what is first line and last line, i am very beginner. thank you. Link to comment Share on other sites More sharing options...
Jozef252 Posted December 15, 2019 Share Posted December 15, 2019 I have solved issue with programmer help. thank you for help. Link to comment Share on other sites More sharing options...
Massimo333 Posted December 17, 2019 Share Posted December 17, 2019 I have the same issue and I try to comment tjhe line 1403 but th problem is the same: how can I solve this problem? Link to comment Share on other sites More sharing options...
Jozef252 Posted December 18, 2019 Share Posted December 18, 2019 commented line 1403: /** throw new RuntimeException(sprintf('Cannot dump definition because of invalid class name (%s)', $class ?: 'n/a')); */ and deleted cache via ftp. Link to comment Share on other sites More sharing options...
libreriasemola Posted January 9, 2020 Share Posted January 9, 2020 Hallo PcQuatro I did as you suggested, add a comment on line 1403, and it works. I guess the problem was born when apdeting faceted navigation module on PS 1.7.3.1. thank you Corrado Link to comment Share on other sites More sharing options...
Looping59 Posted January 27, 2020 Share Posted January 27, 2020 (edited) @ Jozef252 I have the same problem, I comenter the line in question which just changed my error message. Can you confirm that there are only the two files (dev / prod) in the CACHE folder of the APP folder to delete? Thank you for your help. 3 days that I seek ... Edited January 27, 2020 by Looping59 (see edit history) Link to comment Share on other sites More sharing options...
JonnyMozzy Posted October 18, 2020 Share Posted October 18, 2020 yes, comment works. But im little bit nervous about PhpDumper.php:1403 what will be the aftermath, and what it this fuction doing. Link to comment Share on other sites More sharing options...
Saqib Ijaz Posted April 14, 2021 Share Posted April 14, 2021 RuntimeException in PhpDumper.php line 1403:Cannot dump definition because of invalid class name (NULL) in PhpDumper.php line 1403 at PhpDumper->dumpLiteralClass('NULL') in PhpDumper.php line 790 at PhpDumper->addNewInstance('_defaults', object(Definition), 'return ', '$this->services['_defaults'] = ') in PhpDumper.php line 394 at PhpDumper->addServiceInstance('_defaults', object(Definition)) in PhpDumper.php line 639 at PhpDumper->addService('_defaults', object(Definition)) in PhpDumper.php line 666 at PhpDumper->addServices() in PhpDumper.php line 145 at PhpDumper->dump(array('class' => 'appDevDebugProjectContainer', 'base_class' => 'Container', 'namespace' => '', 'debug' => true, 'file' => '/home/interlinkcap/public_html/app/cache/dev/appDevDebugProjectContainer.php')) in bootstrap.php.cache line 2846 at Kernel->dumpContainer(object(ConfigCache), object(ContainerBuilder), 'appDevDebugProjectContainer', 'Container') in bootstrap.php.cache line 2759 at Kernel->initializeContainer() in bootstrap.php.cache line 2533 at Kernel->boot() in bootstrap.php.cache line 2564 at Kernel->handle(object(Request), '1', false) in index.php line 86 kindly help me out from this problem Link to comment Share on other sites More sharing options...
squito mantis Posted April 21, 2021 Share Posted April 21, 2021 Hello, I am new to prestashop and i have come across the error runtimeexception in phpdumper.php line 1403. can someone please tell me where to access this phpdumper.php file through cPanel? 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