Title: Using scbFramework in multiple plugins
Last modified: August 20, 2016

---

# Using scbFramework in multiple plugins

 *  Resolved [gillespieza](https://wordpress.org/support/users/gillespieza/)
 * (@gillespieza)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/using-scbframework-in-multiple-plugins/)
 * I have built 2 plugins using the scbFramework and they both work fine individually
   but I can’t activate them both at the same time because I get complaints of `
   can't redeclare scb_init()` and such-like. This is fine – I’ve followed the instructions
   on the wiki and put the framework folder `scb` in the root of the plugins directory
   and the file `scb-load.php` in the plugin root as well. But now I am having trouble
   calling the `scb-load.php` file. I assume that file still needs to be required
   by the plugins, so instead of
 * `require dirname( __FILE__ ) . '/scb-load.php';`
 * I have used
 * `require_once plugins_url( 'scb-load.php' , dirname(__FILE__) );`
 * but then I get
 *     ```
       Warning:  require_once() [function.require-once]: URL file-access is disabled in the server configuration in /home/gillespieza/mydomain.com/wp-content/plugins/salamander-film-festival/salamander-film-festival.php on line 37
   
       Warning:  require_once(http://mydomain.com/wp-content/plugins/scb-load.php) [function.require-once]: failed to open stream: no suitable wrapper could be found in /home/gillespieza/mydomain.com/wp-content/plugins/salamander-film-festival/salamander-film-festival.php on line 37
   
       Fatal error:  require_once() [function.require]: Failed opening required 'http://mydomain.com/wp-content/plugins/scb-load.php' (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/gillespieza/mydomain.com/wp-content/plugins/salamander-film-festival/salamander-film-festival.php on line 37
       ```
   
 * From my googling, I understand this is some sort of security issue that is present
   on certain hosts, and there are various solutions but they all involve contacting
   your host or changing your php.ini file, and none of these solutions will work
   for a plugin intended for general release.
 * What am I doing wrong, or is there a different way to require the scb-load.php
   file?
 * [http://wordpress.org/extend/plugins/scb-framework/](http://wordpress.org/extend/plugins/scb-framework/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/using-scbframework-in-multiple-plugins/#post-3589626)
 * > I’ve followed the instructions on the wiki and put the framework folder scb
   > in the root of the plugins directory and the file scb-load.php in the plugin
   > root as well.
 * There are two methods of loading the framework described in the wiki. The problem
   is that you used both.
 * Require `scb/load.php`, instead of `scb-load.php`.
 *  Thread Starter [gillespieza](https://wordpress.org/support/users/gillespieza/)
 * (@gillespieza)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/using-scbframework-in-multiple-plugins/#post-3589665)
 * Ah! What a silly mistake – thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Using scbFramework in multiple plugins’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/scb-framework.svg)
 * [scbFramework](https://wordpress.org/plugins/scb-framework/)
 * [Support Threads](https://wordpress.org/support/plugin/scb-framework/)
 * [Active Topics](https://wordpress.org/support/plugin/scb-framework/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/scb-framework/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/scb-framework/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [gillespieza](https://wordpress.org/support/users/gillespieza/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/using-scbframework-in-multiple-plugins/#post-3589665)
 * Status: resolved