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 folderscb
in the root of the plugins directory and the filescb-load.php
in the plugin root as well. But now I am having trouble calling thescb-load.php
file. I assume that file still needs to be required by the plugins, so instead ofrequire 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(https://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 'https://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?
- The topic ‘Using scbFramework in multiple plugins’ is closed to new replies.