epesi Project Leader From Poland Member since Oct 2018 epesi Jul 4 2022 03:42 AM 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 From Sweden Member since May 2013 tim Jul 4 2022 04:59 AM 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 From Poland Member since Oct 2018 epesi Jul 4 2022 08:42 PM Thank you Tim for the tip, I will try this.
epesi Project Leader From Poland Member since Oct 2018 epesi Jul 12 2022 05:29 PM 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 From Sweden Member since May 2013 tim Jul 13 2022 03:37 PM Good to hear you are on track again. Do you know which upgrade patch that halted?
epesi Project Leader From Poland Member since Oct 2018 epesi Jul 14 2022 01:23 AM Not yet. I will try new upgrade soon. Which PHP version do you recommend?
tim Founder From Sweden Member since May 2013 tim Jul 14 2022 05:54 AM PHP 8.1 will work but I would recommend 8.0 which does not halt with a fatal error for strict variable types.