Jump to content

Upgrading from V6.0.8 - V6.0.9


Recommended Posts

Hi Guys, I have quite a few V6 Cubecart 6.0.8 stores and was wondering which files have changed from v6.0.8 to v6.0.9 please.  Also, because a lot of the styles were changed to affect the look of each web site, will clicking on the upgrade button in the backend mean all the CSS will need to be uploaded again?

Link to comment
Share on other sites

There are many many tools available to get a list of changed files (WinDiff, Beyond Compare etc) but a list of changed files is not published by the CubeCart developers although Brian and myself sometimes create and upload one - however it is an easy task to do yourself.

If you changed core files including in the Foundation skin, then these will be overwritten.  It is always best to create a new skin if you are making changes and then apply any skin changes to your custom skin

Ian

Link to comment
Share on other sites

You will want to do four things:

1. Copy 'Foundation' to 'nameOfWebsite' (easy way to keep them straight).
2. In the custom copy of the skin, edit config.xml as appropriate.
3. Clear your cache.
4. Set your store to use that custom copy.

Then do the upgrade.

Link to comment
Share on other sites

Brian has given the steps to create a custom front end skin.  If you have made changes to the admin skin or any other core files then additional work is required.  If you have only changed the front end skin, then follow these and you are good to go although it is still a good idea to check for skin changes between versions and apply those to your new custom skin

Ian

Edited by havenswift-hosting
Link to comment
Share on other sites

Nothing logged in the error logs?

Do you get the list of News & Announcements on the Dashboard?

Just to confirm, you are actually logging in to admin? After logging in, you are shown the Dashboard and this message will appear only that one time. Visit any other page and return to the Dashboard -- the message is no longer shown. Until you actually logout then log in.

Link to comment
Share on other sites

Here is the error log from yesterday and screen shots of the upgrade page and Dashboard. As you can see there is no upgrade advice.

upgrade.thumb.PNG.10d7ef201cfeea7e3f2f53

upgrade.thumb.PNG.10d7ef201cfeea7e3f2f53

 

[15-Jan-2016 15:24:25 Australia/Perth] PHP Warning:  array_merge() [<a href='http://docs.php.net/manual/en/function.array-merge.php'>function.array-merge.php</a>]: Argument #2 is not an array in /home1/maketext/public_html/harrisorganicwine/shop/admin/sources/orders.index.inc.php on line 238
[15-Jan-2016 09:00:47 UTC] PHP Warning:  Stored session data did not match DB record. Session aborted as possible session hijack. Old IP Address: '58.84.162.133' New IP Address: '58.84.162.133' Old User Agent: 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36' New User Agent: 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36' in /home1/maketext/public_html/harrisorganicwine/shop/classes/session.class.php on line 651

 

 

 

Link to comment
Share on other sites

For some reason, when your store makes a request to cubecart.com to get a version check, the response is something that when compared to the constant CC_VERSION (set in ini.inc.php), the result of the comparison is false-like - which means there is no need to upgrade.

In admin/sources/maintenance.index.inc.php, find near line 555:

## Check current version
if ($request = new Request('www.cubecart.com', '/version-check/'.'2.3.22')) {
	$request->skiplog(false); // was true
	$request->setMethod('get');

Change the skiplog argument to false (as shown above). Visit the Maintenance page, then view the Request log.

Let us know what the Request/Response was for that request.

Link to comment
Share on other sites

After changing 

$request->skiplog(false); // was true

the

Request Log shows

Date 
Yesterday, 16:25
Response received<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>400 Bad Request</title> </head><body> <h1>Bad Request</h1> <p>Your browser sent a request that this server could not understand.<br /> Reason: You're speaking plain HTTP to an SSL-enabled server port.<br /> Instead use the HTTPS scheme to access this URL, please.<br /> </p> <p>Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</p> </body></html>
Link to comment
Share on other sites

That's weird -- the request is being made using the https protocol.

Maybe there is an issue with your cache, although while in admin, the cache is supposed to be disabled.

Look in the /cache/ folder for any file that starts with request. and delete it -- that is, if you are using a file-based cache.

Link to comment
Share on other sites

Possibility that my htaccess file was providing some miss info/redirects. two days ago I  simplified it, ie removing all the bells and whistles. I really need someone who knows htaccess syntax, it is not my field. About to put a contract on upwork for some one to look at it. 

Yep, wild guessing.!

Link to comment
Share on other sites

I would say .htaccess has no influence in this situation. The .htaccess file is interpreted by the web server that is handling page requests to your web site.

This situation involves PHP making a page request from your script to someone else's web server. This action does not involve your web server.

Link to comment
Share on other sites

Found the essential problem.

1. harrisorganic's server does not have cURL available. So, fsockopen() was being used.
2. There is missing needed data in the Request class for the call to fsockopen().

And then there is:

3. The download setup in admin, Maintenance did not specify to use GET (instead defaulted to POST).

https://github.com/cubecart/v6/issues/983

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...