Urgent! Image gallery upload failure.
Although I defined - in Image Gallery Administration - uploads to use a directory "files/", not the database (as per instructions in the manual and the Doc site), each time I upload I get a big error message (see below).
The files are jpg's and gif's less than 150k.
Below the error message it says that the upload succeeded, and I get an id for the pic and it gives the size. The file is listed in the gallery.
But the thumbnail is replaced by a red x and the picture won't show.
It shouldn't be a problem of the GD library not being installed - I've checked phpinfo() which says it is.
When I look at the error message it appears to me that the upload tried to use a /tmp/ directory. There is one just outside the public html directory that I can upload to by FTP. No problem. I have chmod'd it to 777 - no problem.
The error message mentions a "wrong directory" in line 185 of tiki-upload_image.php. "FOO" ? There's a message in the file to check if the directory is writeable (files/ is 777) and if not to define another.
Should I define another? Where and how?
Here's the ERROR MESSAGE:
Warning: open_basedir restriction in effect. File is in wrong directory in /data/www/mysite.org/html/init/tiki-upload_image.php on line 185
Warning: imagejpeg: invalid filename '/tmp/FOOCDB0b9.jpg' in /data/www/mysite.org/html/init/tiki-upload_image.php on line 185
Warning: Unable to access /tmp/FOOCDB0b9.jpg in /data/www/mysite.org/html/init/tiki-upload_image.php on line 187
Warning: fopen("/tmp/FOOCDB0b9.jpg", "rb") - No such file or directory in /data/www/mysite.org/html/init/tiki-upload_image.php on line 187
Warning: stat failed for /tmp/FOOCDB0b9.jpg (errno=2 - No such file or directory) in /data/www/mysite.org/html/init/tiki-upload_image.php on line 188
Warning: fread(): supplied argument is not a valid File-Handle resource in /data/www/mysite.org/html/init/tiki-upload_image.php on line 188
Warning: fclose(): supplied argument is not a valid File-Handle resource in /data/www/mysite.org/html/init/tiki-upload_image.php on line 189
Warning: SAFE MODE Restriction in effect. The script whose uid is 10003 is not allowed to access /tmp owned by uid 0 in /data/www/mysite.org/html/init/tiki-upload_image.php on line 190