Page 1 of 1

Warning: Parameter is not known by module News

Posted: Tue Mar 03, 2015 3:09 am
by rotezecke
since the 1.11.13 update i have this in my news detailed page:
Warning: Parameter is not known by module News dropped in /home/xxxxx/public_html/lib/misc.functions.php on line 1419
apart from the warning (which i can disable - so no drama) i cannot find anything wrong with the articles. Same with {$entry|print_r}. i changed my detailed template to

Code: Select all

{* nada *}
and the warning still comes up. when setting debug = true;, the warning disappears. i checked the line in misc.functions.php and it appears as if the offending parameter should actually be printed:

Code: Select all

 trigger_error('Parameter '.$key.' is not known by module '.$modulename.' dropped',E_USER_WARNING);
any suggestions on how to debug this?

Edit: same warning found in CGBlog detailed and summary view.


----------------------------------------------

Cms Version: 1.11.13

Installed Modules:

CMSMailer: 5.2.2
FileManager: 1.4.5
MenuManager: 1.8.6
News: 2.15
CGSmartImage: 1.17.2
Search: 1.7.12
TinyMCE: 2.9.12
CGSimpleSmarty: 1.7.4
CGExtensions: 1.45
CGBlog: 1.12.9
CGFeedback: 1.6.8
Captcha: 0.5.2
FormBuilder: 0.8.1.1
JQueryTools: 1.3.4
GBFilePicker: 1.3.3


Config Information:

php_memory_limit:
process_whole_template:
max_upload_size: 10000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true


Php Information:

phpversion: 5.4.33
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 256M
max_execution_time: 30
output_buffering: On
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 10M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)


Server Information:

Server Api: cgi-fcgi
Server Db Type: MySQL (mysql)
Server Db Version: 5.5.42
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Server Time Diff: No filesystem time difference found


----------------------------------------------

Re: Warning: Parameter is not known by module News

Posted: Tue Mar 03, 2015 9:11 am
by velden
My guess is it'sabout something you enter in the {news} tag.

Re: Warning: Parameter is not known by module News

Posted: Wed Mar 04, 2015 1:53 am
by rotezecke
i dont use the {news} tag.
i have a custom plugin that creates a menu (with news items), and ultimately prints lots of these:

Code: Select all

$str .= '<li><a href="' . $config['root_url'] .'/'. $news_url .'.html">Issue #'. $news_extra.'</a> - '.$news_date .'</li>' ;
the custom plugin uses mysql queries, not {news}, and by itself doesnt create the warning.

i have a default detail page and a default detail template set in news admin area. that's it. when i remove that custom plugin (which is on that default detail page) AND the entire content of the detailed template, i still get the warning when reloading the page, no other content (apart from header, footer, nav, etc).

Re: Warning: Parameter is not known by module News

Posted: Wed Mar 04, 2015 9:06 am
by velden
Well, still it seems like you're passing an invalid parameter. It doesn't matter if that's by the {news} tag parameters or by url parameters.

It's hard to support a custom plugin ofcourse.