WordPress.org

Ready to get started?Download WordPress

Forums

WP Publication Archive
[resolved] Activation - critical error (2 posts)

  1. mwro
    Member
    Posted 3 years ago #

    Description of the plugin looks cool but I got a critical error when activating it:

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /wp-content/plugins/wp-publication-archive/lib/class.wp-publication-archive.php on line 4

    I've been looking few hours for a plugin like this, I hope you can help me fix this.

  2. Eric Mann
    Member
    Plugin Author

    Posted 3 years ago #

    @mwro - What other plugins are you using? I just did a clean download of the plugin from the repository and installed it on a clean version of WP without reproducing the error.

    However, looking at line 4 of that file, I see what might be causing your issue. I use a lot of PHP5 syntax in my plugins, and line 4 is a "public static" variable declaration. If you're not running PHP5, your system might have problems with that.

    So here's what I recommend:

    1. Check what version of PHP you have installed using phpinfo()
    2. If you're already running PHP5, come back here and let me know so we can try something else.
    3. If you're not running PHP5, work with your host to switch over.

    Remember, WordPress will be dropping support for PHP < 5 with the next release due later this month. So an update to PHP5 is something you'll need to do anyway just to keep up to date with WordPress.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic