codeigniter-template icon indicating copy to clipboard operation
codeigniter-template copied to clipboard

Call to a member function is_mobile() on a non-object

Open sevenpixels opened this issue 13 years ago • 2 comments

i'm getting the following error.

PHP Fatal error: Call to a member function is_mobile() on a non-object in /home/sevenpix/public_html/application/libraries/Template.php on line 122

The site loads fine and everything seems to work. So I'm not sure what's up.

sevenpixels avatar Mar 28 '12 10:03 sevenpixels

Hi,

I've been having this error, and I've found a fix for my issue - don't know if it'll help you...

On line 122 it's currently class_exists('CI_User_agent') OR $this->_ci->load->library('user_agent'); I've replaced this with $this->_ci->load->library('user_agent'); and that's it.

Craig

craigsansam avatar May 17 '12 19:05 craigsansam

I've ran into this same issue as well from version 1.9 of the template library. That line that craig suggested already exists. Is there any other possible ideas for this.Undefined property: Login::$agent from inside of the template library file is also existent.

JeffreyDavidson avatar Feb 06 '14 18:02 JeffreyDavidson