I'm getting the error-message while executing a .php-file which has just 177 lines.
Background: this is a Wordperfect-Install, that same page executes fine for other records, but in the record which causes issues, I'm demo-ing some new shortcodes. It is not unlikely that I made a fault in these developments, but that is all done outside of the "crashing" file, so I wonder why it would appear there (and with such a strange line-no.) and not in the source that I modified...
In wp-config.php
, I have set define('WP_DEBUG', true);
P.S: The exact error msg is:
Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\wp-content\themes\mytheme\single-record.php on line 179
Ok, with the help of fellow dev I found the solution: the guy who wrote the original code had used the short opening tags in PHP '<?
' and apparently support for these needs to be enabled in the PHP.INI (which I had not done, 'coz I do not like them). So, after updating all tags to "decent PHP", the error is gone!