Code: Select all
PHP Fatal error: Uncaught Error: Call to a member function model() on null in.............
The call is: $this->load->model('extension/common/model_file');
I have the library file calling a model function, I verified that the path to the model file is correct.
The model is located: catalog\model\extension\common\model_file.php
And finally I have the registration setup in the catalog/controller/startup with: $this->registry->set('Guardian_SRH', new Guardian_SRH($this->registry));
Full stack trace:
Code: Select all
[30-Aug-2024 00:12:01 America/New_York] PHP Fatal error: Uncaught Error: Call to a member function model() on null in ............../system/library/library_file.php:48
Stack trace:
#0 ............../catalog/controller/account/login.php(259): Guardian_SRH->tracking('', '', 'Account Login')
#1 ............../catalog/controller/account/login.php(108): ControllerAccountLogin->validate()
#2 ............../system/engine/action.php(79): ControllerAccountLogin->index()
#3 ............../catalog/controller/startup/router.php(25): Action->execute(Object(Registry))
#4 ............../system/engine/action.php(79): ControllerStartupRouter->index()
#5 ............../system/engine/router.php(77): Action->execute(Object(Registry))
#6 ............../system/engine/router.php(66): Router->execute(Object(Action))
#7 ............../system/framework.php(169): Router->dispatch(Object(Action), Object(Action))
#8 ............../system/startup.php(104): require_once('/home/user/...')
#9 ............../index.php(19): start('catalog')
#10 {main}
thrown in ............../system/library/guardian_srh.php on line 48