Jump to content

Can't add products to cart after upgrade


Recommended Posts

Just upgraded from 1.4.2 to 1.4.3

 

Got royally screwed. After the upgrade, if I click Add to Cart button, a popup error says

TECHNICAL ERROR: unable to add product.

Details:
error thrown: [object XMLHttpRequest]
Text status: error

and the product doesn't get added to cart.

 

Please help.

Link to comment
Share on other sites

I have this problem too with the upgrade .

 

i have open a issue on the forge but prestashop says that it's a problem with the hosting.

 

i m sure, there is a big problem on the new version of prestashop.

 

i found many post from uk, italy, france and spain which speak of this problem.

Link to comment
Share on other sites

This clearly appears to be a bug, I have the same problem with a clean install.

 

How I got around the problem is by commenting out line 30,31 and 32 in tools/smarty/plugins/shared.mb_str_replace.php, this did the trick for now...

// $parts = mb_split(preg_quote($search), $subject);

// $count = count($parts)-1;

// $subject = implode($replace, $parts);

 

Mind you this is a just a temporary patch, there seems to be logic missing in this script, as in the case of adding to the cart the above logic is not needed.

 

Hope this helps until a real solution is found.

 

Did not like the prior comments that Ajax should be turned off to fix this...Yikes!

Link to comment
Share on other sites

Hi,

 

I'm also having the same problem, however it does not affect not all items, it affects only certain items.

 

Seems it affects the items with attribute function

 

Please advise how to overcome this issue.

Link to comment
Share on other sites

I have the same issue too our beta site on www.memorykinguk.co.uk running the previous vertion of prestashop runs fine however our othersite on www.mobymemory.co.uk running the latest version has the ad to cart error both servers are identical so it there for seems a error in prestashop update

Link to comment
Share on other sites

ok found the true issue which technically is mb_split however when trying to find it in Easy Apache it is not there this is because the package you need to install is Mb Strings which includes mb_split once you install the mb Strings package all works fine

Link to comment
Share on other sites

Hi,

 

I'm also having the same problem, however it does not affect not all items, it affects only certain items.

 

Seems it affects the items with attribute function

 

Please advise how to overcome this issue.

What version of PS are you using?

 

Do the products get added to the cart anyway?

 

Do you have ' in any of the attribute group name or values?

  • Like 1
Link to comment
Share on other sites

Had Same Issue, and After Speaking to My Server/Hosting Company the IT Guy, Gave me these great Step-by-Step's. >>>>

 

In doing some reading, it appears that the mbstring PHP extension needs to be enabled in order for the mb_split function to work. This can be done within Easy Apache.

 

1. Go to Main > Software > EasyApache (Apache Update)

2. The Default radio button should be selected, click the Start customizing based on profile button.

3. Do not change any settings but continue to click Next until you reach section 5 - Short Options List, then click Exhaustive Options List at the bottom of the page.

4. Under PHP, check the checkbox for mbstring and then click the Save and Build button.

5. Complete the changes by following the wizard instructions.

 

You should see a window showing information while your server updating, it usually takes between 5 - 10 minutes to complete.

 

Please let me know if you have any further questions or concerns.

 

Thank you for choosing SoftLayer!

 

IT Guy

Customer Service Technician

http://www.softlayer.com

Link to comment
Share on other sites

×
×
  • Create New...