Page 1 of 1

Upgrades - it must be easier than this, yes?

Posted: Thu Apr 17, 2014 12:00 am
by losttheplot
Hi,

I'm new to opencart but not web applications or servers. I've just finished a long process of theming and kitting out two 1.5.6 shops with bespoke branding and lots of extensions etc. and was about to put them both live, when I noticed that the latest version of opencart is 1.5.6.3. I kinda assumed that opencart would either have a point-and-click upgrade manager, or that upgrade patch files would be issued as necessary, but from what I can see that is not the case. As my office 'pooter is a Mac (which will not do an automatic selective file replacement by drag-and-drop) I have had to painstakingly upload every extension file by hand for each shop.

Have i really got to do the same for each incremental update of opencart? Please tell me I haven't got to upload all the new files, then manually install every extension from scratch each time (plus my theme) ... please tell me I'm missing something ...PLEASE! :choke: :choke: :choke:

Re: Upgrades - it must be easier than this, yes?

Posted: Thu Apr 17, 2014 12:30 am
by tacobandito
You just need to upload the new OC version and go to your store's URL + /install... so yourstore.com/install. It'll handle it from there, shouldn't need to do any real work past that. Also, 1.5.6 to 1.5.6.3 are just non-security related bug fixes, so if you don't use OpenBay or PayPal Express, I don't think you need to upgrade. That said, I still would...you can read the changelog here.

Re: Upgrades - it must be easier than this, yes?

Posted: Thu Apr 17, 2014 12:56 am
by losttheplot
Thanks for replying :) This is the bit I'm not ofay with. I have always assumed that one directory would simply override another (as on a Mac) but it seems that this is a basic misunderstanding that has stayed with me for many years! It seems from what you're saying that the contents of a directory will only replace a file of the same name no matter how deeply structured, not replace directories per se. Thanks - one learns something new every day!

Re: Upgrades - it must be easier than this, yes?

Posted: Thu Apr 17, 2014 1:34 am
by tacobandito
Uploading the new version of OC will only replace the FILES that are identically named, it won't wipe out other stuff in the folder.

I'm not a mac user, so I have no idea if that's how it works on mac, but since mac is unix based just like linux is, I would have assumed it wouldn't work that way on mac either...

Re: Upgrades - it must be easier than this, yes?

Posted: Thu Apr 17, 2014 4:59 am
by losttheplot
I've used Macs since the 80s and love them to bits (no pun intended) but alas this is one OS action that is a flaw IMHO. This is why, in all these years, I did not realise that my RHEL servers acted in any other way until now.

http://www.456bereastreet.com/archive/2 ... _mac_os_x/

Re: Upgrades - it must be easier than this, yes?

Posted: Sat Apr 19, 2014 2:30 am
by TedTshirtGuy
Relatively new to OC, but generally speaking know my way around the puter, cpanel, sites and such. To learn how to upgrade, I watched a couple of videos, read the read me files that comes with OC 1.5.6.3, and thought I uploaded correctly, but my site still shows 1.5.6.1 as installed. After the upload, I went to www.mysite/install and got a 404 error message, so obviously I am doing something wrong.

Following the instructions in the read me file and the videos, I unzipped the OC 1.5.6.3 file I downloaded, then trashed the config-dist.php files in the first folder and then in the admin folder inside that. That left all other folders/files except for those two. By the way, the read me file says to not upload the two "config.php" files. The files I saw and trashed are actually titles "config-dist.php". That mismatch of terms sort of makes a OC newbie wonder if he is missing something.

Anyway, I then uploaded all the contents of the upload folder, minus the two mentioned .php folders, via an FTP client to my root holding my OC installation. In admin, the site is still showing as 1.5.6.1. I did then go to my site.com/install, but that is when I got the 404 error. Should I have rezipped the upload file after I removed the two .php files and then uploaded the zip file instead of the contents? Thanks for any help.

Re: Upgrades - it must be easier than this, yes?

Posted: Sat Apr 19, 2014 2:34 am
by TedTshirtGuy
I see a couple of typos in the post I just made. I went to http://mysite.com/install after the upload. Of course, I used the actual name of my site, not the word "my site". Thanks

Re: Upgrades - it must be easier than this, yes?

Posted: Sat Apr 19, 2014 3:50 am
by tacobandito
I PM'd you, get back to me and I'll take a look at it personally.

Re: Upgrades - it must be easier than this, yes?

Posted: Sat Apr 19, 2014 4:15 am
by rph
It's likely you the files weren't uploaded to the right location. If your site structure looks like:

/admin
/catalog
/download
/image
/system
/upload

or:

/admin
/bin
/catalog
/download
/etc
/logs
/image
/public_ftp
/public_html
/system

the upload wasn't completed properly. When you upload the files you should get a warning about overwriting them.

Re: Upgrades - it must be easier than this, yes?

Posted: Sat Apr 19, 2014 10:40 am
by IP_CAM
tacobandito wrote:g the new version of OC will only replace the FILES that are identically named, it won't wipe out other stuff in the folder.
Exactly this is the problem, if someone has modified standard source, it may well be overwritten by the new default file. And this would be, at least in my case, possibly ruin a lot of work. Still, I downloaded some update files for the v1.5.6.3 to my OSv1.7/OCv1.5.6.1 and installed them, so far, eveything runs smoothly.

There is still a discussion regarding the Malfunction of the Standard PayPal Routine, unfortunately, I found nothing on Github about this problem...

Ernie

Re: Upgrades - it must be easier than this, yes?

Posted: Sat Apr 19, 2014 10:46 am
by rph
Open an issue with the technical details or make a pull request with the fix.

Re: Upgrades - it must be easier than this, yes?

Posted: Sat Apr 19, 2014 11:01 am
by IP_CAM
seems to be in Discussion for some time, I cannot judge, since I have not yet tested PP in any form available.
dfumagalli is shouting about it, so, I guess there must be a problem.

http://forum.opencart.com/viewtopic.php ... 40#p490699

Ernie

Re: Upgrades - it must be easier than this, yes?

Posted: Sun Apr 20, 2014 2:37 am
by rph
There are false reports about bugs all the time. There might be some edge case where there's an issue with PayPal but it's unlikely the most popular payment method for OpenCart has been fundamentally broken for years and no one noticed.

Bugs need concrete details in order to be addressed. Otherwise you can waste hours on a programming snipe hunt.