Log in

View Full Version : Easy Media Script Errors



dakata
08-27-2011, 04:53 PM
Hi guys , I've recently installed a script called "Easy Media Script". This is a free php script for uploading & viewing images, videos or flash files.

Thing is , it's a really big script and I keep geting some errors in the "error_log" saying this:



[27-Aug-2011 16:34:17] PHP Warning: is_dir() [<a href='function.is-dir'>function.is-dir</a>]: open_basedir restriction in effect. File(//) is not within the allowed path(s): (/home:/tmp) in /home/x7euprr/public_html/games/walk&play/ip-inc/classes/Upload.class.php on line 25
[27-Aug-2011 16:34:17] PHP Warning: mkdir() [<a href='function.mkdir'>function.mkdir</a>]: SAFE MODE Restriction in effect. The script whose uid is 785 is not allowed to access // owned by uid 0 in /home/x7euprr/public_html/games/walk&play/ip-inc/classes/Upload.class.php on line 25
[27-Aug-2011 16:34:17] PHP Warning: is_dir() [<a href='function.is-dir'>function.is-dir</a>]: open_basedir restriction in effect. File(//) is not within the allowed path(s): (/home:/tmp) in /home/x7euprr/public_html/games/walk&play/ip-inc/classes/Upload.class.php on line 25
[27-Aug-2011 16:34:17] PHP Warning: mkdir() [<a href='function.mkdir'>function.mkdir</a>]: SAFE MODE Restriction in effect. The script whose uid is 785 is not allowed to access // owned by uid 0 in /home/x7euprr/public_html/games/walk&play/ip-inc/classes/Upload.class.php on line 25
[27-Aug-2011 16:34:17] PHP Warning: copy() [<a href='function.copy'>function.copy</a>]: Unable to access /home/x7euprr/public_html/games/walk&amp;play/ip-images/2011/08/27/assassins-creed-revelations-front-cover-56665.jpg in /home/x7euprr/public_html/games/walk&play/ip-inc/classes/Upload.class.php on line 224
[27-Aug-2011 16:34:17] PHP Warning: copy(/home/x7euprr/public_html/games/walk&amp;play/ip-images/2011/08/27/assassins-creed-revelations-front-cover-56665.jpg) [<a href='function.copy'>function.copy</a>]: failed to open stream: No such file or directory in /home/x7euprr/public_html/games/walk&play/ip-inc/classes/Upload.class.php on line 224
[27-Aug-2011 16:34:17] PHP Fatal error: Uncaught exception 'Exception' with message 'Image file not found: /home/x7euprr/public_html/games/walk&play/ip-images/2011/08/27/assassins-creed-revelations-front-cover-56665.jpg' in /home/x7euprr/public_html/games/walk&play/ip-inc/lib/ThumbBase.inc.php:193
Stack trace:
#0 /home/x7euprr/public_html/games/walk&play/ip-inc/lib/ThumbBase.inc.php(172): ThumbBase->triggerError('Image file not ...')
#1 /home/x7euprr/public_html/games/walk&play/ip-inc/lib/ThumbBase.inc.php(110): ThumbBase->fileExistsAndReadable()
#2 /home/x7euprr/public_html/games/walk&play/ip-inc/lib/GdThumb.inc.php(96): ThumbBase->__construct('/home/x7euprr/p...', false)
#3 /home/x7euprr/public_html/games/walk&play/ip-inc/lib/PhpThumbFactory.class.php(127): GdThumb->__construct('/home/x7euprr/p...', Array, false)
#4 /home/x7euprr/public_html/games/walk&play/ip-inc/classes/Upload.class.php(242): PhpThumbFactory::create('/home/x7euprr/p...')
#5 /home/x7euprr/public_html/games/walk&play/ip-user/upload.php(66): Upload::image(Array)
#6 /home/x7euprr/p in /home/x7euprr/public_html/games/walk&play/ip-inc/lib/ThumbBase.inc.php on line 193
[27-Aug-2011 16:34:26] PHP Warning: is_dir() [<a href='function.is-dir'>function.is-dir</a>]: open_basedir restriction in effect. File(//) is not within the allowed path(s): (/home:/tmp) in /home/x7euprr/public_html/games/walk&play/ip-inc/classes/Upload.class.php on line 25
[27-Aug-2011 16:34:26] PHP Warning: mkdir() [<a href='function.mkdir'>function.mkdir</a>]: SAFE MODE Restriction in effect. The script whose uid is 785 is not allowed to access // owned by uid 0 in /home/x7euprr/public_html/games/walk&play/ip-inc/classes/Upload.class.php on line 25
[27-Aug-2011 16:34:26] PHP Warning: is_dir() [<a href='function.is-dir'>function.is-dir</a>]: open_basedir restriction in effect. File(//) is not within the allowed path(s): (/home:/tmp) in /home/x7euprr/public_html/games/walk&play/ip-inc/classes/Upload.class.php on line 25
[27-Aug-2011 16:34:26] PHP Warning: mkdir() [<a href='function.mkdir'>function.mkdir</a>]: SAFE MODE Restriction in effect. The script whose uid is 785 is not allowed to access // owned by uid 0 in /home/x7euprr/public_html/games/walk&play/ip-inc/classes/Upload.class.php on line 25
[27-Aug-2011 16:34:26] PHP Warning: copy() [<a href='function.copy'>function.copy</a>]: Unable to access /home/x7euprr/public_html/games/walk&amp;play/ip-images/2011/08/27/assassins-creed-revelations-front-cover-56665.jpg in /home/x7euprr/public_html/games/walk&play/ip-inc/classes/Upload.class.php on line 224
[27-Aug-2011 16:34:26] PHP Warning: copy(/home/x7euprr/public_html/games/walk&amp;play/ip-images/2011/08/27/assassins-creed-revelations-front-cover-56665.jpg) [<a href='function.copy'>function.copy</a>]: failed to open stream: No such file or directory in /home/x7euprr/public_html/games/walk&play/ip-inc/classes/Upload.class.php on line 224
[27-Aug-2011 16:34:26] PHP Fatal error: Uncaught exception 'Exception' with message 'Image file not found: /home/x7euprr/public_html/games/walk&play/ip-images/2011/08/27/assassins-creed-revelations-front-cover-56665.jpg' in /home/x7euprr/public_html/games/walk&play/ip-inc/lib/ThumbBase.inc.php:193
Stack trace:
#0 /home/x7euprr/public_html/games/walk&play/ip-inc/lib/ThumbBase.inc.php(172): ThumbBase->triggerError('Image file not ...')
#1 /home/x7euprr/public_html/games/walk&play/ip-inc/lib/ThumbBase.inc.php(110): ThumbBase->fileExistsAndReadable()
#2 /home/x7euprr/public_html/games/walk&play/ip-inc/lib/GdThumb.inc.php(96): ThumbBase->__construct('/home/x7euprr/p...', false)
#3 /home/x7euprr/public_html/games/walk&play/ip-inc/lib/PhpThumbFactory.class.php(127): GdThumb->__construct('/home/x7euprr/p...', Array, false)
#4 /home/x7euprr/public_html/games/walk&play/ip-inc/classes/Upload.class.php(242): PhpThumbFactory::create('/home/x7euprr/p...')
#5 /home/x7euprr/public_html/games/walk&play/ip-user/upload.php(66): Upload::image(Array)
#6 /home/x7euprr/p in /home/x7euprr/public_html/games/walk&play/ip-inc/lib/ThumbBase.inc.php on line 193


Now, from what I gathered I see like different php files from this system and I really don't know how to fix those errors.

The files are :

#0 - ThumbBase.inc.php (line 172)
#1 - ThumbBase.inc.php (line 110)
#2 - GdThumb.inc.php (line 96)
#3 - PhpThumbFactory.class.php (line 127)
#4 - Upload.class.php (line 224 and line 242)
#5 - upload.php (line 66)
#6 - ThumbBase.inc.php (line 193)

*You have those in the error_log.

I've uploaded the files within an archive called "ems.zip" because I had more then 1000 characters.


So those are the five files that gives me trouble. I'm sorry for requesting your help with this , but the support team from Easy Media Script did'n answer.

I really hope you can help me with this , and if you need anything else form this script "system" I'll gladly help.

Thank you very much , dakata

JShor
08-27-2011, 05:00 PM
Looks like a disaster. Try checking if the paths in those errors exist, and that they have local read/write permissions.

Looks like the paths you need to check are:


/home/x7euprr/public_html/games/walk&play/ip-inc/
/home/x7euprr/public_html/games/walk&play/ip-inc/lib/
/home/x7euprr/public_html/games/walk&play/ip-inc/classes/

dakata
08-27-2011, 06:13 PM
Well , yes they exist and it's the exact path like the one in the error_log , if you want to I can give you acces and see the entire script, the errors and how it works .Just let me know.

Thanks , dakata

JShor
08-27-2011, 07:23 PM
If the paths exist, and the script is not able to read/write to them, it means there's a permissions error of some degree, in which case it's probably not a scripting error.

What do the permissions CHMOD look like on them? (e.g., 555/666/777) Try setting all of the paths to 755.

dakata
08-27-2011, 08:42 PM
The permissions are at 755, it can't be about that.
The problem is , when I try to upload an image for example it keep saying "There was an error during the upload". When I try to embed a video it shows me the "Please Wait" notification an stays like that for ever.

You can enter this link , create an account (instant activation, without e-mails) an try to upload something an the see how it reacts :

http://www.games.cs-uno.net/walk&play

Thanks, dakata

JShor
08-27-2011, 09:01 PM
I get taken to a blank page when trying to upload an image.

All of the errors from that error log indicate that it's a permissions/empty directory error. It's unlikely that there's a scripting error.

I could have a look at it for you if you want. Please don't post any login info here.

dakata
08-27-2011, 10:59 PM
Yes I would like that very much , can I send you a PM with my Yahoo Messenger ID or an e-mail address ?

dakata
08-30-2011, 10:51 AM
Hi , I've sent like 2 PMs but I really don't think you got them..

If you didn't got them , please let me know here and I'll put my contacts here , and edit the post after you get them.

Thanks ,dakata