Welcome Guest, Not a member yet? Register   Sign In
Error in log file when using MY_Log to extend CI_Log
#1

[eluser]dsloan[/eluser]
I see the following error appearing throughout my application log file when it attempts to load MY_Log.

ERROR - 06-03-2013 22:52:20 --&gt; Severity: Warning --&gt; include_once(application/core/MY_Log.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory C:\dev\mysite\application\config\config.php 377

My autoload file has the following:

Code:
$autoload['libraries'] = array('parser', 'session', 'log');

The MY_Log class is defined in application/libraries/MY_Log.php

Code:
class MY_Log extends CI_Log

The MY_Parser class, which is in application/libraries/MY_Parser.php loads fine.

Code:
class MY_Parser extends CI_Parser

When I debug the loader to see why Parser behaves differently from Log, it appears that it's looking in application/core for MY_Log, but looks for (and finds) MY_Parser ok in application/libraries.

I am using CI 2.1.1

Any ideas why this difference?

Thanks,
Diarmid
#2

[eluser]dsloan[/eluser]
Any ideas, anyone?




Theme © iAndrew 2016 - Forum software by © MyBB