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

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

Started by seagore, March 30, 2004, 01:12:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

seagore

Hi!
I get this error msg when i´m trying to upload a picture ..
so what does it tell me and how can i get rid of it ??
thx very much !

by the way i just figured out that this is only happening using gd 2.0
gd 1.0 is fine .. but i´m shure that gd 2.0 is installed

Casper

Try turning on debug mode, then try again, and post the debug info here.
Also, run your info.php, and copy the GD info here.

Also do a search 'script AND called AND without AND required', as this has been asked several times, and one of the results probably apply to you.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

seagore

thx ! i think i got the problem ;
i should change :
php_flag register_globals off

but my server seems to not allow me using a htaccess file .. only creating one gives me the error misconfiguration ..
so is there any other way to change that ?

hyperion

Again, please activate debug mode to verify that the issue really is a register globals issue.  

On register globals - If you cannot use .htaccess files, the only other way to change it is by changing php.ini.  Register globals should be off anyway, as it is a security risk.
"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)

seagore

as you posted in a previos topic i changed some code in the db_input.php
on line 37
so i got this error msg :

Array
(
    [member_id] => 1
    [pass_hash] => c5fcea9189bedc76d32088d1f21669dd
    [forum_read] => a:1:{i:2;i:1080639559;}
    [cpg11d_data] => YTo1OntzOjI6IklEIjtzOjMyOiJiODU1NjYyYTU0MTgxMGQ4NzQ3YjA1MTUzYWFlYmFlMCI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjtzOjM6ImxpdiI7YTo1OntpOjA7czoxOiI4IjtpOjE7czoyOiIxMCI7aToyO3M6MjoiMTMiO2k6MztzOjI6IjE0IjtpOjQ7czoyOiIxNSI7fXM6NDoic29ydCI7czoyOiJkYSI7fQ==
    [anonlogin] => -1
    [cpg11d_fav] => YToxOntpOjA7aToxNDt9
    [session_id] => 6bbc5fa4679dcccde6fcf8bc01daa23f
)

seagore

with the usual code in db_input:

Script called without the required parameter(s).

File: /home/www/web1027/html/gallery/db_input.php - Line: 39



Debug info
USER:
Array
(
    [ID] => b855662a541810d8747b05153aaebae0
    [am] => 1
    [lang] => english
    [liv] => Array
        (
           
  • => 8
  • [1] => 10
                [2] => 13
                [3] => 14
                [4] => 15
            )

        [sort] => da
    )

     
     
    USER DATA:
    Array
    (
       
  • => 1
  • [user_id] => 1
        [1] => Seagore
        [user_name] => Seagore
        [2] => 4
        [mgroup] => 4
        [3] => 4
        [group_id] => 4
        [4] => Admin
        [group_name] => Admin
        [5] => 0
        [group_quota] => 0
        [6] => 0
        [has_admin_access] => 0
        [7] => 1
        [can_rate_pictures] => 1
        [8] => 1
        [can_send_ecards] => 1
        [9] => 1
        [can_post_comments] => 1
        [10] => 1
        [can_upload_pictures] => 1
        [11] => 1
        [can_create_albums] => 1
        [12] => 0
        [pub_upl_need_approval] => 0
        [13] => 0
        [priv_upl_need_approval] => 0
    )

     
     
    Queries:
    Array
    (
       
  • => SELECT id as user_id, name as user_name, mgroup FROM `*********`.ibf_members WHERE id='1' AND password='********'
  • [1] => SELECT * FROM cpg11d_usergroups WHERE group_id = '4'
        [2] => DELETE FROM cpg11d_banned WHERE expiry < 1080666345
        [3] => SELECT * FROM cpg11d_banned WHERE ip_addr='******' OR ip_addr='*****' OR user_id=1
    )

     
    GET :
    Array
    (
    )

     
    POST :
    Array
    (
    )

     

    Image Lib(s)
    gd
    GD Support  enabled  
    GD Version  bundled (2.0.17 compatible)  
    FreeType Support  enabled  
    FreeType Linkage  with freetype  
    GIF Read Support  enabled  
    JPG Support  enabled  
    PNG Support  enabled  
    WBMP Support  enabled  
    XBM Support  enabled  
     
    Server restrictions (safe mode)?
    Directive Local Value Master Value
    safe_mode Off Off
    safe_mode_exec_dir /home/www/empty no value
    safe_mode_gid Off Off
    safe_mode_include_dir no value no value
    safe_mode_exec_dir /home/www/empty no value
