Post by drrevans » Mon Nov 29, 2021 1:36 am

I have been told by my provider that I need to upgrade to the latest version of Open Cart. I am at 1.5.4.1. I bought a theme years ago and I like it and that person is no longer providing updates. Is there some steps I can take to upgrade my theme so it doesn't break when I upgrade to the latest version of Open Cart?

New member

Posts

Joined
Mon Nov 29, 2021 1:31 am

Post by OSWorX » Mon Nov 29, 2021 2:18 am

drrevans wrote:
Mon Nov 29, 2021 1:36 am
I have been told by my provider that I need to upgrade to the latest version of Open Cart. I am at 1.5.4.1. I bought a theme years ago and I like it and that person is no longer providing updates. Is there some steps I can take to upgrade my theme so it doesn't break when I upgrade to the latest version of Open Cart?
Yes .. and no.
1. have you the knowledge about the twig engine
2. have you the knowledge to edit css (stylesheets)
3. have you the knowledge to edit php code

If you can say 3 times yes, go ahead - and we will see us here in 1 week again (maybe, or 2, 3 ..).
If not, better post that as a "commercial request" here: viewforum.php?f=88

And a few final tips:

(A) do NOT upgrade BEFORE you have not updated the theme/template!
(B) always make a backup BEFORE you update (fiels and database)
(C) perform the update on a "dev" environement first, NEVER on the live shop (if everything went okay, you can go ahead and do it on the live shop)
(D) keep as long as possible the live shop alive (see tip (C) )

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by johnp » Mon Nov 29, 2021 3:44 am

Good advice from OSWorX. It's a common problem. I suggest upgrading to 1.5.6.4/5 with the default theme and plan your further upgrades from there. It will buy you some time. Once on a newer version you might be better off buying a similar theme or customizing the OC default theme to look similar to the one you have now. If you don't have the confidence or knowledge to proceed then maybe post in the commercial forum and get some help.

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by drrevans » Mon Nov 29, 2021 4:37 am

I don't have the experience to know what changes need to be made to the theme I purchased so I guess I will have to try to find something similar. If I find something that is compatible with the latest open cart, then it is just a matter of following the documentation as I did with the other theme, correct?

New member

Posts

Joined
Mon Nov 29, 2021 1:31 am

Post by OSWorX » Mon Nov 29, 2021 5:20 pm

drrevans wrote:
Mon Nov 29, 2021 4:37 am
I don't have the experience to know what changes need to be made to the theme I purchased so I guess I will have to try to find something similar.
If the used theme/template is that unique or important for you, a migration might make sense - but beware, the cost for such will be around 600 - 800,- Euro.
drrevans wrote:
Mon Nov 29, 2021 4:37 am
If I find something that is compatible with the latest open cart, then it is just a matter of following the documentation as I did with the other theme, correct?
Correct.

Finally, I guess you want to convert also the database data to have them again when updated.
This task needs a few more steps and from my experience (and search this forum here), you will need some assistence doing so - otherwise it will not work.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by drrevans » Mon Nov 29, 2021 6:50 pm

Thanks. I forgot all about my data. I will do a search on data migration. It might be less headache to just hire someone to upgrade my current theme.

New member

Posts

Joined
Mon Nov 29, 2021 1:31 am

Post by xxvirusxx » Mon Nov 29, 2021 7:02 pm

What is the theme name? I am curious how is look

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 drrevans » Mon Nov 29, 2021 7:39 pm

The theme is called Fashion Grey. I can’t even show you a picture as my site is down after they upgraded php to 7.3. I took it back but have an issue with Admin that I am trying to resolve. I can always find another theme, I guess.

New member

Posts

Joined
Mon Nov 29, 2021 1:31 am

Post by xxvirusxx » Mon Nov 29, 2021 7:47 pm

drrevans wrote:
Mon Nov 29, 2021 7:39 pm
my site is down after they upgraded php to 7.3.
Here you can read how to temporary fix the store on PHP 7.x
https://www.free-time-info.com/en/how-t ... ting.html/

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 EvolveWebHosting » Tue Nov 30, 2021 8:56 am

