WordPress.org

Ready to get started?Download WordPress

Forums

Posts 2 Posts
[resolved] Fatal Error on activation (19 posts)

  1. argeee
    Member
    Posted 3 years ago #

    Hi Scribu,
    For some reason, after deactivating your plugin to see why WP-Migrate-DB was not working I cannot seem to be able to reactivate it.
    When I try to activate it I always get:
    Plugin could not be activated because it triggered a fatal error.

    Looking throught the log I can see this line referring to PHP:
    PHP Fatal error: Call to undefined function scb_register_table() in D:\\...\\plugins\\posts-to-posts\\core\\storage.php on line 11

    Thanks,

    Mauro

    http://wordpress.org/extend/plugins/posts-to-posts/

  2. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    What version of Posts 2 Posts are you using?

    Do you have any other plugins of mine activated?

  3. argeee
    Member
    Posted 3 years ago #

    Hi Scribu,
    Upon further investigation looking at the error logs, when the plugin was activated and working, it seems that it was not "seeing" my custom post types.
    I was getting the following errors:
    PHP Notice: Post type 'ups' is not defined. in ...\\wp-content\\plugins\\posts-to-posts\\core\\type-factory.php on line 35, referer: http://localhost/my_site/products/ups/

    Hope this helps.

    thanks

    mauro

  4. argeee
    Member
    Posted 3 years ago #

    I've tried both 1.1.3 and 1.1.4. This is the only plugin that I have from you.

    thanks

  5. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    With P2P 1.1.4, open posts-to-posts/scb/load.php. What does it say on the first line?

    Also, you don't have the scb framework loaded in mu-plugins, by any chance, do you?

  6. argeee
    Member
    Posted 3 years ago #

    Hi,
    No scb framework on mu-plugins (I don't have this folder).
    The first line on the load.php file reads as follows:

    $GLOBALS['_scb_data'] = array( 47, __FILE__, array(
    	'scbUtil', 'scbOptions', 'scbForms', 'scbTable',
    	'scbWidget', 'scbAdminPage', 'scbBoxesPage',
    	'scbCron', 'scbHooks',
    ) );

    thanks

    mauro

  7. argeee
    Member
    Posted 3 years ago #

    I can't seem to find previous versions of the plugin in github. Do you have a repository of previous versions to see if it works with previous versions?

    thanks,

    mauro

  8. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    Go here: http://wordpress.org/extend/plugins/posts-to-posts/

    and find the "Other Versions" link.

  9. argeee
    Member
    Posted 3 years ago #

    Hi Scribu,
    with 1.0.1 works. No error on the Apache log nor activating.
    Tried 1.1.3 and still get the fatal error activation error.
    This is the error while activating 1.1.3:
    PHP Fatal error: Call to undefined function scb_register_table() ...\\Uniserver3\\www\\eq_power\\wp-content\\plugins\\posts-to-posts\\core\\storage.php on line 11, referer: http://localhost/eq_power/wp-admin/plugins.php?plugin_status=recently_activated

    Rgds,

    Mauro

    In the mean time I will keep working with 1.0.1. Thanks.

  10. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    Do you happen to use an AppThemes theme?

  11. argeee
    Member
    Posted 3 years ago #

    I'm using my own theme as child of the twentyeleven theme.
    Is there any particular thing that that theme has that I should be looking out for??

    thanks,

    Mauro

  12. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    No, actually forget about the themes, since they're loaded after plugins anyway.

    The problem you're seeing typically occurs when you have an older version of the scbFramework already loaded.

    If you disable all other plugins before attempting to activate P2P, it should work.

  13. argeee
    Member
    Posted 3 years ago #

    How do I check for the scbFramework version??

  14. scribu
    Member
    Plugin Author

    Posted 3 years ago #

  15. argeee
    Member
    Posted 3 years ago #

    This is what shows on the dashboard:
    scbFramework candidates:
    ...\eq_power\wp-content\plugins\posts-to-posts\scb - r42
    ...\eq_power\wp-content\plugins\wp-pagenavi\scb - r42

    Ok. I've deactivated all the plugins and reactivated posts-to-post. Got, scbFramework candidates:
    \eq_power\wp-content\plugins\posts-to-posts\scb - r47
    Asked to to upgrade connections but updated none.

    I have updated the scb version for wp-pagenavi (didn't realize it was yours) and activated all the other plugins and now works.

    Thanks again,

    mauro

  16. Marko Heijnen
    Member
    Posted 3 years ago #

    Do you also have WP-PageNavi installed? That plugin will cause an fatal error when active.

    Disable it. Enable post 2 post and then enable WP-PageNavi works fine.

  17. Derek Perkins
    Member
    Posted 3 years ago #

    Marko - That fixed my problem. Thanks for the advice to deactivate WP-PageNavi first.

  18. emeraldryan
    Member
    Posted 2 years ago #

    I had this exact same issue.

    After reading this thread I disabled Query Multiple Taxonomies (another excellent plugin by scribu) and I was then able to activate Posts 2 Posts without any error.

    I then reactivated Query Multiple Taxonomies and everything works.

  19. alxvallejo
    Member
    Posted 2 years ago #

    Thanks for everyones replies. I had Query Multiple Taxonomies enabled as well.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic