san19 Posted April 23, 2022 Share Posted April 23, 2022 when i entre to my website home page i find this message (Parse error: syntax error, unexpected '@' in /home/u529199620/domains/example.com/public_html/wp-config.php on line 15) and i don't know much about php language this image explain more Quote Link to comment https://forums.phpfreaks.com/topic/314722-how-can-i-fix-this-pls-parse-error-syntax-error-unexpected/ Share on other sites More sharing options...
benanamen Posted April 23, 2022 Share Posted April 23, 2022 (edited) Remove the debug.log on the previous line 14 Edited April 23, 2022 by benanamen Quote Link to comment https://forums.phpfreaks.com/topic/314722-how-can-i-fix-this-pls-parse-error-syntax-error-unexpected/#findComment-1595616 Share on other sites More sharing options...
san19 Posted April 23, 2022 Author Share Posted April 23, 2022 33 minutes ago, benanamen said: Remove the debug.log on the previous line 14 Thank you so much Sir 🥰 Quote Link to comment https://forums.phpfreaks.com/topic/314722-how-can-i-fix-this-pls-parse-error-syntax-error-unexpected/#findComment-1595617 Share on other sites More sharing options...
ginerjm Posted April 23, 2022 Share Posted April 23, 2022 Just so you can learn. The line "debug.log" is invalid since it doesn't end with a semicolon. All php lines of code must end with a semi. The error message says unexpected @ because the line before it hasn't been properly ended. Another thing that is good practice - do not put more than one php statement on a single line. Write your code literally 'line by line' to make it easier to read, edit, and to understand error messages the reference a line number. Another good thing is to not use the @ symbol to hide errors. It does you no good to hide errors - they should be resolved rather than hidden or ignored. Quote Link to comment https://forums.phpfreaks.com/topic/314722-how-can-i-fix-this-pls-parse-error-syntax-error-unexpected/#findComment-1595618 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.