CodeIgniter Forums
Message: Undefined offset: 0 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: Message: Undefined offset: 0 (/thread-69448.html)



Message: Undefined offset: 0 - rajeshrashi - 11-25-2017

My website displaying below error , Can any one please help me ?


Message: Undefined offset: 0

Filename: core/My_front.php

Line Number: 49

Backtrace:

File: /home/XXX/public_html/application/core/My_front.php
Line: 49
Function: _error_handler

File: /home/XXX/public_html/index.php
Line: 274
Function: require_once


RE: Message: Undefined offset: 0 - PaulD - 11-25-2017

It is very hard to debug if we do not have your code to look at. You appear to be trying to set an offset with a variable that has not been defined.

Can you show us your controller or model that is using the offset?

Paul