A PHP Error was encountered - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: A PHP Error was encountered (/showthread.php?tid=73314) |
A PHP Error was encountered - Jland - 04-10-2019 A PHP Error was encountered Severity: Notice Message: Undefined variable: row Filename: admin/user_account.php Line Number: 79 Backtrace: File: /home/cryplniv/trade4me.cryptogenie.cc/application/views/admin/user_account.php Line: 79 Function: _error_handler Severity: Notice Message: Undefined variable: row Filename: admin/user_account.php Line Number: 79 Backtrace: File: /home/cryplniv/trade4me.cryptogenie.cc/application/views/admin/user_account.php Line: 79 Function: _error_handler CODE OF USER ACCOUNT BELOW <?php if($row['blocked']=='yes'){ echo "<i class='glyphicon glyphicon-ban-circle text-danger' style='font-size:160%;'></i> <a href='####' class='btn btn-primary btn-xs' title='function will be activated later'>Enable</a>"; } else{ echo "<i class='glyphicon glyphicon-ok-circle text-success' style='font-size:160%;'></i> <a href='####' class='btn btn-danger btn-xs' title='function will be activated later'>Disable</a>"; }?> </td> </tr> </table> File: /home/cryplniv/trade4me.cryptogenie.cc/application/views/layout_blade.php Line: 204 Function: include else{ include ($account_type.'/'.$page_name.'.php'); } File: /home/cryplniv/trade4me.cryptogenie.cc/application/controllers/Account.php Line: 84 Function: view $this->load->view( 'layout_blade', $this->data ); } File: /home/cryplniv/trade4me.cryptogenie.cc/index.php Line: 315 Function: require_once require_once BASEPATH.'core/CodeIgniter.php'; RE: A PHP Error was encountered - ciadmin - 04-10-2019 CI version? What might line 79 of admin/user_account.php say? Better yet, could you share the code of user_account? You have not provided enough information for anyone to help, other than stating the obvious, that the $row variable in your line 79 hasn't been set or hasn't been passed to your view. RE: A PHP Error was encountered - Jland - 04-10-2019 (04-10-2019, 05:30 PM)ciadmin Wrote: CI version? A PHP Error was encountered Severity: Notice Message: Undefined variable: row Filename: admin/user_account.php Line Number: 79 Backtrace: File: /home/cryplniv/trade4me.cryptogenie.cc/application/views/admin/user_account.php Line: 79 Function: _error_handler Severity: Notice Message: Undefined variable: row Filename: admin/user_account.php Line Number: 79 Backtrace: File: /home/cryplniv/trade4me.cryptogenie.cc/application/views/admin/user_account.php Line: 79 Function: _error_handler CODE OF USER ACCOUNT BELOW <?php if($row['blocked']=='yes'){ echo "<i class='glyphicon glyphicon-ban-circle text-danger' style='font-size:160%;'></i> <a href='####' class='btn btn-primary btn-xs' title='function will be activated later'>Enable</a>"; } else{ echo "<i class='glyphicon glyphicon-ok-circle text-success' style='font-size:160%;'></i> <a href='####' class='btn btn-danger btn-xs' title='function will be activated later'>Disable</a>"; }?> </td> </tr> </table> File: /home/cryplniv/trade4me.cryptogenie.cc/application/views/layout_blade.php Line: 204 Function: include else{ include ($account_type.'/'.$page_name.'.php'); } File: /home/cryplniv/trade4me.cryptogenie.cc/application/controllers/Account.php Line: 84 Function: view $this->load->view( 'layout_blade', $this->data ); } File: /home/cryplniv/trade4me.cryptogenie.cc/index.php Line: 315 Function: require_once require_once BASEPATH.'core/CodeIgniter.php'; |