While you're in the process of upgrading, I'm going to suggest using PHP 7.4 (would suggest PHP 8.x but I don't believe Opencart supports it yet). Security updates for PHP 7.3 end in 5 days: https://www.php.net/supported-versions.php

2 Week FREE Trial of our Shared Hosting plans (DIrectAdmin or cPanel) for new customers
2 Week FREE Trial of Astra Firewall and Malware Scanner
Visit our website for full details and to start your trial today - www.evolvewebhost.com


User avatar
Active Member

Posts

Joined
Fri Mar 27, 2015 11:13 pm
Location - Denver, Colorado, USA

Post by drrevans » Tue Nov 30, 2021 12:46 pm

xxvirusxx: I tried this link and it doesn't work, is there another: https://www.free-time-info.com/en/how-t ... ting.html/

New member

Posts

Joined
Mon Nov 29, 2021 1:31 am

Post by xxvirusxx » Tue Nov 30, 2021 5:04 pm

1. Edit both config files and change from :

Code: Select all

define('DB_DRIVER', 'mysql');
to

Code: Select all

define('DB_DRIVER', 'mysqli');
2. Download Opencart 1.5.6.4 archive, extract it, then copy mysqli.php from system/database and upload on your store in the same location
3. Copy db.php from system/library (Opencart 1.5.6.4) and upload on your store, same location.
Last edited by xxvirusxx on Wed Dec 01, 2021 10:34 pm, edited 1 time in total.

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 drrevans » Tue Nov 30, 2021 11:58 pm

Thank you. Got it.

New member

Posts

Joined
Mon Nov 29, 2021 1:31 am

Post by drrevans » Wed Dec 01, 2021 9:17 pm

RE: 3. Copy db.php from system/database (Opencart 1.5.6.4) and upload on your store, same location.
I didn't find the db.php in that system/database folder. It is in the system/library folder.

New member

Posts

Joined
Mon Nov 29, 2021 1:31 am

Post by xxvirusxx » Wed Dec 01, 2021 10:36 pm

Yes, library.
I have corrected :)

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 drrevans » Thu Dec 02, 2021 1:44 pm

That worked and the site comes up but getting several warnings with 2 of them regarding session.php:

Warning: session_start(): open(/var/php_sessions/sess_it0jutjs7bftq2k9do3s48fahuqrbe2s, O_RDWR) failed: No such file or directory (2) in /hermes/bosnacweb05/bosnacweb05bi/b2285/ipg.drrevans/wp_site_1626524447/store/system/library/session.php on line 11
Warning: session_start(): Failed to read session data: files (path: /var/php_sessions) in /hermes/bosnacweb05/bosnacweb05bi/b2285/ipg.drrevans/wp_site_1626524447/store/system/library/session.php on line 11

This is what is in session.php:
<?php
final class Session {
public $data = array();

public function __construct() {
if (!session_id()) {
ini_set('session.use_cookies', 'On');
ini_set('session.use_trans_sid', 'Off');

session_set_cookie_params(0, '/');
session_start();
}

$this->data =& $_SESSION;
}
}
?>

New member

Posts

Joined
Mon Nov 29, 2021 1:31 am

Post by ADD Creative » Thu Dec 02, 2021 6:02 pm

Looks like your PHP session.save_path is pointing to somewhere that can't be read. Ask your host.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by johnp » Fri Dec 03, 2021 9:50 pm

Any progress? I'm always keep to find out if problems are fixed and how. :)

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by drrevans » Sat Dec 04, 2021 10:34 am

I have not got this resolved yet. It has been escalated and I am waiting to hear back from the host escalated team. I will let you know the results.

New member

Posts

Joined
Mon Nov 29, 2021 1:31 am

Post by straightlight » Sat Dec 04, 2021 8:31 pm

Caused by CHMOD permissions which in the /var/ you may not have access to without the use of chown command or CPanel WHM Console. Contacting your host would then be the right course of action to rectify this issue.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: Amazon [Bot] and 74 guests