forum.coppermine-gallery.net
Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: scope006 on February 27, 2004, 10:07:53 pm
-
I am unable to upload. When I try I get the following error:
"No picture was uploaded. If you have really selected a picture to upload, check that the server allows file uploads..."
I checked the faq, and my /etc/php.ini file was setup correctly. However the default upload tmp directory was not defined. I am wondering if the default it is using is somehow disabled in apache or if there is some kind of .htaccess issue.
If it helps I am running the latest apache from the 1.3 tree, php 4.(latest as of January), and MySQL 4.(what ever is the latest). Php and Mysql are functioning correctly for sure, I am running a site built on drupal. Uploading is the only error I have come across, this is the 3rd (and coolest) image gallery package I have tried, so it must be a HTTP upload error.
Please advise. Thank you.
P.S. would it matter that the path to cpg is "http:/site/dev/cpg" rather than "http:/site/cgp"?
-
See if this thread helps; http://forum.coppermine-gallery.net/index.php?topic=3214&highlight=picture+uploaded
-
I did turn on debug mode and this is the error I get. I looked at the file, and don't know what to edit, or what the problem is that is causing the error.
------------------------------------------------------
No picture was uploaded !
If you have really selected a picture to upload, check that the server allows file uploads...
File: /www/htdocs/drupal/dev/cpg/db_input.php - Line: 216
Notice: Undefined index: userpicture in /www/htdocs/drupal/dev/cpg/db_input.php on line 216
------------------------------------------------------
Here is that section from the file:
------------------------------------------------------
// Test if the filename of the temporary uploaded picture is empty
if ($HTTP_POST_FILES['userpicture']['tmp_name'] == '') cpg_die(ERROR, $lang_db_input_php['no_pic_uploaded'], __FILE__, __LINE__);
-------------------------------------------------------
Apparently you have to know php well to use this software ;)
Thanks for the help.
- Chad
-
well, the big question is: does your server allow http uploads. To find out, test-run a small script that does http uploads, or ask your webhost. If you're with a budget webhost (or even on free webhosting), it's possible that they disabled http uploads.
In fact, this is not a problem of coppermine (or php), but usually a matter of server setup.
GauGau