• [ Moderator note: moved to Fixing WordPress. ]

    This is the error:
    Parse error: syntax error, unexpected T_FUNCTION in /www/MW_qncPqnnnq/example.com/wp-config.php on line 110
    and in line 110 of wp-config.php there is:
    add_filter(‘wp_headers’, function($headers) {
    unset($headers[‘X-Pingback’]);
    return $headers;
    });

    I do not have idea how to fix this, thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator t-p

    (@t-p)

    @buppal Thanks for the help but spreading your site link like that is spamming. If you want to help then please do here. Completely here, do not send people to your site as a reference. Please don’t, thanks.

    I have deleted your reply.

    Check to see that line 110 is properly formatted,

    • is there a closing parenthesis for every opening?
    • are your quotes matching? (single to single, double to double)
    • proper capitalization
    • proper spacing
    • statement ends with a semi-colon

    Also check like 109 for the same things, often times if a line error is thrown the issue is actually found in the preceding statement.

    Hmmm…that code looks like it belongs in functions.php NOT wp-config.php 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Syntax error in wp-config.php’ is closed to new replies.