Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Strange log entries - CodeIgniter running twice
#1

[eluser]TheFuzzy0ne[/eluser]
I been checking my logs, and for some reason the entries are not right. Here's my log from a single transaction:
Code:
DEBUG - 2009-02-22 01:50:00 --> Config Class Initialized
DEBUG - 2009-02-22 01:50:00 --> Hooks Class Initialized
DEBUG - 2009-02-22 01:50:00 --> URI Class Initialized
DEBUG - 2009-02-22 01:50:00 --> Router Class Initialized
DEBUG - 2009-02-22 01:50:00 --> Output Class Initialized
DEBUG - 2009-02-22 01:50:00 --> Input Class Initialized
DEBUG - 2009-02-22 01:50:00 --> Global POST and COOKIE data sanitized
DEBUG - 2009-02-22 01:50:00 --> Language Class Initialized
DEBUG - 2009-02-22 01:50:00 --> Loader Class Initialized
DEBUG - 2009-02-22 01:50:00 --> Helper loaded: url_helper
DEBUG - 2009-02-22 01:50:00 --> Helper loaded: html_message_helper
DEBUG - 2009-02-22 01:50:00 --> Database Driver Class Initialized
DEBUG - 2009-02-22 01:50:00 --> Session Class Initialized
DEBUG - 2009-02-22 01:50:00 --> Helper loaded: string_helper
DEBUG - 2009-02-22 01:50:00 --> Encrypt Class Initialized
DEBUG - 2009-02-22 01:50:00 --> Session routines successfully run
DEBUG - 2009-02-22 01:50:00 --> Session class already loaded. Second attempt ignored.
DEBUG - 2009-02-22 01:50:00 --> Controller Class Initialized
DEBUG - 2009-02-22 01:50:00 --> Model Class Initialized
DEBUG - 2009-02-22 01:50:00 --> Helper loaded: form_helper
DEBUG - 2009-02-22 01:50:00 --> File loaded: /var/www/sites/thefuzzy0ne/subdomains/focusonfacts/html/system/application/views/frag/header.php
DEBUG - 2009-02-22 01:50:00 --> File loaded: /var/www/sites/thefuzzy0ne/subdomains/focusonfacts/html/system/application/views/frag/topnav.php
DEBUG - 2009-02-22 01:50:00 --> File loaded: /var/www/sites/thefuzzy0ne/subdomains/focusonfacts/html/system/application/views/frag/message.php
DEBUG - 2009-02-22 01:50:00 --> File loaded: /var/www/sites/thefuzzy0ne/subdomains/focusonfacts/html/system/application/views/admin/right_nav.php
DEBUG - 2009-02-22 01:50:00 --> File loaded: /var/www/sites/thefuzzy0ne/subdomains/focusonfacts/html/system/application/views/frag/footer.php
DEBUG - 2009-02-22 01:50:00 --> File loaded: /var/www/sites/thefuzzy0ne/subdomains/focusonfacts/html/system/application/views/admin/recommended_resources/view_categories.php
DEBUG - 2009-02-22 01:50:00 --> Final output sent to browser
DEBUG - 2009-02-22 01:50:00 --> Total execution time: 0.0941
DEBUG - 2009-02-22 01:50:00 --> Config Class Initialized
DEBUG - 2009-02-22 01:50:00 --> Hooks Class Initialized
DEBUG - 2009-02-22 01:50:00 --> URI Class Initialized
ERROR - 2009-02-22 01:50:00 --> 404 Page Not Found --> test

I don't understand the last 4 entries. Why would the config, hooks and URI classes load for a second time, after the final output has been sent to the browser?

Also, I'm totally miffed about the last line. I used to have a test controller, but that no longer exists, yet CodeIgniter is still trying to find it. I had this problem about a year ago, and I can't remember if/how I fixed it. Chances are it's something I've done somewhere, but I'm completely baffled as to where to start looking. I don't use hooks, and I can't think of anything else that could be trying to load the test controller.

My pages render fine, and it's only when I view the log I see there is a problem. I've tried searching for pages containing the word "test", but none of them are files that I've created. Has anyone else ever come across this kind of problem? This is the second time I've come across it, and I have no explanation.

Any suggestions welcome.
#2

[eluser]TheFuzzy0ne[/eluser]
Problem solved!

It was a text JavaScript call I made to the server to test my asset management script. The src attribute was set to "/test", and my .htaccess routed it to CodeIgniter which could not find it., hence the last 4 log entries.




Theme © iAndrew 2016 - Forum software by © MyBB