Page 1 of 1

Parameter f_phpbb12345_data is not known

Posted: Tue Nov 13, 2007 1:17 pm
by Pda0
Hi, I just did a vanilla CMS MS install, no problems whatsoever, but upon first look on the frontpage i see these msgs:

Code: Select all

Warning: Parameter f_phpbb12345_data is not known... dropped in /home/xxx/lib/misc.functions.php on line 1281

Warning: Parameter f_phpbb12345_sid is not known... dropped in /home/xxx/misc.functions.php on line 1281

Warning: Parameter f_phpbb12345_t is not known... dropped in /home/xxx/lib/misc.functions.php
I have a phpbb installed on the same domain, butother than that there is no integration whatsoever, i got those after a clean CMS MS install. I guess its a cookie problem, even though "allowparamcheckwarnings" is unchecked on the admin site. I think this affects only the "not properly cleaning" warning but not the "not known" warning.

I tried search and saw serveral similar warning problems, but never with phpbb. Ive skimmed through the code, found this:

/lib/classes/class.module.inc.php:

Code: Select all

$params = cleanParamHash($params,$this->param_map,
                                       !$this->restrict_unknown_params);
lib/misc.functions.php:

Code: Select all

function cleanParamHash($data,$map = false,
                                                $allow_unknown = false,$clean_keys = true)

...

if( !$mapped && !$allow_unknown )
                {
                  trigger_error('Parameter '.$key.' is not known... dropped',E_USER_WARNING);
                  continue;
                }
In the meantime I modified lib/misc.functions.php:

Code: Select all

function cleanParamHash($data,$map = false,
                        $allow_unknown = false,$clean_keys = true)
{
  $mappedcount = 0;
  $result = array();
  $allow_unknown = true; // PDA MODIFICATION
But I wonder what the true fix would be...

Thanks,

.pd

Re: Parameter f_phpbb12345_data is not known

Posted: Tue Nov 13, 2007 1:35 pm
by Pda0
im using latest stable CMS MS (cmsmadesimple-1.2.tar.gz), Apache 1.3.37 , PHP 5, Mysql 5

Phpbb 2.0.x (2.0.22 I think)

Re: Parameter f_phpbb12345_data is not known

Posted: Tue Nov 13, 2007 1:49 pm
by alby
[quote="Pda0"]

Code: Select all

Warning: Parameter f_phpbb12345_data is not known... dropped in /home/xxx/lib/misc.functions.php on line 1281

[/quote]

Go in Site Admin > Global Settings > uncheck "Allow parameter checks to create warning messages" field

Alby

Re: Parameter f_phpbb12345_data is not known

Posted: Wed Nov 14, 2007 9:23 pm
by Pda0
Thanks for your reply. As I said:
I guess its a cookie problem, even though "allowparamcheckwarnings" is unchecked on the admin site
I already did that.

Thanks,

.pd

Re: Parameter f_phpbb12345_data is not known

Posted: Mon Nov 19, 2007 7:59 pm
by Pda0
Im sorry to bump, is there anything else I can do to try to find this bug?

Thanks,

.pd