Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Bug Fixes
Author Message
mrix
Client



Joined: Dec 04, 2004
Posts: 757

PostPosted: Wed Apr 20, 2005 6:38 am Reply with quote

Hello all, having recieved the email From Raven Hosting today explaining its best to fix site errors etc which sounds a good idea so I decided to check my errors logs to find a page full... ouch! the first error I am trying to rectify is this one which takes up most of the errors on the page....

PHP Warning: footmsg(modules/MS_Analysis/mstrack.php): failed to open stream: No such file or directory in

I have no module on my site MS_Analysis well not one I can see anyway


also another main error is this one

PHP Warning: head(): Failed opening 'includes/my_header.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mrix/public_html/header.php on line 81



I didnt think there was ment to be a my_header.php in includes folder if that what it is saying????


thanks for any help
Cheers
mrix
 
View user's profile Send private message Visit poster's website
64bitguy
The Mouse Is Extension Of Arm



Joined: Mar 06, 2004
Posts: 1164

PostPosted: Wed Apr 20, 2005 8:05 am Reply with quote

MS_Analysis is Maty Scripts statistics. Chances are that you are using it.

The includes/my_header.php file is where your custom header includes or modifications would go. Even if you don't have any custom mods for yours, you should still have the file; however, there are three easy solutions to the problem. I suggest using the first method, but others may feel differently.

First, you could simply create an includes/my_header.php that is empty (looks like this):
Code:
<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2004 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
if (eregi("my_header.php", $_SERVER['SCRIPT_NAME'])) {
    Header("Location: ../index.php");
    die();
}

?>


Or

Go to your header.php file (in the root of your install) and comment out the line:
Code:
    include("includes/my_header.php")


OR you could CHANGE that to read:
Code:
if (file_exists("includes/my_header.php")) {

     include("includes/my_header.php");
    }


Hope this helps

Steph

_________________
Steph Benoit
100% Section 508 and W3C HTML5 and CSS Compliant (Truly) Code, because I love compliance. 
View user's profile Send private message
mrix







PostPosted: Wed Apr 20, 2005 8:52 am Reply with quote

Great thanks Steph I have opted for your first option.
Cheers
mrix
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Bug Fixes

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©