-2

I am having an issue that coming from PHP 5.3.2 to 5.3.3 the code no longer can find the "I2A2" class.

Here is some info:

Error: ErrorException [ Error ]: Class 'I2A2' not found

Fatal error: Class 'I2A2' not found in /var/www/html/root/sandbox/lpolicin/t6/fuel/app/classes/observer/selectcustomer.php on line 6

$directory_listing = \I2A2::get_customer_info("puid",$customer->puid);

Code:

"classes/observer/selectcustomer.php "

class Observer_Selectcustomer extends Orm\Observer 
{

    public function after_load(Model_Customer $customer)
    {
        $directory_listing = \I2A2::get_customer_info("puid",$customer->puid);
    }
}

"classes/I2A2.php"

class I2A2 
{
    if (static::$initalized === true)
    {
        return;
    }
}

Auto loader (this is insert into a huge array then auto loads everyting)....

{
    'always_load'   => array(
     'classes'  => array(),
}

If you need more info please let me know!

hakre
  • 193,403
  • 52
  • 435
  • 836
LukePOLO
  • 1,110
  • 3
  • 13
  • 28
  • You don't load the class any longer. Additionally from the fragments of the code you've posted it's not showing any relation between the definition of the class and your class loader. – hakre Feb 15 '12 at 18:10

1 Answers1

0

Check your paths: the first is correctly fully lowercase but the second suddenly has the filename uppercase. All paths in Fuel are fully lowercase, no matter the classname. Thus change the filename for the I2A2 class to i2a2.php and it'll work.

  • That was the issue , switching from a mac to a real unix , should have realized all file paths etc should be lowercase! – LukePOLO Feb 29 '12 at 20:08