Welcome Guest, Not a member yet? Register   Sign In
Log file ERRORs but no URI, Controller, Model or View details
#4

(This post was last modified: 03-23-2015, 10:25 PM by John_Betong.)

I managed to fix this errors thanks to gadelet and RobertSF:

First error:
PHP Code:
ERROR 09:33:46 --> Query error
 
Undeclared variableAs_I_Mature Invalid query
 
SELECT idtitlexrlmemo 
 FROM wisdom ORDER BY title  
 LIMIT As_I_Mature
11.html 

The Database error was in ./config/routes.php. Before upgrading to CI RC3, /(:any) was used extensively. Unfortunately I changed /(:any) to the incorrect /(:+) instead of /(.+) which resulted in incorrect URI parameters being passed to the Controller and Model.



Second error:
PHP Code:
ERROR 12:03:59 --> SeverityWarning --> ini_set(): 
 
A session is active
 
You cannot change the session module's ini settings at this time 
 /my/system/folder/ci3/CodeIgniter-3-0rc3/system/libraries/Session/Session.php 317 

 I amended and added the following lines to:
   /my/system/folder/ci3/CodeIgniter-3-0rc3/system/libraries/Session/Session.php 317
// Line: 143 - ORIGINAL SCRIPT
// session_start();

// John_Betong added to try and see where the session_start() was already started
if( ! isset($_SESSION) ):
   session_start();
   log_message('error', 'Session ALREADY STARTED: ' .$this->uri->uri_string());
else:
   session_start();
endif;

This error has not occurred since so it looks as though the error could have been cleared with fixing the first error.
Reply


Messages In This Thread
RE: Log file ERRORs but no URI, Controller, Model or View details - by John_Betong - 03-23-2015, 10:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB