Script called without the required parameter(s). db_input.ph Script called without the required parameter(s). db_input.ph
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Script called without the required parameter(s). db_input.ph

Started by arachnae, December 09, 2003, 11:34:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

arachnae

:?   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

jokeofalltrades

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.

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