Forums

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

  1. argeee
    Member
    Posted 4 months 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
    Posted 4 months ago #

    What version of Posts 2 Posts are you using?

    Do you have any other plugins of mine activated?

  3. argeee
    Member
    Posted 4 months 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 4 months 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
    Posted 4 months 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 4 months 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 4 months 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
    Posted 4 months ago #

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

    and find the "Other Versions" link.

  9. argeee
    Member
    Posted 4 months 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
    Posted 4 months ago #

    Do you happen to use an AppThemes theme?

  11. argeee
    Member
    Posted 4 months 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
    Posted 4 months 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 4 months ago #

    How do I check for the scbFramework version??

  14. scribu
    Member
    Posted 4 months ago #

  15. argeee
    Member
    Posted 4 months 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 4 months 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. Ploobers
    Member
    Posted 4 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic