News:

Support the VirtueMart project and become a member

Main Menu

Cart stop working after moving down PHP version

Started by mangospliter, June 28, 2013, 06:15:39 AM

Previous topic - Next topic

mangospliter

Hello,

I'm new to VM and was testing a template out.  I'm moving a virtuemart2 site from local server to VPS hosting online, I used Akeeba Backup for the purpose.

VirtueMart 2.0.6, Joomla 2.5.11. The localhost was XAMPP with PHP 5.4.16, and the VPS hosting only have PHP 5.3.13.

Everything was fine after the move but the cart stopped working. clicking on the add to cart buttons does nothing and the cart is always empty. Everything else looks like they are working fine.

I have done a fair share of research and have tried a number of solutions posted around, but by now i realized the issue maybe due to the PHP version going from 5.4.16 to 5.3.13. I downloaded a debugger extension, unfortunately I am not familiar enough with PHP to figure out what can be done here.

my testing site is here: http://thescreamies.com/

If there are any tutorials or pointers you can give I would be more than happy to take a look myself, any help is absolutely appreciated. I'm mostly interested in just getting the Cart back to work,

Thank you! (and I salute to you jenkinhills since I see your name everywhere..)

jenkinhill

#1
Not a PHP issue, but most likely JavaScript problems which appear to be related to your template/other module files (or possible server permission issues?). IE10 debugger gives these errors/warnings:

SCRIPT5: Access is denied.
sh119.html, line 1 character 1
SCRIPT5: Access is denied.
hub.html, line 1 character 1
SCRIPT5: Access is denied.
hub.html, line 1 character 1
SCRIPT5: Access is denied.
like.php, line 1 character 1
SCRIPT5: Access is denied.
tweet_button.1371247185.html, line 1 character 1
SCRIPT5: Access is denied.
fastbutton, line 1 character 1
HTML1527: DOCTYPE expected. The shortest valid doctype is "<!DOCTYPE html>".
about:blank, line 1 character 1
HTML1405: Invalid character: U+0000 NULL. Null characters should not be used.
about:blank, line 1 character 14
HTML1507: Unexpected character: U+0000 NULL. Null characters should not be used.
about:blank, line 1 character 14
SEC7118: XMLHttpRequest for http://www.thescreamies.com/index.php?option=com_virtuemart&nosef=1&view=cart&task=addJS&format=json&quantity%255B%255D%3D1%26option%3Dcom_virtuemart%26view%3Dcart%26virtuemart_product_id%255B%255D%3D76%26virtuemart_manufacturer_id%3D2%26virtuemart_category_id%255B%255D%3D23&_=1372407694886 required Cross Origin Resource Sharing (CORS).
product-76-detail
SEC7120: Origin http://thescreamies.com not found in Access-Control-Allow-Origin header.
product-76-detail
SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied.
product-76-detail
SEC7118: XMLHttpRequest for http://www.thescreamies.com/index.php?option=com_virtuemart&nosef=1&view=cart&task=addJS&format=json&quantity%255B%255D%3D1%26option%3Dcom_virtuemart%26view%3Dcart%26virtuemart_product_id%255B%255D%3D76%26virtuemart_manufacturer_id%3D2%26virtuemart_category_id%255B%255D%3D23&_=1372407834844 required Cross Origin Resource Sharing (CORS).
product-76-detail
SEC7120: Origin http://thescreamies.com not found in Access-Control-Allow-Origin header.
product-76-detail
SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied.
product-76-detail

I'm not sure but it looks like a jQuery version issue with your slideshow. So you could try disabling that to see if the cart works.

If not then try changing the Joomla template to Beez to see if VM works OK there.

Also maybe try this: http://forum.virtuemart.net/index.php?topic=111843.0

VirtueMart 2.0.6 is old and known to be insecure. It should not be used on a live store site if at all possible - personally I would not risk it.

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum