eptx Posted June 11, 2012 Share Posted June 11, 2012 ver 1.4.7.2 When I click to add a product to my shopping cart I get this message; Unable to add the product Error Thrown: (object XMLHttp Request) Text Status: error Link to comment Share on other sites More sharing options...
Mike Kranzler Posted June 11, 2012 Share Posted June 11, 2012 Hi eptx, This is often an issue with your server missing the PHP mbstring module. You can learn more about this here. I would recommend that you contact your hosting provider to get more information on this. I hope this helps. -Mike Link to comment Share on other sites More sharing options...
eptx Posted June 12, 2012 Author Share Posted June 12, 2012 (edited) Hi Mike thanks for your help, I contacted my host and the php mbstring is enabled. here is a screen shot of it, could you have a look to see if it is OK? More information if I go into the cart module and turn ajax of it works. Here is the url http://agun4you.com/...module_mbstring mbstring Multibyte Support enabled Multibyte string engine libmbfl Multibyte (japanese) regex support enabled Multibyte regex (oniguruma) version 4.4.4 Multibyte regex (oniguruma) backtrack check On mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1. Directive LocalValue MasterValue mbstring.detect_order no value novalue mbstring.encoding_translation Off Off mbstring.func_overload 0 0 mbstring.http_input pass pass mbstring.http_output pass pass mbstring.internal_encoding no value no value mbstring.language neutral neutral mbstring.strict_detection Off Off mbstring.substitute_character no value no value Edited June 12, 2012 by eptx (see edit history) Link to comment Share on other sites More sharing options...
Mike Kranzler Posted June 12, 2012 Share Posted June 12, 2012 Please try the suggestions posted here as well and let me know if that works any better for you. -Mike Link to comment Share on other sites More sharing options...
eptx Posted June 13, 2012 Author Share Posted June 13, 2012 Hi Mike, thanks for your help. Even tho I am using your 1.5 theme, updating the cart module has solved my problem. Link to comment Share on other sites More sharing options...
cyremia Posted December 13, 2012 Share Posted December 13, 2012 Changing the code in the tools/smarty/plugins/shared.mb_str_replace.phpworked file worked for me too. I don't have the error message "Unable to add the product Error Thrown: (object XMLHttp Request) Text Status: error". And the Cart gets updated. THanks Link to comment Share on other sites More sharing options...
NPO_Bernardino Posted December 14, 2012 Share Posted December 14, 2012 Hi guys, Same problem here, but the mbstring is activate. Changing the code in the tools/smarty/plugins/shared.mb_str_replace.phpworked file worked for me too. I don't have the error message "Unable to add the product Error Thrown: (object XMLHttp Request) Text Status: error". And the Cart gets updated. THanks I have the same problem, and mbstring is activate. in tools/smarty/plugins/shared.mb_str_replace.php, what code i will change? Please guys, i realy need to put this work fast, because is to a RedCross Campain. Thank's in advanced Carlos Link to comment Share on other sites More sharing options...
cyremia Posted December 14, 2012 Share Posted December 14, 2012 NPO_Bernardino I used this solution (mentioned in Post #4 and here http://forge.prestashop.com/browse/PSCFI-4464): I just changed one line in the smarty plugin : File : tools/smarty/plugins/shared.mb_str_replace.php replace line 30 : $parts = mb_split(preg_quote($search), $subject); with : if (function_exists('mb_split')) { $parts = mb_split(preg_quote($search), $subject); } else { $parts = split(preg_quote($search), $subject); } 2 Link to comment Share on other sites More sharing options...
NPO_Bernardino Posted December 14, 2012 Share Posted December 14, 2012 Thanks, But still don't work Link to comment Share on other sites More sharing options...
NPO_Bernardino Posted December 14, 2012 Share Posted December 14, 2012 Thanks, But still don't work Link to comment Share on other sites More sharing options...
horetol Posted December 17, 2012 Share Posted December 17, 2012 Hi, Sorry to say, but it's exactly the same for me. This error still there, poping up despite the change. Any other string to follow ? Link to comment Share on other sites More sharing options...
hankenim Posted December 17, 2012 Share Posted December 17, 2012 I was uploading a csv file and when it was done I went in to make sure all was correct. Upon looking closer I noticed that only half of my csv file uploaded. So I made a new csv file with the information that wouldn't upload and tried again. Still wouldn't upload. I don't get an error message or anything. What it does for me is simply goes to a page with just the headers. And then I check and the information isn't there. I have asked our administrator and on Prestashop facebook if there is a limit to how many items you can have on the website (we have approx 1500) and they each said that there was no limit. I am at a loss. I was trying to add product for the Christmas holiday, but as you can see now.....it is too late to add it. But I am working on the next batch of items to upload and I need to find an answer so that I can add more product to my site. Link to comment Share on other sites More sharing options...
iggywebprom Posted January 13, 2013 Share Posted January 13, 2013 NPO_Bernardino I used this solution (mentioned in Post #4 and here http://forge.prestas...owse/PSCFI-4464): I just changed one line in the smarty plugin : File : tools/smarty/plugins/shared.mb_str_replace.php replace line 30 : $parts = mb_split(preg_quote($search), $subject); with : if (function_exists('mb_split')) { $parts = mb_split(preg_quote($search), $subject); } else { $parts = split(preg_quote($search), $subject); } great, it helped Link to comment Share on other sites More sharing options...
horetol Posted February 17, 2013 Share Posted February 17, 2013 I saw a lot of people who have not solved your problem with the apparent solution, including me, someone could find a permanent solution? Best Regards The only way I could solve the problem was to start afresh with a new (prestashop) theme. Then step by step to reintroduce my modifications and css style. Link to comment Share on other sites More sharing options...
Recommended Posts