You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: