Page 1 of 1

Error while uploading! - SOLVED

Posted: Wed 19. Dec 2007, 16:30
by Niedzielan
Hi there,

For a couple of days now I'm having trouble uploading images and documents to the server with the filemanagement. I'm getting this messag while uploading:

Code: Select all

Warning: getimagesize() [function.getimagesize]: open_basedir restriction in effect. File(/tmp/phpQaC3Ze) is not within the allowed path(s): (/opt/users/s/b/sbo-piramide/www.sbo-piramide.nl/) in /opt/users/s/b/sbo-piramide/www.sbo-piramide.nl/temp/phpwcms/include/inc_lib/backend.functions.inc.php on line 103

Warning: getimagesize(/tmp/phpQaC3Ze) [function.getimagesize]: failed to open stream: Operation not permitted in /opt/users/s/b/sbo-piramide/www.sbo-piramide.nl/temp/phpwcms/include/inc_lib/backend.functions.inc.php on line 103
I know that the company where the server is standing recently went from cable to fiber optic, but that shouldn't affect the stuff thats on the server, does it?

It looks like it has something to do with rights.

Does anyone know what could be wrong before I have to go to that company to see what's going on? Does it have something to do with Image Magick / Ghostscript?

Thanks

Posted: Wed 19. Dec 2007, 20:36
by Jensensen
Hi Niedzielan,

this happens with any kind of uploads?

images, documents --> e.g. .jpg/.pdf/.doc...???

or images only??

Could be that your --> JPGs are CMYK than rather RGB, resolution to high to be processed or file size to big --> see --> config, or something like that???

greetz

Posted: Fri 21. Dec 2007, 08:54
by Niedzielan
No, it happens with all kinds of filetypes. And I must say, it has always worked correctly!

Posted: Fri 21. Dec 2007, 08:59
by update
open_basedir restriction in effect
This could (eventually) be pointing to a change in php.ini - did you have had safe_mode off while setting up the page and now they've changed it to on, for instance?
Anyway - this is an error from php /php.ini. There must have been changed something. :idea:

Re: Error while uploading!

Posted: Sun 6. Jan 2008, 12:59
by Niedzielan
Still the same problem. I can't edit the php.ini file because I don't host the website. I have no access to the server. I have only rights in this directive: /opt/users/s/b/sbo-piramide/www.sbo-piramide.nl/ . I emailed the webhosting and they say that I should change the configuration settings of my website. They thought it would be solved by placing the line

open_basedir = /opt/users/s/b/sbo-piramide/www.sbo-piramide.nl

into the conf.inc.php file, but that obviously don't work because phpwcms has all predefind variables like for example: $phpwcms["DOC_ROOT"] = $_SERVER['DOCUMENT_ROOT'];

Does anyone know where to change the open_basedir path settings. Since they have changed the server folder structure I don't have rights to place temporary files into the /tmp directory. Like I said, I have only rights in this directive: /opt/users/s/b/sbo-piramide/www.sbo-piramide.nl/

Re: Error while uploading!

Posted: Sun 6. Jan 2008, 13:21
by update
Some configuration settings for php(.ini) can be set with .htaccess
But perhaps you will have to set up a php.ini within your root - to get it working you could fill in something like

Code: Select all

open_basedir = ${open_basedir} ":/new/dir"

Re: Error while uploading!

Posted: Mon 7. Jan 2008, 20:08
by Niedzielan
Problem solved, thank god! :D

The server hosting company turned the SAVE MODE off and they changed the default tmp path to a path within my own webspace.
Everything workes fine now.

Thanks Claus (and others) for trying!