coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: seagore on March 30, 2004, 01:12:34 PM

Title: Script called without the required parameter(s).
Post by: seagore on March 30, 2004, 01:12:34 PM
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
Title: Script called without the required parameter(s).
Post by: Casper on March 30, 2004, 01:56:11 PM
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.
Title: Script called without the required parameter(s).
Post by: seagore on March 30, 2004, 02:38:13 PM
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 ?
Title: Script called without the required parameter(s).
Post by: hyperion on March 30, 2004, 06:41:43 PM
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.
Title: Script called without the required parameter(s).
Post by: seagore on March 30, 2004, 07:01:17 PM
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
)
Title: Script called without the required parameter(s).
Post by: seagore on March 30, 2004, 07:02:34 PM
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
        (
           
Title: Script called without the required parameter(s).
Post by: hyperion on March 30, 2004, 07:25:33 PM
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?
Title: Script called without the required parameter(s).
Post by: seagore on March 30, 2004, 07:39:20 PM
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"!
Title: Script called without the required parameter(s).
Post by: hyperion on March 30, 2004, 09:46:36 PM
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.
Title: Script called without the required parameter(s).
Post by: seagore on March 30, 2004, 09:50:04 PM
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  ....
Title: Script called without the required parameter(s).
Post by: seagore on March 31, 2004, 09:16:56 AM
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
        (
           
Title: Script called without the required parameter(s).
Post by: seagore on March 31, 2004, 09:36:52 AM
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">
Title: Script called without the required parameter(s).
Post by: Casper on March 31, 2004, 03:43:45 PM
Have you tried 'SILLY_SAFE_MODE'.  I see it is on for uploads.
Title: Script called without the required parameter(s).
Post by: hyperion on March 31, 2004, 04:49:45 PM
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?
Title: Script called without the required parameter(s).
Post by: seagore on March 31, 2004, 11:46:14 PM
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
Title: Script called without the required parameter(s).
Post by: Casper on April 01, 2004, 03:06:07 AM
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.
Title: Script called without the required parameter(s).
Post by: hyperion on April 01, 2004, 05:35:08 AM
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.
Title: Script called without the required parameter(s).
Post by: seagore on April 01, 2004, 10:12:09 AM
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 !
Title: Script called without the required parameter(s).
Post by: hyperion on April 01, 2004, 06:45:40 PM
You haven't posted the full text of the 'undefined' warning in any of the previous posts. Please do so at this time.
Title: Script called without the required parameter(s).
Post by: seagore on April 02, 2004, 12:25:47 AM
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
Title: Script called without the required parameter(s).
Post by: hyperion on April 02, 2004, 12:51:15 AM
All the admin has to do is check php.ini.  In the extensions section, you find a series of extensions that you uncomment to activate various functionalities. There is an extension for GD and one for GD2.  Just make sure that only the GD2 one is uncommented (and thus active).

If this doesn't help, I will suggest you try the 1.3 beta when it is released. (Should be in the next few days.) The multiple upload code takes advantage of PHP error codes and such in later versions of PHP to deliver more specific error messages regarding uploads. If you have CVS software, you can do an anonymous checkout now.  

Also, you might try a test install of the current package to be sure that this isn't a corrupted file or something.