I am trying to use elliothaughins Socialize system for code igniter,
However i keep getting
Message: include (application / third_party / config / socializenetworks.php): could not open the stream: there is no such file or directory
I tracked this problem, and when I call $this->load->add_package_path(APPPATH.'third_party/socialize/');
In the loader class, if I do die($path) , I only get application/third_party .
Seems strange though the code for the controller
class SocializeController extends CI_Controller { function __construct(){ parent::__construct(); parse_str($_SERVER['QUERY_STRING'], $_GET); $this->load->add_package_path(APPPATH.'third_party/socialize/'); $this->_autoload(); } private function _autoload(){ $this->load->model('socialize_migration_model'); $autoload = array(); include(APPPATH.'third_party/socialize/config/autoload'.EXT); foreach ( $autoload as $type => $files ) { $type = ($type == 'libraries') ? 'library' : $type; foreach ( $files as $file ){ $this->load->$type($file); } } } public function data($key, $value) { $this->load->vars(array($key => $value)); } }
As you can see, this is a call to the model that it successfully loads, This is when it gets to the autoloader, where it loads the libraries, where it breaks,
The specific library that poses the problem starts as
class SocializeNetworks { private $_obj; private $_networks = array(); function __construct(){ $this->_obj =& get_instance(); $this->_obj->load->config('socializenetworks');
So,
What is going on here and how can I fix it?
source share