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

Fatal error: Cannot redeclare scb_init() #80

Closed
cyberhobo opened this issue Jan 11, 2017 · 12 comments
Closed

Fatal error: Cannot redeclare scb_init() #80

cyberhobo opened this issue Jan 11, 2017 · 12 comments
Assignees
Milestone

Comments

@cyberhobo
Copy link
Contributor

Observed when running with wp-pagenavi:

Plugin could not be activated because it triggered a fatal error.

Fatal error: Cannot redeclare scb_init() (previously declared in /nas/content/live/hopmeldev/wp-content/plugins/wp-pagenavi/scb/load.php:101) in /nas/content/live/hopmeldev/wp-content/plugins/postmatic/vendor/scribu/scb-framework/load-composer.php on line 12
@cyberhobo cyberhobo self-assigned this Jan 11, 2017
@cyberhobo cyberhobo added this to the 2.1 milestone Jan 11, 2017
@cyberhobo
Copy link
Contributor Author

@Vernal in the case of wp-pagenavi, it appears that activating Replyable before PageNavi is a workaround in that particular case.

@Vernal
Copy link
Contributor

Vernal commented Jan 11, 2017 via email

@misfist
Copy link

misfist commented Jan 28, 2017

I'm experiencing the same issue using a plugin that makes use of the posts-to-posts plugin. I noted that in the ticket reported here: scribu/wp-scb-framework#50

My error is:

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
Contributor Author

cyberhobo commented Jan 29, 2017

@misfist did you try deactivating both plugins, then activating replyable before posts-to-posts?

@cyberhobo cyberhobo reopened this Jan 30, 2017
@cyberhobo
Copy link
Contributor Author

cyberhobo commented Jan 30, 2017

@misfist As an experiment I forked wp-scb-framework and tried having Composer use the standard loader. Give the following build a try if you like:
postmatic-2.1.3.zip

@cyberhobo cyberhobo removed this from the 2.1 milestone Jan 30, 2017
@misfist
Copy link

misfist commented Feb 4, 2017

@cyberhobo - Thanks for this! I'll check it out and report back.

@danaskallman
Copy link

@cyberhobo that zip file shared works, the fatal error prevent activation. Thanks!

@cyberhobo
Copy link
Contributor Author

Thanks @danaskallman - I actually forgot to close this issue, the "loading voodoo" should be included in the current releases also, please let me know if they do not.

@danaskallman
Copy link

@cyberhobo I just tried version 2.2.1 and I am getting the fatal error. posts-to-posts in installed as it's own plugin in the instance I would use this alongside it.

@cyberhobo
Copy link
Contributor Author

Thanks for letting me know - I'll reopen this and target our next release. Meanwhile it should be okay to use the zip that works.

@cyberhobo cyberhobo reopened this Aug 1, 2017
@cyberhobo cyberhobo added this to the 2.2.2 milestone Aug 1, 2017
@danaskallman
Copy link

Sounds good, I'll follow updates. Thanks!

@Jon007
Copy link

Jon007 commented Aug 24, 2017

just to add, other plugins such as BadgeOS also affected by this issue.
Also note the large number of \vendor directories included contributes to making this one of the largest wordpress plugins ..

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

5 participants