Sometimes, when opening a Magento product page, the following error is shown:
Parse error: syntax error, unexpected ‘endif’ (T_ENDIF) in …
The problem here is not with the Magento code itself. Its a problem with the Apache server configuration. To solve it, open php.ini and look for short_open_tag. The value here should be On and not Off. So, to solve the problem, change the value to On, save the file and restart the Apache server.
Solving syntax error, unexpected ‘endif’ (T_ENDIF) problem
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.