Jump to content

how can i fix this pls (Parse error: syntax error, unexpected '@')


san19
 Share

Recommended Posts

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

Inkedfix_LI.jpg.551f2e8601316f91ed8bead99ae0dbad.jpg

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.