Post by crosland » Thu Nov 02, 2023 1:15 am

Trying to upgrade from 3.0.3.2/PHP7 to 3.0.3.9/PHP8 is causing me headaches (see my other posts) so I made a fresh install from the OC 3.0.3.9 download in my localhost (Ubuntu in WSL2).

I moved the storage dir, renamed the admin dir, set the paths correctly in the two config.php and all seemed OK but, of course I have no products, just the demo site.

In admin, I tried to restore the database from a file previously backed up from 3.0.3.2, but this failed with localhost saying "internal server error".

Now the shop site says "/var/www/html/system/library/log.php on line 22Error: A theme has not been assigned to this store!"

The admin page returns "This page isn’t working, localhost is currently unable to handle this request.
HTTP ERROR 500"

So the site is completely broken.

How do I get my products into a fresh install?

Can I even do this?

Do I first need to make a fresh 3.0.3.2, restore the db and then upgrade?
Last edited by crosland on Thu Nov 02, 2023 3:30 am, edited 2 times in total.

Active Member

Posts

Joined
Fri Sep 13, 2019 9:04 pm

Post by JNeuhoff » Thu Nov 02, 2023 1:43 am

You could use the Export/Import tool to port your product data to your new OpenCart 3.0.3.9 server. See also our FAQ.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by crosland » Thu Nov 02, 2023 2:01 am

JNeuhoff wrote:
Thu Nov 02, 2023 1:43 am
You could use the Export/Import tool to port your product data to your new OpenCart 3.0.3.9 server. See also our FAQ.
Thanks for responding, but that's exactly what I did. The problem was that I forgot to drop the database for the demo site, before importing, in the new installation.

Now, it's almost working, but I am seeing a LOT of warnings on the shop pages and in the error log:

Code: Select all

2023-11-01 17:39:32 - PHP Unknown:  preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/html/system/engine/action.php on line 65
Any idea why parameter #3 $this->route is null?

Code: Select all

 $class = 'Controller' . preg_replace('/[^a-zA-Z0-9]/', '', $this->route);
Something to do with SEO friendly URLs?

Active Member

Posts

Joined
Fri Sep 13, 2019 9:04 pm

Post by crosland » Thu Nov 02, 2023 3:18 am

I tried the fix from viewtopic.php?t=231227#p856772 but no luck.

Active Member

Posts

Joined
Fri Sep 13, 2019 9:04 pm

Post by crosland » Thu Nov 02, 2023 3:29 am

Even though I have no modifications, I still needed to refresh the (non-existent) modifications. After this the site seems to be working

Active Member

Posts

Joined
Fri Sep 13, 2019 9:04 pm
Who is online

Users browsing this forum: No registered users and 6 guests