CodeIgniter Forums
SOLVED Unable to load the requested class: Globals - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: SOLVED Unable to load the requested class: Globals (/thread-68373.html)



SOLVED Unable to load the requested class: Globals - desbest - 07-01-2017

I uploaded my script from my computer to a website and when I load my script I get the 

Quote:Unable to load the requested class: Globals

error.

The file I think being requested application/libraries/globals.php is lower case file name and inside config/autoload.php it says

Code:
$autoload['libraries'] = array('database', 'globals');


What is going on?


RE: Unable to load the requested class: Globals - PaulD - 07-01-2017

Is this working on your local machine?

If so, this is usually because of a capitalisation problem.

Is your globals file called 'Globals'?
Is your class called 'Globals'?

Both need to be uppercase first letter.

Best wishes,

Paul


RE: Unable to load the requested class: Globals - desbest - 07-01-2017

It's fixed now. globals.php should have been Globals.php


RE: Unable to load the requested class: Globals - rtenny - 07-03-2017

Please add SOLVED to the subject line


RE: Unable to load the requested class: Globals - desbest - 07-03-2017

(07-03-2017, 07:58 AM)rtenny Wrote: Please add SOLVED to the subject line


The admins should add a mybb plugin to allow users to mark threads as solved.