sql.safe_mode Off Off
disable_functions system,exec,passthru,popen,escapeshellcmd,shell_exec passthru,system,shell_exec,escapeshellcmd,shell
file_uploads On On
include_path .:/usr/local/lib/php .:/usr/local/lib/php
open_basedir /home/www/web1027/ no value

email
Directive Local Value Master Value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i  /usr/sbin/sendmail -t -i  
SMTP localhost localhost
smtp_port 25 25

Size and Time
Directive Local Value Master Value
max_execution_time 30 30
max_input_time 30 30
upload_max_filesize 10M 10M
post_max_size 8M 8M


PHP version: 4.3.5


mySQL version: 4.0.18-Max

hyperion

I removed some sensitive info from your previous post.  Do you run this server, or are you hosted?

Also, please reference that old post.  I assume you changed the variable to $event?
&quot;Then, Fletch,&quot; that bright creature said to him, and the voice was very kind, &quot;let&#039;s begin with level flight . . . .&quot;

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

seagore

i´m, hosted ... thats the problem .. i just managed to create an .htaccess file  via the webcontrolpanel .. but add ing the line
php_flag register_globals off  
 causes the misconfiguration error again ..

 this is the code change :

 print '<pre>';
    print_r($_REQUEST);
    print '</pre>';
    exit;

instead of

 cpg_die(CRITICAL_ERROR, $lang_errors['param_missing'], __FILE__, __LINE__);


thx for your help"!

hyperion

Okay, that little change dumps the contents  of the the posted variables. If there isn't anything there, then no variables are getting through.
 
Anyway, you'll need to ask your host if she has configured the server to allow you to change php.ini values using .htaccess files.  If she hasn't, it will not work.  I'm really surprised that they run with register globals on, but they probably do it for backwards compatibility.
&quot;Then, Fletch,&quot; that bright creature said to him, and the voice was very kind, &quot;let&#039;s begin with level flight . . . .&quot;

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

seagore

did so ..  still waiting for an answer ...
by the way i just checked my other 3 accounts witch are on completely different servers ..but they all have registered globals on  ....

seagore

well the admin just made the changes to use htaccess files und i pasted the line
php_flag register_globals off  

but nothing changed :..

this is the error report :

PHP version: 4.3.5

mySQL version: 4.0.18-Max
--------------------------------------------------------------------------------
Image Lib(s)
gd
GD Support  enabled  
GD Version  bundled (2.0.17 compatible)  
FreeType Support  enabled  
FreeType Linkage  with freetype  
GIF Read Support  enabled  
JPG Support  enabled  
PNG Support  enabled  
WBMP Support  enabled  
XBM Support  enabled  
 
Server restrictions (safe mode)?
Directive Local Value Master Value
safe_mode Off Off
safe_mode_exec_dir /home/www/empty no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
safe_mode_exec_dir /home/www/empty no value
sql.safe_mode Off Off
disable_functions system,exec,passthru,popen,escapeshellcmd,shell_exec passthru,system,shell_exec,escapeshellcmd,shell
file_uploads On On
include_path .:/usr/local/lib/php .:/usr/local/lib/php
open_basedir /home/www/web1027 no value

email
Directive Local Value Master Value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i  /usr/sbin/sendmail -t -i  
SMTP localhost localhost
smtp_port 25 25

Size and Time
Directive Local Value Master Value
max_execution_time 30 30
max_input_time 30 30
upload_max_filesize 10M 10M
post_max_size 8M 8M

