Error while uploading! - SOLVED

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Niedzielan
Posts: 53
Joined: Wed 27. Dec 2006, 13:06

Error while uploading! - SOLVED

Post 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
Last edited by Niedzielan on Mon 7. Jan 2008, 20:08, edited 1 time in total.
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Post 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
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
Niedzielan
Posts: 53
Joined: Wed 27. Dec 2006, 13:06

Post by Niedzielan »

No, it happens with all kinds of filetypes. And I must say, it has always worked correctly!
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Post 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:
Niedzielan
Posts: 53
Joined: Wed 27. Dec 2006, 13:06

Re: Error while uploading!

Post 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/
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Error while uploading!

Post 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"
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
Niedzielan
Posts: 53
Joined: Wed 27. Dec 2006, 13:06

Re: Error while uploading!

Post 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!
Post Reply