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
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
It sounds like the file might be corrupted. Can you try downloading and reinstalling the entire plugin?
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?
Can you try manually downloading?
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.
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
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?
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.
Aha! Thanks for tracking it down, dkukral. I'll have a fix for it shortly.
You must log in to post.