Post by kia » Sat Apr 08, 2023 1:47 am

Hello Everybody!

A few months ago I did a fresh installation of OC 3.0.x.x Maintenance branch (https://github.com/opencart/opencart/tr ... aintenance).

Is it possible to downgrade that to the official OC 3.0.3.8 without losing any database records? If this is possible, I would be grateful if someone could provide step by step instructions for downgrading from Maintenance branch to OC 3.0.3.8.

Thanks in advance!

kia
New member

Posts

Joined
Fri Feb 17, 2017 7:23 pm

Post by IP_CAM » Sat Apr 08, 2023 2:39 am

Just to mention it, the official OC v.3.0.3.8 has not been updated for quite some time, I would therefore highly recommend, to stay with the 3.0.3.8 Maintenance Version, and possibly just update it with the latest Release.
https://github.com/opencart/opencart/tr ... aintenance

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by kia » Sat Apr 08, 2023 4:11 am

IP_CAM wrote:
Sat Apr 08, 2023 2:39 am
Just to mention it, the official OC v.3.0.3.8 has not been updated for quite some time, I would therefore highly recommend, to stay with the 3.0.3.8 Maintenance Version, and possibly just update it with the latest Release.
https://github.com/opencart/opencart/tr ... aintenance
The reason that I consider to downgrade from the Maintenance Version to OC 3.0.3.8 is that some extensions, which are developed based on the official release OC 3.0.3.8, are not fully compatible with Maintenance branch and PHP 8, for example I use Bambora extension as the main payment module. I have noticed that selected shipping in checkout page is not passing to that payment modul, so orderline regarding shipping is messing there by the payment module. I have tested it on the official OC 3.0.3.8, and the payment module works well and gets shipping record, but it is not the case by Maintenance Version.

kia
New member

Posts

Joined
Fri Feb 17, 2017 7:23 pm

Post by by mona » Sat Apr 08, 2023 5:16 am

Have you tried just to downgrade the php to 7.4 ?
Have you checked your error logs and modification logs and server logs ?

In theory there should be no issue, but since you have 3.0.3.8 installed as a test, why not import the database and check it?
This might be helpful
https://www.opencart.com/index.php?rout ... sion_id=17

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by kia » Sat Apr 08, 2023 7:56 pm

by mona wrote:
Sat Apr 08, 2023 5:16 am
Have you tried just to downgrade the php to 7.4 ?
Have you checked your error logs and modification logs and server logs ?

In theory there should be no issue, but since you have 3.0.3.8 installed as a test, why not import the database and check it?
This might be helpful
https://www.opencart.com/index.php?rout ... sion_id=17
There is another extension, which doesn't run on PHP 8. So I cannot set PHP from 8 to 7.4 or 7.3. Instead I put this code into .htaccess:
<FilesMatch "\.(php4|php5|php3|php2|php|phtml)$"> SetHandler application/x-httpd-alt-php73___lsphp - PHP 7.3</FilesMatch>

However It is the same result. I seems that issue is not related to PHP version. I checked error_log file. There is nothing about that issue. I don't know where I still should look after. It seems that this payment module does not log any thing when someone tries to pay and payment is rejected.

I do NOT recommend Maintenance branch to someone, who depends on working extensions. I have installed 3 extensions, which are supposed to OC 3.0.3.8. All have gotten issues including this payment module. :-\

kia
New member

Posts

Joined
Fri Feb 17, 2017 7:23 pm

Post by xxvirusxx » Sun Apr 09, 2023 3:07 pm

Just replace the files.

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by JNeuhoff » Sun Apr 09, 2023 9:09 pm

The 3.0.x.x_Maintenance will run just fine with PHP 7.4, so you should try in view of the fact that your payment gateway still requires PHP 7.4.

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 kia » Mon Apr 10, 2023 5:44 am

JNeuhoff wrote:
Sun Apr 09, 2023 9:09 pm
The 3.0.x.x_Maintenance will run just fine with PHP 7.4, so you should try in view of the fact that your payment gateway still requires PHP 7.4.
I tested both with 7.3 and 7.4 with the same result. Shipping data (name, amount) are not passing to payment module

kia
New member

Posts

Joined
Fri Feb 17, 2017 7:23 pm

Post by sales@keynumis.com » Thu May 04, 2023 10:48 am

Same question I was looking for an answer for; running 4.0.2.x, won't install extensions, upgrade 4.0.2.1, can't access admin and to drop to php 8.0 for store to work and now problems restoring the sql. I've had it. Started with latest version late last year without knowing it wasn't ready for prime time and I would like to downgrade to a stable version but don't wish to spend the months I need listing products because there are hundreds and each is unique. The site I've saved locally as well as the sql but the sql might be unrecoverable. Is there a way to downgrade and recover the product listings?


Posts

Joined
Tue Feb 28, 2023 11:49 am

Post by Johnathan » Thu May 04, 2023 9:10 pm

Yes, if you start with a 3.0.3.8 installation, you should be able to then use phpMyAdmin (or some other database manager) to copy the product-related database tables into your database. Those would be the ones that start with "product".

Not all of them exist in 3.0 that exist in 4.0, so if it's missing then you don't need to import it. That should get all your product data into the new installation, although there may be a few other tables (e.g. "seo_url") that you'd want to import.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by kia » Mon May 08, 2023 8:30 pm

That is unbelievable. OpenCart has released the first version approx. one year ago, and since the first version, several 4 versions have come out, and all Opencart developers say that none of them are stable yet. I don't know if they can't bear or don't bother to update their extensions anymore, or none of 4.x versions are stable enough in reality. Updating of many extensions have their own history. I've been using Opencart for many years and the only version that was most stable in terms of the actual opencart core and extensions was 2.3.0.2. This year I have updated to the 3.0.3.8 Maintenance version, and problems have started especially in relation to some extensions. Maybe this has nothing to do with this thread, but I need to get my frustrations out :'( . I am considering switching to either WooCommerce or Shopify now.

kia
New member

Posts

Joined
Fri Feb 17, 2017 7:23 pm

Post by IP_CAM » Mon May 08, 2023 9:34 pm

the only version that was most stable in terms of the actual Opencart core and extensions was 2.3.0.2
Well, Nobody ever told you, to move up in Versions, for not one good reason at all. OC v.2.3.0.2 is still running well, and some Contributors are still upgrading them to even work with PHP v.8.x:
https://github.com/condor2/Opencart_230x_PHP_8
So, better don't complain, because you did not pay for them, just to always belong to the last (free) Version Users ... ::)

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by by mona » Tue May 09, 2023 1:41 am

sales@keynumis.com wrote:
Thu May 04, 2023 10:48 am
Same question I was looking for an answer for; running 4.0.2.x, won't install extensions, upgrade 4.0.2.1, can't access admin and to drop to php 8.0 for store to work and now problems restoring the sql. I've had it. Started with latest version late last year without knowing it wasn't ready for prime time and I would like to downgrade to a stable version but don't wish to spend the months I need listing products because there are hundreds and each is unique. The site I've saved locally as well as the sql but the sql might be unrecoverable. Is there a way to downgrade and recover the product listings?
ALWAYS DO A FULL BACKUP OF FILES AND FULL DATABASE BEFORE ANY MAJOR WORK ON YOR SITE
Check with your host they probably do one for you, if not, use a better host in future.

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by by mona » Tue May 09, 2023 1:42 am

kia wrote:
Mon May 08, 2023 8:30 pm
I don't know if they can't bear or don't bother to update their extensions anymore, or none of 4.x versions are stable enough in reality.
It is not stable enough in reality
kia wrote:
Mon May 08, 2023 8:30 pm
This year I have updated to the 3.0.3.8 Maintenance version, and problems have started especially in relation to some extensions
Yes you will, many many php warnings .. but think about it .. php language was changed, so that effects all php files .. nothing to do with opencart, not the extension developers. England has a new King .. the postboxes all say EIIR .. they all have to be changed - just is

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by kia » Fri May 19, 2023 5:36 am

IP_CAM wrote:
Mon May 08, 2023 9:34 pm
the only version that was most stable in terms of the actual Opencart core and extensions was 2.3.0.2
Well, Nobody ever told you, to move up in Versions, for not one good reason at all. OC v.2.3.0.2 is still running well, and some Contributors are still upgrading them to even work with PHP v.8.x:
https://github.com/condor2/Opencart_230x_PHP_8
So, better don't complain, because you did not pay for them, just to always belong to the last (free) Version Users ... ::)
The main reason for upgrading to Maintenance version was PHP 8. The official release 3.0.3.8 does not support PHP 8.x. My hosting provider will turn off PHP 7.4 soon. I don't mean that the Maintenance version is buggy. The problems are the extensions, which are developed based on official release 3.0.3.8. Most of them will get more or less problems running on Maintenance version, and if you ask a developer why, he may say my extension does not support GitHub version :laugh:

OpenCart needs release an "stabil official" version (it is for me absolutely the same if it is 3.x or 4.x) supporting PHP 8.x as soon as possible. The most seriously hosting provider will turn off PHP 7.x in the near future. As for custom version 2.3.0.2 in the matter of PHP 8, this will not help much. You cannot run an efficient OpenCart store without additional functionalities, so you are dependent on extensions. Most extensions developed for 2.3.0.2 cannot work on PHP 8.x.

kia
New member

Posts

Joined
Fri Feb 17, 2017 7:23 pm

Post by by mona » Fri May 19, 2023 8:50 pm

Dear Kia,

You seem not to understand how it works.

Opencart does what Opencart does. It is free software. OC3 supporting php8 was developed by the community (JNeuhoff and xxvirusxx mainly I think but someone might correct me on that) and is available free of charge also. No one has to do anything for free. Presumably your site is for paying customers ? Use some of that profit to develop your site and you will have no problems.

Your modules will be created for php7.4 and I am sure if you ask the developers they will be prepared to upgrade them for php8 for a small fee. Alternatively you can ask for commercial support.

In addition OC4 will not support any of your extensions since OCMOD no longer exists.

Kind Regards,

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am
Who is online

Users browsing this forum: No registered users and 17 guests