CodeIgniter Forums
(custom) libraries won't load - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: (custom) libraries won't load (/thread-28231.html)



(custom) libraries won't load - El Forum - 03-05-2010

[eluser]Jaimie[/eluser]
I'm facing a problem where some custom downloaded (Twitter, Gvis) classes don't get loaded even tho they are present in the directory and loaded using:

Code:
$this->load->library('Twitter');
$this->load->library('Gvis');

if'ing it returns false, so there must be something i missed.

Same with autoloading, false.

Hope someone can help me out.

Thanks


(custom) libraries won't load - El Forum - 03-05-2010

[eluser]haXis[/eluser]
you can try to load the libraries with lowercase names

Code:
$this->load->library('twitter');
$this->load->library('gvis');

if that doesnt help lowercase the files

I had similar problem with models


(custom) libraries won't load - El Forum - 03-05-2010

[eluser]Jaimie[/eluser]
returned false..

Also tried moving the library to either application/library and system/library, uppercasing, lowercasing, autoloading, all no go.


(custom) libraries won't load - El Forum - 03-05-2010

[eluser]danmontgomery[/eluser]
Set log threshold to 4 and check the error log, _ci_load_class() should be logging any issues with the loader.


(custom) libraries won't load - El Forum - 03-05-2010

[eluser]Jaimie[/eluser]
Quote:DEBUG - 2010-03-05 15:22:34 --> Config Class Initialized
DEBUG - 2010-03-05 15:22:34 --> Hooks Class Initialized
DEBUG - 2010-03-05 15:22:35 --> URI Class Initialized
DEBUG - 2010-03-05 15:22:35 --> Router Class Initialized
DEBUG - 2010-03-05 15:22:35 --> Output Class Initialized
DEBUG - 2010-03-05 15:22:35 --> Input Class Initialized
DEBUG - 2010-03-05 15:22:35 --> Global POST and COOKIE data sanitized
DEBUG - 2010-03-05 15:22:35 --> Language Class Initialized
DEBUG - 2010-03-05 15:22:35 --> Loader Class Initialized
DEBUG - 2010-03-05 15:22:35 --> Helper loaded: url_helper
DEBUG - 2010-03-05 15:22:35 --> Database Driver Class Initialized
DEBUG - 2010-03-05 15:22:35 --> Controller Class Initialized
DEBUG - 2010-03-05 15:22:35 --> File loaded: application/views/view_news_add.php
DEBUG - 2010-03-05 15:22:35 --> Final output sent to browser
DEBUG - 2010-03-05 15:22:35 --> Total execution time: 0.1825

Doesn't seem to give any clues, other than the class being loaded?


(custom) libraries won't load - El Forum - 03-05-2010

[eluser]Moddi[/eluser]
i had a similar problem and actually i didn't bother to solve it, problem was that it wasn't autoloading the library or anything written in the autoload.php file, so i just manually loaded them

But this problem occured when i upgraded to php 5.3

What version are u using?