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.3 RN Issues
Author Message
falsemotivation
New Member
New Member



Joined: Dec 06, 2008
Posts: 10

PostPosted: Tue Dec 09, 2008 3:22 am Reply with quote

I hope I didn't post this in the wrong forum.
Quote:

Notice: Use of undefined constant INCLUDE_PATH - assumed 'INCLUDE_PATH' in /public_html/deadrabbitsclan/config.php on line 94

Warning: require_once(INCLUDE_PATHrnconfig.php) [function.require-once]: failed to open stream: No such file or directory in /public_html/deadrabbitsclan/config.php on line 94

Fatal error: require_once() [function.require]: Failed opening required 'INCLUDE_PATHrnconfig.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/werais5/php') in /public_html/deadrabbitsclan/config.php on line 94

Is anyone familiar with the x7chat? I love it, but unfortunately it doesn't seem compatible with RavenNuke, that's the error I get when trying to install it. Anyone know what I can edit/tweak to get it to work? Or a chat alternative that would work?

Running the latest version RN.

deadrabbitsclan.net
 
View user's profile Send private message
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Tue Dec 09, 2008 3:30 am Reply with quote

Edit the config.php file in your nuke root.
Near the bottom there is a line includeing or requiring rnconfig.php
Just above that line add;
if(!defined('INCLUDE_PATH')) define('INCLUDE_PATH', './');
 
View user's profile Send private message Send e-mail
falsemotivation







PostPosted: Tue Dec 09, 2008 3:41 am Reply with quote

Guardian2003 wrote:
Edit the config.php file in your nuke root.
Near the bottom there is a line includeing or requiring rnconfig.php
Just above that line add;
if(!defined('INCLUDE_PATH')) define('INCLUDE_PATH', './');


Warning: require_once(./rnconfig.php) [function.require-once]: failed to open stream: No such file or directory in /home/werais5/public_html/deadrabbitsclan/config.php on line 95

Fatal error: require_once() [function.require]: Failed opening required './rnconfig.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/werais5/php') in /home/werais5/public_html/deadrabbitsclan/config.php on line 95

It's what I get after placing that code into the config.php
 
Guardian2003







PostPosted: Tue Dec 09, 2008 4:06 am Reply with quote

Do you have the file rnconfig.php in your nuke root?
 
falsemotivation







PostPosted: Tue Dec 09, 2008 4:08 am Reply with quote

Yes, I double checked after I got the message the first time.
 
Guardian2003







PostPosted: Tue Dec 09, 2008 4:30 am Reply with quote

You could try

if(!defined('INCLUDE_PATH')) define('INCLUDE_PATH', '');

But the error doesn't make any sense.
INCLUDE_PATH is set in mainfile.php which then 'includes' config.php which in turn 'includes' rnconfig.php
The only way you would get an error of this sort is;
if you have a mainfile.php from an old phpNuke installation
rnconfig.php is missing or corrupt
You are using a module or other add-on code which is calling the root config.php file directly instead of calling mainfile.php
 
falsemotivation







PostPosted: Tue Dec 09, 2008 4:42 am Reply with quote

Guardian2003 wrote:
You could try

if(!defined('INCLUDE_PATH')) define('INCLUDE_PATH', '');

But the error doesn't make any sense.
INCLUDE_PATH is set in mainfile.php which then 'includes' config.php which in turn 'includes' rnconfig.php
The only way you would get an error of this sort is;
if you have a mainfile.php from an old phpNuke installation
rnconfig.php is missing or corrupt
You are using a module or other add-on code which is calling the root config.php file directly instead of calling mainfile.php


ha! That new string worked fine, I appreciate your help. I'm really glad I switched to RavenNuke the support community here is far more active, and it's given me far less headaches than plain Nuke did.

Thanks very much.
 
Guardian2003







PostPosted: Tue Dec 09, 2008 6:25 am Reply with quote

No problem. Glad your module is working now Smile
 
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Tue Dec 09, 2008 8:59 am Reply with quote

Guardian are you guys planning on adding something like the above to the config file with the next update? It is pain with any old installation script that is in the root that just includes the config file or any script that just includes the config file for that matter.

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
Guardian2003







PostPosted: Tue Dec 09, 2008 10:44 am Reply with quote

We could do but where do you draw the line in the sand between maintaining backward compatibility?
It would not actually hurt anything to add that line (my personal opinion) but it does give us the opportunity when people have this specific problem to remind them that what they are using is quite old code so it could be perceived that leaving it out is better for their security.

Any installer that calls config.php directly instead of mainfile.php could not (as an example) use any admin authentication at the scripts runtime which means if they leave it on their server, it could be accessed by anyone with impunity.
Sometimes these swings and roundabouts give me a migrain Sad
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 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 ©