coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: arachnae on December 09, 2003, 11:34:20 AM

Title: Script called without the required parameter(s). db_input.ph
Post by: arachnae on December 09, 2003, 11:34:20 AM
:?   When trying to upload a picture I get the above error message, e.g.

Script called without the required parameter(s).

File: /home/httpd/vhosts/lestreghe.org/httpdocs/coppermine/db_input.php - Line: 39



Line 39 is actually a blank one, but here are the ones before and after:


define('DB_INPUT_PHP', true);


require('include/init.inc.php');


What's wrong?

Thanks in advance for any suggestions
Title: Check your PHP settings
Post by: jokeofalltrades on January 12, 2004, 02:47:29 AM
I had the same problems, and it took me forever to figure it out. Chances are, your PHP settings need to be adjusted. Check the phpinfo() to see if 'file_uploads' is turned on and if 'register_globals' is off. If either is set incorrectly, you could run into trouble. More information can be found in this thread (http://forum.coppermine-gallery.net/index.php?topic=438&highlight=script+parameter).

The good news is that on many Apache servers you can change these settings for individual directories. A simple .htaccess file will do the trick. Place something like the following in a file called .htaccess in your Coppermine directory:
php_flag register_globals off
php_flag file_uploads on


Some Apache configurations don't allow this, and I know nothing of non-Apache webservers, but it's a start...

--Michael
  www.jokeofalltrades.com (http://www.jokeofalltrades.com)