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

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]

Main Menu

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

Started by arachnae, December 09, 2003, 11:46:27 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

hyperion

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.
"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

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

arachnae

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?

hyperion

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:


php_flag register_globals off  


Then save the file as:


.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?
"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

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

arachnae

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).