Jump to content

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


Recommended Posts

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.

×
×
  • 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.