PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
gamerevolt
New Member
New Member


Joined: Apr 25, 2006
Posts: 19

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

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: 4687

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

chdir? That's pretty unusual. Why not combine the chdir with the require_once right after that.
View user's profile Send private message
gamerevolt
New Member
New Member


Joined: Apr 25, 2006
Posts: 19

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

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/");
View user's profile Send private message
gregexp
The Mouse Is Extension Of Arm


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

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

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/");
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
gamerevolt
New Member
New Member


Joined: Apr 25, 2006
Posts: 19

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

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
View user's profile Send private message
montego
Site Admin


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

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

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.
View user's profile Send private message Visit poster's website
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 4687

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

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/");
View user's profile Send private message
gamerevolt
New Member
New Member


Joined: Apr 25, 2006
Posts: 19

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

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);
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 4687

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

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");
View user's profile Send private message
montego
Site Admin


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

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

gamerevolt, was this ever resolved?
View user's profile Send private message Visit poster's website
gamerevolt
New Member
New Member


Joined: Apr 25, 2006
Posts: 19

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

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?
View user's profile Send private message
gregexp
The Mouse Is Extension Of Arm


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

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

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.
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum