Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 30. Dec 2024, 20:08

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Error Message
PostPosted: 20. Mar 2007, 11:16 
Offline

Joined: 20. Mar 2007, 11:11
Posts: 11
Hi.
I have installed TWG to the letter (I hope) however when I try to access the admin panel for the first time I get the following error message:

Warning: realpath() has been disabled for security reasons in /home/www/sevac.co.uk/gallery/admin/index.php on line 58

Fatal error: main(): Failed opening required '' (include_path='.:/usr/local/php4/share/pear') in /home/www/sevac.co.uk/gallery/admin/index.php on line 58


Not too good with PHP so any suggestions would be gratefully received.


Top
 Profile  
 
 Post subject:
PostPosted: 20. Mar 2007, 13:06 
Offline

Joined: 20. Mar 2007, 11:11
Posts: 11
Seems my host (Awardspace) has chosen to disable realpath, whatever it may be :cry:
Is there a way round this maybe?


Top
 Profile  
 
 Post subject:
PostPosted: 20. Mar 2007, 15:07 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
stupid restriction - because this does only remove ../ from filenames.

you can remove this if you like - but there are about 10 places where you have to remove this. This works on most server.

I only have added it because there are some wervers that don't allow .. in the path when including.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 20. Mar 2007, 15:09 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
some things don't work without this - like divx video include because they don't allow ../ in paths - ask you hoster to remove this restriction.

I think he has only done this because he don't know better ;). I know that there is a security problem with realpath before php 5.0.3 + safemode

is safemode on and your php < 5.0.3 ?

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 20. Mar 2007, 15:18 
Offline

Joined: 20. Mar 2007, 11:11
Posts: 11
TinyWebGallery wrote:
stupid restriction - because this does only remove ../ from filenames.

you can remove this if you like - but there are about 10 places where you have to remove this. This works on most server.

I only have added it because there are some wervers that don't allow .. in the path when including.

/Michael

How would I remove it and where am I likely to find the 10 places?
Sorry to be a pain. :wink:


Top
 Profile  
 
 Post subject:
PostPosted: 20. Mar 2007, 15:25 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
you have to search for it in all files of TWG.
But not all functions will work 100% - not sure if the user management will work - try and tell me.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 20. Mar 2007, 15:34 
Offline

Joined: 20. Mar 2007, 11:11
Posts: 11
When you say remove it.. what exactly am I removing? Just the word..?


Top
 Profile  
 
 Post subject:
PostPosted: 20. Mar 2007, 15:39 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
should actually work because the function is realpath()

and you can leave the ()

most important for you are the ones the start with include

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 20. Mar 2007, 16:08 
Offline

Joined: 20. Mar 2007, 11:11
Posts: 11
Removed...
require realpath (dirname(__FILE__) . "/../config.php")); // config from TWG
require_once realpath(_QUIXPLORER_PATH . "/../inc/filefunctions.inc.php"); // config from TWG
..from admin/index.php and have reached the login page.. fingers crossed


Top
 Profile  
 
 Post subject:
PostPosted: 20. Mar 2007, 16:23 
Offline

Joined: 20. Mar 2007, 11:11
Posts: 11
Blimey.. more probs
Watch this space :D


Top
 Profile  
 
 Post subject:
PostPosted: 20. Mar 2007, 21:56 
Offline

Joined: 20. Mar 2007, 11:11
Posts: 11
Got into admin panel but still too many problems accessing directories etc. Also one or two other problems which I assume are part of my problem.
Annoying really as I wanted to use this but it seems I cant :cry:


Top
 Profile  
 
 Post subject:
PostPosted: 20. Mar 2007, 23:44 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
have you sent an email to your hoster?


Top
 Profile  
 
 Post subject:
PostPosted: 21. Mar 2007, 09:26 
Offline

Joined: 20. Mar 2007, 11:11
Posts: 11
TinyWebGallery wrote:
have you sent an email to your hoster?

I'll send them one but I've looked on their forum and found a couple of other peoples problems (not with TWG) with realpath but they dont seem very helpful.
I'll try anyway..


Top
 Profile  
 
 Post subject:
PostPosted: 21. Mar 2007, 10:22 
Offline

Joined: 20. Mar 2007, 11:11
Posts: 11
Quote:
I'm sorry but realpath() is disabled for security reasons.

Thank you


That was their reply.... GITS!!!


Top
 Profile  
 
 Post subject:
PostPosted: 21. Mar 2007, 10:28 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
which php version do they have installed?

check info.php of TWG

/Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


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 post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy