WordPress.org

Ready to get started?Download WordPress

Forums

P2 Resolved Posts
[resolved] Plugin could not be activated because it triggered a fatal error. (9 posts)

  1. Victor Granic
    Member
    Posted 1 year ago #

    Here's the error log entry:

    Parse error: syntax error, unexpected $end in .../wp-content/plugins/p2-resolved-posts/p2-resolved-posts.php on line 754

    Anything I can do to further debug this error?

    Thanks,

    Victor

    http://wordpress.org/extend/plugins/p2-resolved-posts/

  2. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    It sounds like the file might be corrupted. Can you try downloading and reinstalling the entire plugin?

  3. Victor Granic
    Member
    Posted 1 year ago #

    Ya, I tried a few times. Both via wp-admin and wp-cli. Same result.

    [vmg@SWITCHWP wordpress]> wp plugin install p2-resolved-posts --activate
    Installing P2 Resolved Posts (0.3)
    Downloading install package from http://downloads.wordpress.org/plugin/p2-resolved-posts.0.3.zip...
    Unpacking the package...
    Installing the plugin...
    Plugin installed successfully.
    Activating 'p2-resolved-posts'...
    PHP Parse error:  syntax error, unexpected $end in ...wordpress/wp-content/plugins/p2-resolved-posts/p2-resolved-posts.php on line 754

    Is there a hash of the zip file?

  4. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    Can you try manually downloading?

  5. Victor Granic
    Member
    Posted 1 year ago #

    Same result. Oddly, attempting to activate the plugin using wp-cli didn't produce any errors even though it failed to activate. When I used wp-admin the same error was printed at the top of the plugins screen.

  6. Joe Boydston
    Member
    Posted 1 year ago #

    On a single blog all versions of the plugin activate fine for me.

    But on multisite, I get the same error with .2, .3 and dev versions.

    Parse error: syntax error, unexpected $end in p2-resolved-posts.php on line 754

  7. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    Crazy talk. There's only 751 lines in p2-resolved-posts.php

    Joe, want to ping me on Skype when you have a moment so we can track this down?

  8. dkukral
    Member
    Posted 1 year ago #

    Issue was the server had short_tags turned off ..

    lines 521 and 591 of p2-resolved-posts.php use the short php open tag <? instead of the long tag <?php

    You should probably use <?php for better portability.

  9. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    Aha! Thanks for tracking it down, dkukral. I'll have a fix for it shortly.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.