-
Notifications
You must be signed in to change notification settings - Fork 523
Undefined index: user_agent #1153
Comments
Which versions of Bonfire and CodeIgniter are you using? All I'm getting on line 174 of Additionally, what's on line 314 of |
Hi, In my /MX/Loader.php file, line 174:
In my /content/index.php file, line 314:
Compatibility problem with CI3.0.1? |
It looks like I forgot to update Wiredesignz' code somewhere in the last 6 months: I'll run a diff and update the dev branches shortly. |
Thank you very much for this regular job ! |
By the way, as far as I can tell at the moment, all you should need to do to fix this error is remove line 174 from |
Latest changes from Wiredesignz' Bitbucket https://bitbucket.org/wiredesignz/codeigniter-modular- extensions-hmvc
Latest changes from Wiredesignz' bitbucket https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc
In the interest of keeping track of why this happened for future reference, it's a two-parter:
if ($path === false) {
// Use $this->_ci_load_library() in CI 3
if (substr(CI_VERSION, 0, 1) != '2') {
$this->_ci_load_library($library, $params, $object_name);
} else {
$this->_ci_load_class($library, $params, $object_name);
$_alias = $this->_ci_classes[$class];
}
} else {
Modules::load_file($_library, $path);
$library = ucfirst($_library);
CI::$APP->$_alias = new $library($params);
$this->_ci_classes[$class] = $_alias;
} In other words, if you were using CI3 with |
Yes, remove the line 174 of Loader.php corrects this error. Thanks again! |
Awesome, woke up this morning and this was resolved. Thanks @mwhitneysdsu @Benjer ! |
Currently receiving this error on a fresh install:
Any ideas?
The text was updated successfully, but these errors were encountered: