epesi Project Leader Od Poland Użytkownik od paź 2018 epesi 4 lip 2022 03:42 Using Softaculous in cPanel I made a full backup of the site and performed an upgrade with confirmation that the software was upgraded successfully. However the site was not working with Server error 500. I restored the site from the backup but the site was still not opening with the error message: PHP Fatal error: Cannot declare class vmod, because the name is already in use in /home/user/public_html/includes/library/lib_vmod.inc.php on line 3 Please advise. Best regards, Janusz
tim Founder Od Sweden Użytkownik od maj 2013 tim 4 lip 2022 04:59 Incompatible modifications is commonly the cause when having trouble after an upgrade. It is possible you still have some remains after restoring your backup. Substitute the entire folder with your backup. Restore the database to the backup. Otherwise remove or disable any modifications. It seems like something is trying to load lib_vmod.inc.php twice. It should only be loaded once in app_header.inc.php.
epesi Project Leader Od Poland Użytkownik od paź 2018 epesi 4 lip 2022 20:42 Thank you Tim for the tip, I will try this.
epesi Project Leader Od Poland Użytkownik od paź 2018 epesi 12 lip 2022 17:29 It worked. It looks like some additional files and folders were left from the failed upgrade. After making the entire directory when Litecart was installed empty and then restoring the backup from before the upgrade I no longer get the error PHP Fatal error: Cannot declare class vmod, because the name is already in use in /home/user/public_html/includes/library/lib_vmod.inc.php on line 3
tim Founder Od Sweden Użytkownik od maj 2013 tim 13 lip 2022 15:37 Good to hear you are on track again. Do you know which upgrade patch that halted?
epesi Project Leader Od Poland Użytkownik od paź 2018 epesi 14 lip 2022 01:23 Not yet. I will try new upgrade soon. Which PHP version do you recommend?
tim Founder Od Sweden Użytkownik od maj 2013 tim 14 lip 2022 05:54 PHP 8.1 will work but I would recommend 8.0 which does not halt with a fatal error for strict variable types.