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

No loading voodoo with Composer? #50

Open
cyberhobo opened this issue Jan 11, 2017 · 2 comments
Open

No loading voodoo with Composer? #50

cyberhobo opened this issue Jan 11, 2017 · 2 comments

Comments

@cyberhobo
Copy link

I imagined that loading via Composer would just autoload load.php, but I see now it has its own file without the logic that handles other loaded instances. That means I'll get Fatal error: Cannot redeclare scb_init() if another plugin loads the framework first. Is this intentional?

@misfist
Copy link

misfist commented Jan 28, 2017

I'm experiencing the same issue and don't know how to solve.

One of my plugins is using posts-to-posts, which loads scb-framework and Replyable (postmatic) also loads the scb-framework.

Fatal error: Cannot redeclare scb_init() (previously declared in /var/www/usworker/wordpress/wp-content/plugins/anp-meetings/libs/posts-to-posts/vendor/scribu/scb-framework/load.php:101) in /var/www/usworker/wordpress/wp-content/plugins/postmatic/vendor/scribu/scb-framework/load-composer.php on line 12

@cyberhobo
Copy link
Author

Added PR #51 to propose having Composer use the standard loader.

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

2 participants