0

page show this error in codeigniter project but log file not generate error

its me first experience with logging function so i do not know how to generate error

   A PHP Error was encountered
    Severity: Notice

    Message: Undefined variable: bottomstatus

    Filename: views/template.php

    Line Number: 65

    Backtrace:

    File: D:\xampp\htdocs\timehubzone\application\views\template.php
    Line: 65
    Function: _error_handler

codeigniter error status

$config['log_threshold'] = 1;
$config['log_path'] = '';
$config['log_file_extension'] = '';
ucMedia
  • 4,105
  • 4
  • 38
  • 46
Ghulam Abbas
  • 515
  • 2
  • 10
  • 23

1 Answers1

0

In order to get notices logged too - you've to increase your threshold value

Instead of

$config['log_threshold'] = 1;

you simply have to change that to

$config['log_threshold'] = 2;

Be aware, this isn't useful for production environments - because your log file will get to big. You will find more information at the Codeigniter Documentation and at this SO post answered by Narf: CodeIgniter 3 - configuring log_threshold

Atural
  • 5,389
  • 5
  • 18
  • 35
  • it work for me but not generate which url hit according error.just show file name i want to show which url have error – Ghulam Abbas Apr 11 '18 at 12:45