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?
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