News:

Support the VirtueMart project and become a member

Main Menu

Sudden syntax error in stockable.php

Started by magnusgobo, March 06, 2014, 14:53:38 PM

Previous topic - Next topic

magnusgobo


After moving a Joomla installation with VirtueMart 2.0 to a new server a strange and sudden syntax error appears:

Parse error: syntax error, unexpected $end, expecting T_FUNCTION in /(cut out part of URL)/public_html/plugins/vmcustom/stockable/stockable.php on line 1

It appears when trying to access products with custom fields attached to them. The error appears both in back- and frontend.

Everything else is working fine but custom fields is totally out of order at the moment.

Anyone seen this or can explain what the error message is trying to tell me?

jenkinhill

Sounds like you have an out of date PHP version on the server. Check it with PHP info. For current VM/Joomla versions PHP5.3.10 is really the minimum.

Also  see http://forum.virtuemart.net/index.php?topic=79799.0
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