Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MathieuLamiot opened this issue Jul 2, 2024 · 0 comments
Open

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

MathieuLamiot opened this issue Jul 2, 2024 · 0 comments

Comments

@MathieuLamiot
Copy link

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant