Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Script called without the required parameter(s). db_input.ph  (Read 2908 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:46:27 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

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
Script called without the required parameter(s). db_input.ph
« Reply #1 on: December 09, 2003, 05:12:34 pm »

Sorry, that is not line 39.

Possible reasons:

1. You are calling the script from somewhere other than the upload form.  

2. You have register globals turned on in php.ini.

3. You are using a very old version of PHP.
Logged
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(http://www.mozilla.org/products/firefox/buttons/getfirefox_small.png)

arachnae

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Script called without the required parameter(s). db_input.ph
« Reply #2 on: December 09, 2003, 05:41:18 pm »

hyperion


> 2. You have register globals turned on in php.ini.

Yes, I checked with php.info.

I do not have access to php.info or apache - does this mean I'm out?  :(
Unluckily it's a cheap virtual hosting - unlimited mysql databases but non-existant tech assistance....

Any other workarounds?
Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
Script called without the required parameter(s). db_input.ph
« Reply #3 on: December 09, 2003, 09:05:04 pm »

Yes, if your host is using Apache, you can change register globals on a per directory basis.

You would open a text editor and type:

Code: [Select]

php_flag register_globals off  


Then save the file as:

Code: [Select]

.htaccess


N.B.: There is no extension.

Place the file in the Coppermine directory, and see if it works.

Out of curiousity, will the site focus on teaching Wicca?
Logged
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(http://www.mozilla.org/products/firefox/buttons/getfirefox_small.png)

arachnae

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Script called without the required parameter(s). db_input.ph
« Reply #4 on: December 10, 2003, 01:10:11 pm »

Great, I can make a .htaccess file - thanks, I'll try it now


> Out of curiousity, will the site focus on teaching Wicca?

I can't really qualify as a teacher, I have rather an interest, as it's sometimes called, but I have oftened helped others to recall stuff in their lives by simply talking about it and especially lending books, so there is half an idea to do something about education.

But for now I use the server mostly to use other domains (www.emeraldvalley.net and the other sites connected to it, under construction).
Logged
Pages: [1]   Go Up
 

Page created in 0.027 seconds with 18 queries.