Part of the EllisLab Network

Bug Report

Going throw the Controller twice !

Date: 01/27/2008 Severity: Major
Status: Bogus Reporter: shezouani
Version: 1.5.4
Keywords: Libraries, Loader Class

Description

I had some troubles to save some posted form data into database. I put some logs and I finally understood what was wrong with it : the controller is besing executed twice!
Is it really necessary to do that?
Thanks.

Code Sample

log_message('debug','>>> Going throw the requested Controller Method <<<');

Expected Result

DEBUG - 2008-01-27 16:47:38—> Config Class Initialized
DEBUG - 2008-01-27 16:47:38—> Hooks Class Initialized
DEBUG - 2008-01-27 16:47:38—> Router Class Initialized
DEBUG - 2008-01-27 16:47:38—> Output Class Initialized
DEBUG - 2008-01-27 16:47:38—> Input Class Initialized
DEBUG - 2008-01-27 16:47:38—> XSS Filtering completed
DEBUG - 2008-01-27 16:47:38—> Global POST and COOKIE data sanitized
DEBUG - 2008-01-27 16:47:38—> URI Class Initialized
DEBUG - 2008-01-27 16:47:38—> Language Class Initialized
DEBUG - 2008-01-27 16:47:38—> Loader Class Initialized
DEBUG - 2008-01-27 16:47:38—> Helpers loaded: url, var_dump
DEBUG - 2008-01-27 16:47:38—> Database Driver Class Initialized
DEBUG - 2008-01-27 16:47:38—> Config file loaded: config/application.php
DEBUG - 2008-01-27 16:47:38—> Controller Class Initialized
DEBUG - 2008-01-27 16:47:38—> >>> Going throw the requested Controller Method <<<
DEBUG - 2008-01-27 16:47:38—> Model Class Initialized
DEBUG - 2008-01-27 16:47:38—> File loaded: application/views/editeur.php
DEBUG - 2008-01-27 16:47:38—> File loaded: application/views/html_doc.php
DEBUG - 2008-01-27 16:47:38—> Language file loaded: language/english/profiler_lang.php
DEBUG - 2008-01-27 16:47:38—> Final output sent to browser
DEBUG - 2008-01-27 16:47:38—> Total execution time: 0.4139

Actual Result

Here is the log file for one controller call :

DEBUG - 2008-01-27 16:47:38—> Config Class Initialized
DEBUG - 2008-01-27 16:47:38—> Hooks Class Initialized
DEBUG - 2008-01-27 16:47:38—> Router Class Initialized
DEBUG - 2008-01-27 16:47:38—> Output Class Initialized
DEBUG - 2008-01-27 16:47:38—> Input Class Initialized
DEBUG - 2008-01-27 16:47:38—> XSS Filtering completed
DEBUG - 2008-01-27 16:47:38—> Global POST and COOKIE data sanitized
DEBUG - 2008-01-27 16:47:38—> URI Class Initialized
DEBUG - 2008-01-27 16:47:38—> Language Class Initialized
DEBUG - 2008-01-27 16:47:38—> Loader Class Initialized
DEBUG - 2008-01-27 16:47:38—> Helpers loaded: url, var_dump
DEBUG - 2008-01-27 16:47:38—> Database Driver Class Initialized
DEBUG - 2008-01-27 16:47:38—> Config file loaded: config/application.php
DEBUG - 2008-01-27 16:47:38—> Controller Class Initialized
DEBUG - 2008-01-27 16:47:38—> >>> Going throw the requested Controller Method <<<
DEBUG - 2008-01-27 16:47:38—> Model Class Initialized
DEBUG - 2008-01-27 16:47:38—> File loaded: application/views/editeur.php
DEBUG - 2008-01-27 16:47:38—> File loaded: application/views/html_doc.php
DEBUG - 2008-01-27 16:47:38—> Language file loaded: language/english/profiler_lang.php
DEBUG - 2008-01-27 16:47:38—> Final output sent to browser
DEBUG - 2008-01-27 16:47:38—> Total execution time: 0.4139
DEBUG - 2008-01-27 16:47:38—> Config Class Initialized
DEBUG - 2008-01-27 16:47:38—> Hooks Class Initialized
DEBUG - 2008-01-27 16:47:38—> Router Class Initialized
DEBUG - 2008-01-27 16:47:38—> Output Class Initialized
DEBUG - 2008-01-27 16:47:38—> Input Class Initialized
DEBUG - 2008-01-27 16:47:38—> Global POST and COOKIE data sanitized
DEBUG - 2008-01-27 16:47:38—> URI Class Initialized
DEBUG - 2008-01-27 16:47:38—> Language Class Initialized
DEBUG - 2008-01-27 16:47:38—> Loader Class Initialized
DEBUG - 2008-01-27 16:47:38—> Helpers loaded: url, var_dump
DEBUG - 2008-01-27 16:47:38—> Database Driver Class Initialized
DEBUG - 2008-01-27 16:47:38—> Config file loaded: config/application.php
DEBUG - 2008-01-27 16:47:38—> Controller Class Initialized
DEBUG - 2008-01-27 16:47:38—> >>> Going throw the requested Controller Method <<<
DEBUG - 2008-01-27 16:47:38—> File loaded: application/views/editeur.php
DEBUG - 2008-01-27 16:47:38—> File loaded: application/views/html_doc.php
DEBUG - 2008-01-27 16:47:38—> Language file loaded: language/english/profiler_lang.php
DEBUG - 2008-01-27 16:47:38—> Final output sent to browser
DEBUG - 2008-01-27 16:47:39—> Total execution time: 0.3651

Comment on Bug Report

Page 1 of 1 pages
Posted by: Derek Allard on 27 January 2008 10:52am
Derek Allard's avatar

Greetings shezouani,

I do not see a forum thread associated with this bug report, and it looks like it may not be a bug.  Have you first read the bug reporting guidelines and used the Bug Report Forum to get help confirming that this is a bug before reporting?

Thanks!

Name:

Email:

Location:

URL:

Remember my personal information

Notify me of follow-up comments?