Welcome Guest, Not a member yet? Register   Sign In
Need Help With Phil's Sturgeons AutoLog - Giving Error Log Message
#11

[eluser]jmadsen[/eluser]
thanks - that's what I'm looking at now
#12

[eluser]jmadsen[/eluser]
wow - his workaround is pretty over-simplistic.

need to pay more attention to my logs (and read these posts more carefully)

I'll be moving to your code from now on - much cleaner
#13

[eluser]vincej[/eluser]
Hi - @wiredesignz, Forgive me I'm still a bit of a newb with some of this stuff, to be specific is the supplied code a solution to the problem, and if so, where should I put it ?

Many Thanks !! vincej

Code:
<?php
public function __autoload($class)
{  
    /* don't autoload CI_ prefixed classes or those using the config subclass_prefix */
    if (strstr($class, 'CI_') OR strstr($class, config_item('subclass_prefix'))) return;

    /* autoload core classes */
    if(is_file($location = APPPATH.'core/'.$class.EXT))
    {
       include_once $location;
       return;
    }  
  
    /* autoload library classes */
    if(is_file($location = APPPATH.'libraries/'.$class.EXT))
    {
       include_once $location;
       return;
    }  
}
?>
#14

[eluser]jmadsen[/eluser]
vincej - yes, just replace Phil's function with @wiredesignz, and remove the "public" keyword
#15

[eluser]vincej[/eluser]
HI jmadsen - well I commented out Phils autoloader and replaced it with the code minus "public" keyword, and behold, it still gave me the same error - bummer. Here is the error. Anything else that might be missing ?

Many thanks !!

Code:
ERROR - 2012-10-24 20:28:46 --&gt; Severity: Warning  --&gt; include_once(application/core/MY_Googlemaps.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory /home/countr70/public_html/application/config/config.php 379
ERROR - 2012-10-24 20:28:46 --&gt; Severity: Warning  --&gt; include_once() [<a href='function.include'>function.include</a>]: Failed opening 'application/core/MY_Googlemaps.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') /home/countr70/public_html/application/config/config.php 379
ERROR - 2012-10-24 20:28:46 --&gt; Severity: Warning  --&gt; include_once(application/core/MY_Jsmin.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory /home/countr70/public_html/application/config/config.php 379
ERROR - 2012-10-24 20:28:46 --&gt; Severity: Warning  --&gt; include_once() [<a href='function.include'>function.include</a>]: Failed opening 'application/core/MY_Jsmin.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') /home/countr70/public_html/application/config/config.php 379
#16

[eluser]wiredesignz[/eluser]
@vincej, You cannot have replaced the code correctly because the errors are occurring at the same line number (379) in the config file as previously. My version of the code also checks that the file exists before attempting to include it so the error cannot actually occur.
#17

[eluser]vincej[/eluser]
@wiredesignz, The definition of stupidity is when you don't upload your corrected file :o)

It works like a dream ... Many Many Thanks - I would never have fixed it by myself !

cheers !




Theme © iAndrew 2016 - Forum software by © MyBB