Forums

[Plugin: No Comments On Pages] Parse error when activating (2 posts)

  1. John Hawkins
    Member
    Posted 3 years ago #

    I'm trying to activate the plugin and it's giving me the following error:
    Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /html/wp-content/plugins/no-comments-on-pages/no-comments-on-pages.php on line 38

    Line 38 looks like this:
    return $open && get_post($post_id)->post_type !== 'page';

    For full disclosure, I had this plugin installed and running fine while my site was hosted at BlueHost. I moved my site to MediaTemple today and this is when the issue happened.

    I downloaded a clean copy of the plugin to confirm that the file was not corrupted during the move, so that's not the issue.

    http://wordpress.org/extend/plugins/no-comments-on-pages/

  2. JakaJancar
    Member
    Posted 3 years ago #

    Hi!

    This seems to be a PHP4 issue. I've fixed it in 1.0.1 which will hopefully appear on the page soon.

    Jaka

Topic Closed

This topic has been closed to new replies.

About this Topic