Ecommerce update

Permalink
Hi,
I just updated the ecommerce add on and am now receiving error messages on my site. I can't log in to change anything. Help!!

 
appliculture replied on at Permalink Reply
appliculture
Can you please be more specific ? Nobody will be able to help you with message like yours.

Which C5 version ? Which add-on? Which add-on version ? Do you get any error message....
carlab replied on at Permalink Reply 2 Attachments
Apologies, I'm new to this.
I am using version 5.6.3.1 website plants2yourdoor.com.au

All has been normal and functioning until I clicked to update ecommerce yesterday.
Result: error messages when I clicked on any category.

I then restored from yesterday’s backup.
New problem: when I try to add to cart I get an error message that the minimum order is $50 (doesn’t register that I’m adding a value higher than this)
I then turned off the minimum order and saved.
Back to error messages, can’t login
Have tried to restore from different dates with no luck.

Can’t seem to update the concrete 5 version either to then update any addons.

I have attached the error log from the site.

Here is the info I received from my hosting company:
Here is the particular error you're facing from the error_log file:
[23-Aug-2016 10:10:20 Australia/Sydney] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/plants2y/public_html/packages/core_commerce/tools/cart_dialog.php:22) in /home/plants2y/public_html/updates/concrete5.6.3.1_updater/concrete/core/libraries/view.php on line 644

Looks like that file was modified recently -https://panthur.com.au/ss/2016-08-23_15-56-50.png...


Any help you can give would be greatly appreciated. Until this site is back online I can't sell any plants :(
appliculture replied on at Permalink Reply
appliculture
this is better !

It look like your update went wrong with the database update.

The first thing to try would be to restore your website (files + database) to the day before you updated the cart and then try again the update.

Check if you have any error message during the update and let us know which one.

If not I think you would have to go trough a manual update of the database - but I'm not an expert of the e-commerce add-on for the legacy version of c5
JohntheFish replied on at Permalink Best Answer Reply
JohntheFish
If your web site is quite big (something that can happen especially easily with eCommerce sites where the tables of orders with abandoned carts and customers tend to grow forever) the size of the database can often slow down any update or database restore to the point where it times out before completing.

When restoring from backup, do the database restore using your web host's control panel or phpMyAdmin, not the c5 internal restore. That way, you can be sure it has completed rather than leaving tables skewed before getting to the end. Ideally, you could also restore all files, but that may not be necessary if you are careful with the rest of restoring.

Having restored, install and run my 'Extreme Clean' job. This will slim down some of the bloated tables and help subsequent steps to complete fully. You can also manually run some SQL from phpMyAdmin to clean out abandoned cart entries. I cant remember the SQL code, but you can probably get that through eCommerce support.

If you did not restore all files and have already tried to update eCommerce, the eCommerce files could now be ahead of where they are supposed to be. So either manually replace the eCommerce files with the version that is applicable to the database you have restored, or immediately run the dashboard update for eCommerce.

If necessary, You can force a stalled package update to run again by editing the package controller and appending ".0.0.0.1" to the package version. The dashboard update page will see and run the update again, but the increment will be so small it won't get in the way of future updates through the concrete5.org marketplace.

Then run the c5 core update to 5.6.3.4. If that times out part way, you can force it to run again by appending ?force=1 to the upgrade URL.

Finally, check config/site.php and confirm the update line is at the end of the file. It will be something like define('DIRNAME_APP_UPDATED', 'concrete5.6.3.4');
(But that will only be relevant if the rest of the update including the database update has already been run and completed).
carlab replied on at Permalink Reply 3 Attachments
Hi John,

thanks again for your help.

Ok here's what I have done as per instructions..
restored from previous back up via my hosting site.
installed and run extreme clean
updated ecommerce
updated to concrete 5.6.3.4

I still can't add to cart, access Zone based shipping or now clear cache. Errors attached.

any idea what I need to do? In way over my head here and the lady that designed the website is no help!
mnakalay replied on at Permalink Reply
mnakalay
Hello,

Your site hasn't been updated to 5.6.3.4, it is still showing as 5.6.3.1

Make sure you file config/site.php is indicated the right update folder and not the old one
look for DIRNAME_APP_UPDATED

Now when I try to add to the cart, there are no errors. It just doesn't add anything, shows the empty cart with the message about the $50 limit but no error (I could see the error before)
JohntheFish replied on at Permalink Reply
JohntheFish
As @mnakalay said w.r.t add to cart and the core version. If the core version 'installed' does not match the code version running, there could be discrepancies that are causing the server errors.

Add to cart works OK. The error comes up when going to the checkout. The actual cart page is where the error message is shown. Once the cart page has corrupted this way, it seems to also corrupt the cart popup for subsequent additions.

Do you have any overrides of eCommerce, for example, used in styling the checkout page? If you do, they could need updating to match the version of eCommerce installed.

What is the environment report from the dashboard?

Are there any exceptions reported in the dashboard log page?