Forums

syntax error, unexpected T_IF, expecting '(' (2 posts)

  1. sideporch
    Member
    Posted 4 weeks ago #

    After the site and admin area are completely down I have done some fixes and come to the following error message on main and admin pages:
    Parse error: syntax error, unexpected T_IF, expecting '(' in /wp-config.php on line 30
    (error code is minus my file path)

    Line 30 reads as follows:
    if ( !defined('ABSPATH') )

    The line of code matches what I have found in the wp-config-sample file,

    Please explain what I am missing or am not seeing?

  2. esmi
    Member
    Posted 4 weeks ago #

    I'd suggest that you re-do your wp-config.php file using the wp-config-sample.php file as a template. You've inadvertently created an error somewhere in your current config file and the easiest way to fix it is to create a new file from scratch.

Reply

You must log in to post.

About this Topic