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
You want or need help implementing this solution? Maybe you did not find what you were looking for? Contact me and I will assist you with whatever Magento problem troubles you!