Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.8
Author Message
gamerevolt
New Member
New Member



Joined: Apr 25, 2006
Posts: 19

PostPosted: Thu Jun 22, 2006 1:28 pm Reply with quote

I am trying to use the plugin imanager (purchased) and when I click the link to browes/add images it give the following error.

Fatal error: Failed opening required 'mainfile.php' (include_path='.:/usr/share/pear') in /home/webadmin/xxxxx.com/html/xxxxx/includes/tiny_mce/plugins/imagemanager/classes/Authenticators/PHPNukeAuthenticatorImpl.php on line 13

Line 13 of PHPNukeAuthenticatorImpl.php states

Line 11 @session_destroy();
Line 12 chdir("../../../../");
Line 13 require_once("mainfile.php");
Line 14chdir("includes/tiny_mce/plugins/imagemanager/");

Am I missing something here?[/code]
 
View user's profile Send private message
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6432

PostPosted: Thu Jun 22, 2006 7:22 pm Reply with quote

chdir? That's pretty unusual. Why not combine the chdir with the require_once right after that.

_________________
I search, therefore I exist...
nukeSEO - nukeFEED - nukePIE - nukeSPAM - nukeWYSIWYG
 
View user's profile Send private message
gamerevolt







PostPosted: Thu Jun 22, 2006 8:41 pm Reply with quote

kguske wrote:
chdir? That's pretty unusual. Why not combine the chdir with the require_once right after that.


Are you saying make the code look like this?

Line 11 @session_destroy();
Line 12 require_once chdir("mainfile.php");
Line 13chdir("includes/tiny_mce/plugins/imagemanager/");
 
gregexp
The Mouse Is Extension Of Arm



Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol

PostPosted: Thu Jun 22, 2006 9:06 pm Reply with quote

not sure if thats what he meant...but this might help..



Line 11 @session_destroy();
Line 12 chdir("../../../");
Line 13 require_once("mainfile.php");
Line 14chdir("includes/tiny_mce/plugins/imagemanager/");

_________________
For those who stand shall NEVER fall and those who fall shall RISE once more!! 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
gamerevolt







PostPosted: Fri Jun 23, 2006 12:22 pm Reply with quote

darklord wrote:
not sure if thats what he meant...but this might help..



Line 11 @session_destroy();
Line 12 chdir("../../../");
Line 13 require_once("mainfile.php");
Line 14chdir("includes/tiny_mce/plugins/imagemanager/");


Did not help Crying or Very sad
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sat Jun 24, 2006 1:36 pm Reply with quote

Well, the first one posted had four "../" nodes and the second one only had three. Try what Darklord has posted, but add an additional "../" in it.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
kguske







PostPosted: Sat Jun 24, 2006 4:49 pm Reply with quote

I'm not sure why they did not just use:
Code:
Line 11 @session_destroy();

Line 12 require_once("../../../../mainfile.php");
Line 13chdir("includes/tiny_mce/plugins/imagemanager/");
 
gamerevolt







PostPosted: Thu Jun 29, 2006 12:03 pm Reply with quote

kguske wrote:
I'm not sure why they did not just use:
Code:
Line 11 @session_destroy();

Line 12 require_once("../../../../mainfile.php");
Line 13chdir("includes/tiny_mce/plugins/imagemanager/");


I did this and now I receive the following error.

Fatal error: Cannot instantiate non-existent class: sql_db in /home/webadmin/xxxxxx.com/html/xxxxx/db/db.php on line 94

Line 94
Code:
$db = new sql_db($dbhost, $dbuname, $dbpass, $dbname, false);
 
kguske







PostPosted: Thu Jun 29, 2006 12:14 pm Reply with quote

Check your error log - you should see something referring to mainfile.php not found. The problem is that the ../../../../ doesn't have the right number of ../ in it (probably too many).

You might try 3 instead:
Code:


Line 12 require_once("../../../mainfile.php");
 
montego







PostPosted: Wed Jul 05, 2006 3:08 pm Reply with quote

gamerevolt, was this ever resolved?
 
gamerevolt







PostPosted: Thu Jul 06, 2006 8:07 am Reply with quote

montego wrote:
gamerevolt, was this ever resolved?


No it has not... I have tried just about everything I can think of... I am still working on it... Any more sugesstions?
 
gregexp







PostPosted: Thu Jul 06, 2006 10:24 am Reply with quote

As my learning is increasing, Ive come to understand(I hope this is right) that ../ is that same as up one directory, so now we need to know if their is another mainfile and which file is including this,

IF(and I do mean if) the directory has been changed previously, then you would need to change it again, If not, try just simply include(mainfile.php) and dont change directory at all if this doesnt help, I cant tell you exactly how many ../ it needs so youll need to add one at a time until you get it right, but no more then 6 ../ because more then 6 would send you above the public_html for sure.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.8

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 ©