View Single Post
  #23  
Old 02-10-2012, 09:34 PM
  seyfin's Avatar 
seyfin seyfin is offline
 

X-Cart team
  
Join Date: May 2004
Posts: 1,223
 

Default Re: X-Cart v4.4.5 released

Quote:
Originally Posted by edisastersystems
I had a problem upgrading from 4.4.3 to 4.4.5 in my test environment.

The files updated with no problems, but the SQL patch ran into a problem with the line:

ALTER TABLE xcart_stats_pages ADD UNIQUE page (`page`)

I think it's line 394. It said the database was not updated.

However, If I go back to the Patch/Upgrade center. I am now told the current version is 4.4.4 and there are no patches available. Am I able to attempt patching the database again by running the patch.sql file? Should I be concerned that the version says 4.4.4 instead of 4.4.5? I'm not sure what was wrong with the SQL file in the first place, and unfortunately I can't paste the exact error message since I've navigated away from the page and can't get back.

Any help is appreciated.

[Update]: Disregard the question, the issue has been resolved for now by deleting the store statistics.

The new version 4.4.5 adds a new UNIQUE KEY on 'page' field in 'xcart_stats_pages' table.

If there are duplicate 'pages' values in 'xcart_stats_pages' table in your original X-Cart database, you will get the error in question during the upgrade.

To solve the problem you should remove the duplicate entries from the table, or simply delete all statistics data from the table.
__________________
Sincerely yours,
Sergey Fomin
X-Cart team
Chief support group engineer

===

Check this out. Totally revamped X-Cart hosting
http://www.x-cart.com/hosting.html

Follow us:
https://twitter.com/x_cart / https://www.facebook.com/xcart / https://www.instagram.com/xcart
Reply With Quote