Title: [Plugin: Posts 2 Posts] Fatal Error on activation
Last modified: August 20, 2016

---

# [Plugin: Posts 2 Posts] Fatal Error on activation

 *  Resolved [argeee](https://wordpress.org/support/users/argeee/)
 * (@argeee)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-fatal-error-on-activation/)
 * 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/](http://wordpress.org/extend/plugins/posts-to-posts/)

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/plugin-posts-2-posts-fatal-error-on-activation/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-posts-2-posts-fatal-error-on-activation/page/2/?output_format=md)

 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-fatal-error-on-activation/#post-2523301)
 * What version of Posts 2 Posts are you using?
 * Do you have any other plugins of mine activated?
 *  Thread Starter [argeee](https://wordpress.org/support/users/argeee/)
 * (@argeee)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-fatal-error-on-activation/#post-2523303)
 * 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/](http://localhost/my_site/products/ups/)
 * Hope this helps.
 * thanks
 * mauro
 *  Thread Starter [argeee](https://wordpress.org/support/users/argeee/)
 * (@argeee)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-fatal-error-on-activation/#post-2523306)
 * I’ve tried both 1.1.3 and 1.1.4. This is the only plugin that I have from you.
 * thanks
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-fatal-error-on-activation/#post-2523310)
 * 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?
 *  Thread Starter [argeee](https://wordpress.org/support/users/argeee/)
 * (@argeee)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-fatal-error-on-activation/#post-2523353)
 * 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
 *  Thread Starter [argeee](https://wordpress.org/support/users/argeee/)
 * (@argeee)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-fatal-error-on-activation/#post-2523364)
 * 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
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-fatal-error-on-activation/#post-2523368)
 * Go here: [http://wordpress.org/extend/plugins/posts-to-posts/](http://wordpress.org/extend/plugins/posts-to-posts/)
 * and find the “Other Versions” link.
 *  Thread Starter [argeee](https://wordpress.org/support/users/argeee/)
 * (@argeee)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-fatal-error-on-activation/#post-2523378)
 * 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](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.
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-fatal-error-on-activation/#post-2523396)
 * Do you happen to use an AppThemes theme?
 *  Thread Starter [argeee](https://wordpress.org/support/users/argeee/)
 * (@argeee)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-fatal-error-on-activation/#post-2523410)
 * 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
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-fatal-error-on-activation/#post-2523412)
 * 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.
 *  Thread Starter [argeee](https://wordpress.org/support/users/argeee/)
 * (@argeee)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-fatal-error-on-activation/#post-2523413)
 * How do I check for the scbFramework version??
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-fatal-error-on-activation/#post-2523422)
 * See [http://plugins.svn.wordpress.org/scb-framework/trunk/scb-info.php](http://plugins.svn.wordpress.org/scb-framework/trunk/scb-info.php)
 *  Thread Starter [argeee](https://wordpress.org/support/users/argeee/)
 * (@argeee)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-fatal-error-on-activation/#post-2523453)
 * 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
 *  [Marko Heijnen](https://wordpress.org/support/users/markoheijnen/)
 * (@markoheijnen)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-fatal-error-on-activation/#post-2523523)
 * 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.

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/plugin-posts-2-posts-fatal-error-on-activation/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-posts-2-posts-fatal-error-on-activation/page/2/?output_format=md)

The topic ‘[Plugin: Posts 2 Posts] Fatal Error on activation’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/posts-to-posts_7a8e9d.svg)
 * [Posts 2 Posts](https://wordpress.org/plugins/posts-to-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/posts-to-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/posts-to-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/posts-to-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/posts-to-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/posts-to-posts/reviews/)

 * 18 replies
 * 6 participants
 * Last reply from: [alxvallejo](https://wordpress.org/support/users/alxvallejo/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-fatal-error-on-activation/page/2/#post-2523630)
 * Status: resolved