Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
thumpn8974
Worker
Worker



Joined: Feb 09, 2011
Posts: 188
Location: US

PostPosted: Tue Sep 20, 2011 4:52 am Reply with quote

First, if I am posting in the wrong place, then I apologize and Mod/ admin please move it to the right place.

I downloaded and installed the x7chat, too. I am getting a similar error message:

Quote:
Unable to locate the RavenNuke(tm) configuration file - rnconfig.php

It could be missing or not readable. Please verify that the file exists and is readable in the root folder.

This may also be caused by a third party module/script which attempts to include config.php directly rather than including mainfile.php and letting it load config.php, or otherwise does not follow RavenNuke(tm) standards on how the constant INCLUDE_PATH is defined (this is done in mainfile.php, and is dependent upon other constants).


I have my rnconfig set to 777 but it still doesn't see it. Plus my background is white with a blue box in the center. Is that how it is supposed to be? I am running ravenuke 2.40.01 if that helps. I know you can change the background theme, but they won't let you put in your website background. Is there a way to integrate it to where it is a part of the website like the forum is and having the same background?
I also got this error message when I logged out of the chat:
Quote:
Unable to locate the RavenNuke(tm) configuration file - rnconfig.php

It could be missing or not readable. Please verify that the file exists and is readable in the root folder.

This may also be caused by a third party module/script which attempts to include config.php directly rather than including mainfile.php and letting it load config.php, or otherwise does not follow RavenNuke(tm) standards on how the constant INCLUDE_PATH is defined (this is done in mainfile.php, and is dependent upon other constants).
Warning: Cannot modify header information - headers already sent by (output started at /homepages/16/d*******/htdocs/h3llclan/html/config.php:108) in /homepages/16/d********/htdocs/h3llclan/html/x7chat/index.php on line 249

Warning: Cannot modify header information - headers already sent by (output started at /homepages/16/d********/htdocs/h3llclan/html/config.php:108) in /homepages/16/d*******/htdocs/h3llclan/html/x7chat/index.php on line 250

Warning: Cannot modify header information - headers already sent by (output started at /homepages/16/d*******/htdocs/h3llclan/html/config.php:108) in /homepages/16/d*******/htdocs/h3llclan/html/x7chat/index.php on line 255
 
View user's profile Send private message Visit poster's website Yahoo Messenger
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Tue Sep 20, 2011 3:45 pm Reply with quote

In your RavenNuke config.php file around line 80, find the following code:

Code:
 

if (defined('INCLUDE_PATH') && file_exists(INCLUDE_PATH . 'rnconfig.php')) {
   require_once INCLUDE_PATH . 'rnconfig.php';


above that, add this:
Code:


!defined('INCLUDE_PATH') ? define('INCLUDE_PATH', dirname(__FILE__) . '/') : '';

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
thumpn8974







PostPosted: Tue Sep 20, 2011 4:52 pm Reply with quote

Thank you so much, that fixed it. I do have a question though (from a noob) why didn't you use "if (defined" instead of just "!defined("?
Again thank you so much for getting back to me.
 
nuken







PostPosted: Tue Sep 20, 2011 6:02 pm Reply with quote

Because the !defined means if it is not defined where as if (defined means if it is defined. INCLUDE_PATH is defined in mainfile.php which is the preferred way to access the database connection information. Some older mods go through config.php to get the database information like the x7 chat does. Either way will work, but including mainfile.php also includes many functions as well as config.php.
 
thumpn8974







PostPosted: Wed Sep 21, 2011 2:47 pm Reply with quote

Thank you for taking the time to explain it to me.
 
thumpn8974







PostPosted: Mon Sep 26, 2011 2:02 pm Reply with quote

I have one more question concerning the x7chat. How do I get it to open up in another window?
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues

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 ©