CodeIgniter Forums
Call to a member function uri_string() on null - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forum-9.html)
+--- Thread: Call to a member function uri_string() on null (/thread-63047.html)



Call to a member function uri_string() on null - tkaratug - 09-19-2015

Hi everyone,

I am getting this error while using current_url() function on url_helper;

PHP Code:
Fatal errorCall to a member function uri_string() on null in /opt/lampp/htdocs/tkpersonal/system/helpers/url_helper.php on line 106 

My php version is 5.6.12

What seems to be the problem?


RE: Call to a member function uri_string() on null - miko91 - 09-21-2015

Hi,

Could you show your code and explain what you really do ?
Do you load the helper somewhere in a controller ?