Ad-hoc integration: Parse error: syntax error, unexpected $end

kullytt

New member
When "Enable Ad-hoc Integration" is selected in the configuration we get the following error:

Code:
Parse error: syntax error, unexpected $end in /home/kully/dev/app/design/frontend/argento/argento_custom/template/webrotate360/catalog/product/view/adhoc.phtml on line 104

Line 104 doesn't contain any content..

Does anyone have a possible solution?
 

WebSupport

Active member
Hi!

Looks like the cause is on line 92 and 102 of adhoc.phtml (recent PHP releases will not recognize this syntax and we probably missed it in our last Magento plugin release as our test PHP setup was still ok with it:

Please try changing line 92 from:
Code:
<?else:?>
to:
Code:
<?php else:?>

End on line 102, change it from:
Code:
<?endif?>
to:
Code:
<?php endif?>

PS: you may have this if/else statement a couple of lines up.

Please let us know if this doesn't help.
 
Top