Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum https://www.tinywebgallery.com/forum/ |
|
Error Message https://www.tinywebgallery.com/forum/viewtopic.php?f=10&t=956 |
Page 1 of 2 |
Author: | Bazza [ 20. Mar 2007, 11:16 ] |
Post subject: | Error Message |
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. |
Author: | Bazza [ 20. Mar 2007, 13:06 ] |
Post subject: | |
Seems my host (Awardspace) has chosen to disable realpath, whatever it may be Is there a way round this maybe? |
Author: | TinyWebGallery [ 20. Mar 2007, 15:07 ] |
Post subject: | |
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 |
Author: | TinyWebGallery [ 20. Mar 2007, 15:09 ] |
Post subject: | |
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 |
Author: | Bazza [ 20. Mar 2007, 15:18 ] |
Post subject: | |
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. |
Author: | TinyWebGallery [ 20. Mar 2007, 15:25 ] |
Post subject: | |
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 |
Author: | Bazza [ 20. Mar 2007, 15:34 ] |
Post subject: | |
When you say remove it.. what exactly am I removing? Just the word..? |
Author: | TinyWebGallery [ 20. Mar 2007, 15:39 ] |
Post subject: | |
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 |
Author: | Bazza [ 20. Mar 2007, 16:08 ] |
Post subject: | |
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 |
Author: | Bazza [ 20. Mar 2007, 16:23 ] |
Post subject: | |
Blimey.. more probs Watch this space |
Author: | Bazza [ 20. Mar 2007, 21:56 ] |
Post subject: | |
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 |
Author: | TinyWebGallery [ 20. Mar 2007, 23:44 ] |
Post subject: | |
have you sent an email to your hoster? |
Author: | Bazza [ 21. Mar 2007, 09:26 ] |
Post subject: | |
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.. |
Author: | Bazza [ 21. Mar 2007, 10:22 ] |
Post subject: | |
Quote: I'm sorry but realpath() is disabled for security reasons.
Thank you That was their reply.... GITS!!! |
Author: | TinyWebGallery [ 21. Mar 2007, 10:28 ] |
Post subject: | |
which php version do they have installed? check info.php of TWG /Michael |
Page 1 of 2 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |