Advanced search  

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

Pages: [1]   Go Down

Author Topic: Script called without the required parameter(s). db_input.ph  (Read 3264 times)

0 Members and 1 Guest are viewing this topic.

arachnae

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Script called without the required parameter(s). db_input.ph
« 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
Logged

jokeofalltrades

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
    • http://www.jokeofalltrades.com
Check your PHP settings
« Reply #1 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.

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:
Code: [Select]
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
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 18 queries.