Debug info
USER:
Array
(
    [ID] => b855662a541810d8747b05153aaebae0
    [am] => 1
    [lang] => english
    [liv] => Array
        (
           
  • => 14
  • [1] => 15
                [2] => 76
                [3] => 19
                [4] => 51
            )

        [sort] => da
    )

     
     
    USER DATA:
    Array
    (
       
  • => 1
  • [user_id] => 1
        [1] => Seagore
        [user_name] => Seagore
        [2] => 4
        [mgroup] => 4
        [3] => 4
        [group_id] => 4
        [4] => Admin
        [group_name] => Admin
        [5] => 0
        [group_quota] => 0
        [6] => 0
        [has_admin_access] => 0
        [7] => 1
        [can_rate_pictures] => 1
        [8] => 1
        [can_send_ecards] => 1
        [9] => 1
        [can_post_comments] => 1
        [10] => 1
        [can_upload_pictures] => 1
        [11] => 1
        [can_create_albums] => 1
        [12] => 0
        [pub_upl_need_approval] => 0
        [13] => 0
        [priv_upl_need_approval] => 0
    )

     
     
    Queries:
    Array
    (
       
  • => SELECT id as user_id, name as user_name, mgroup FROM `********`.ibf_members WHERE id='1' AND password='***********'
  • [1] => SELECT * FROM cpg11d_usergroups WHERE group_id = '4'
        [2] => DELETE FROM cpg11d_banned WHERE expiry < 1080717186
        [3] => SELECT * FROM cpg11d_banned WHERE ip_addr='*********' OR ip_addr='*********' OR user_id=1
    )

     
    GET :
    Array
    (
    )

     
    POST :
    Array
    (
    )

    the htaccess file is in the same directory as the db_input.php..

    is this right ?

    I just checked the changes by running phpinfo() in this directory and it tells me thaht register globals are lokaly off and by master on

    now i also created that htaccess in the root dir  
    if you want to see the phpinfo() then take a look here :
http://y-tours.klaessner.de/gallery/phpinfo2.php

seagore

by the way what did you ment with that it is not allowed to call the acript by an adress like http://y-tours-klaessner.de/gallery/index.php
because  the link on my menue to get to the gallery
is  :
<a href="/gallery/index.php">

Casper

Have you tried 'SILLY_SAFE_MODE'.  I see it is on for uploads.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

hyperion

The restrictions on calling scripts only apply to certain scripts within Coppermine, and index.php is not one of them.

Some questions:

1. Have you been able to upload using FTP and batch uploading (FTP to a folder within /albums, but not /userpics)?

2. When single uploading, are you selecting an album?

3.  Is the file you are uploading smaller than the limit established within Coppermine and phpinfo()?

4. Does the /phptmp directory exist within your webroot?

5. Can you verify that you are getting the expected results in GD1 but not GD2?
&quot;Then, Fletch,&quot; that bright creature said to him, and the voice was very kind, &quot;let&#039;s begin with level flight . . . .&quot;

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

seagore

ok first of all what is slilly save mode  and where on the phpinfo() can i find it .. i could not so far
an maybe you can tell me the code for htaccess to disabel it ..

second :
a)
i tried uploading via batch und it did not work with gd 2  ( got an NA -Symbol)  with gd1 it worked without any prob .

b) yes i did ..

c) yes it is .. it is also not working with relatively small files

d) it does exist

e)yes i can

thx 4 support ! if you want i could give you an admin access to the board so that you can try to figure out what the problem is

Casper

As Hyperion said, safe mode is not the cause, but see this for silly safe mode, http://coppermine.sourceforge.net/manual.php#safe_mode_issues.

It can't hurt to try.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

hyperion

Quote from: "casper"As Hyperion said, safe mode is not the cause . . .

No, I never said that.  :)  I was responsing to seagore's question about my old post.  This is some strange behavior, as it should fail totally if it was a file uploading issue.  There is no reason I can see for the uploading to behave differently when GD1 is on compared to GD2. GD1/GD2 issues should give specific errors. Seagore, have you been uploading with debug mode turned on to see if there are any other notices or errors returned? Also, if you can determine what file sizes bring about failure.  I suppose it might be possible that GD1 and GD2 are enabled in php.ini (you'll have to ask your host.)  Having both on at the same time is known to cause strange behavior.
&quot;Then, Fletch,&quot; that bright creature said to him, and the voice was very kind, &quot;let&#039;s begin with level flight . . . .&quot;

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

seagore

ok i just added the line:
 define('SILLY_SAFE_MODE', 1); in the config.inc.php  but nothing changed ..

in debug mode there are 2 notices when succesfully uploading ind gd1 mode  which refer to the theme.php   (like an undefined tag ) but they shouldn´t cause these problems , do they ?
in gd2 mode there is only the big main error: undefined....
i will check that up with my admin !

hyperion

You haven't posted the full text of the 'undefined' warning in any of the previous posts. Please do so at this time.
&quot;Then, Fletch,&quot; that bright creature said to him, and the voice was very kind, &quot;let&#039;s begin with level flight . . . .&quot;

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

seagore

these were just some layout things which didn´t 100% in the html syntax
but i fixed it anyway and there are even no notices anymore ..
can you tell somehow a liitle bit more about what to diasable with the gd1 and gd2 so that i´m able to instruct the web-admin ...
installed ist gd 2 bundeled