WordPress/wporg-developer

Can't activate WP Parser while Posts 2 Posts is activated

Opened this issue · 0 comments

Context

I followed the procedure to build a local dev environment. It is working as expected but once I connect to WP Admin and check the plugins, WP Parser is deactivated.
When I try activating it, PHP throws a Fatal Error preventing the plugin activation. I enabled debug logs and got this:

[02-Jul-2024 18:30:28 UTC] PHP Fatal error: Cannot redeclare scb_init() (previously declared in /Users/mathieu/Local Sites/phpdoc-parser-wp-test/app/public/wp-content/plugins/posts-to-posts/vendor/scribu/scb-framework/load.php:101) in /Users/mathieu/Local Sites/phpdoc-parser-wp-test/app/public/wp-content/plugins/phpdoc-parser/vendor/scribu/scb-framework/load-composer.php on line 8
It seems the scb-framework dependency is already declared, and phpdoc-parser tries to re-declare it. I think from this issue on phpdoc-parser that Posts 2 Posts (P2P) is already implemented as a dependency, so I am wondering if the P2P plugin standalone is still needed?

As a workaround, I deactivated P2P, activated WP Parser then re-activated P2P.

Am I missing something?

Expected behavior

  • After running the readme instructions to get started, all plugins must be activated.