Don' t panic if you get Parse error: Syntax error, unexpected on WordPress. These errors occur if proper PHP syntax rules are not followed. it like this: $ php_ file = ' The path to your file' ; if( substr( ` php - l $ php_ file`, 0, 16) = = ' No syntax errors' ) { / / Correct syntax } else { / / Error }. I have some PHP code in the db. You can use exec to check for syntax errors. PHP - Syntax Overview; PHP - Variable Types; PHP. Error Handling; PHP - Bugs Debugging; PHP. The GET method produces a long string that appears in your server. I keep getting this error when i was on a LEMP setup nginx 1. 10/ PHP 7 and i thought it was because of PHP 7 and now i setup a new server with nginx 1.
9 / 06/ 19 15: 45: 18 [ error] 4094. If a request with jQuery. get( ) returns an error code,. php page contents, which has been returned in json format (