Parse error: syntax error, unexpected T_STRING

"wp-content/plugins/wp-defender/app/module/ip-lockout-module/widget/class-wd-lockout-widget.php on line 18"

Had to rename the wp-defender plugin directory in order to login to wp-admin. When enabled, Defender was also causing a conflict with Contact Form 7.

What else can I supply in order to help diagnose this?

  • James Morris

    Hello Gunderstorm,

    I hope you are well today.

    I'm running Defender with Contact Form 7 on a couple sites and have not had any issues. Perhaps there's another plugin causing a cascade effect.

    There's a couple troubleshooting steps I'd like you to try to see if we can narrow down the cause of this problem.

    First, could you please run a plugin conflict test as outlined in the following article? This will eliminate the possibility of a conflict with another plugin.

    If that does not lead to a solution, could you please enable WP_DEBUG and provide us with the output of your debug.log file?

    To enable WP_DEBUG, change the following line in your wp-config.php file:

    define('WP_DEBUG', false);

    To this:

    // Enable WP_DEBUG mode
    define( 'WP_DEBUG', true );
    // Enable Debug logging to the /wp-content/debug.log file
    define( 'WP_DEBUG_LOG', true );
    // Disable display of errors and warnings
    define( 'WP_DEBUG_DISPLAY', false );
    @ini_set( 'display_errors', 0 );

    After you've visited the pages that are causing you problems, please go to wp-content/ on your server via FTP and download the debug.log file to your local computer. Then, open that file with a text editor like notepad (Windows), GEdit (Linux), or TextEdit (Mac). You can then paste the contents of that file at and share the URL of the pasted output with us so we can examine it further.

    I look forward to seeing the results of your tests.

    Best regards,

    James Morris