Page 1 of 1

News module 2.25.5 Detail page displays warning message

Posted: Thu Sep 08, 2016 3:04 am
by d4creative
I am getting this error on my Detail pages for the news module:
Warning: Parameter cssname is not known by module News dropped in /home/cfp15/completefeetpodiatry.com.au/lib/classes/class.CMSModule.php on line 653

The page displays correctly except for this unsightly warning message. Can i just disable it or is there an easy answer to fix the problem?

The CMSMS installation is a fairly basic clean installation with latest modules.

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

Cms Version: 2.1.5

Installed Modules:
AdminSearch: 1.0.2
CMSContentManager: 1.1.1
CMSMailer: 6.2.14
Captcha: 0.5.3
DesignManager: 1.1.1
FileManager: 1.5.2
FormBuilder: 0.8.1.4
MicroTiny: 2.0.3
ModuleManager: 2.0.4
Navigator: 1.0.3
News: 2.50.5
Search: 1.50.2
TinyMCE: 3.1.3


Config Information:
php_memory_limit:
max_upload_size: 64000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Australia/Sydney
permissive_smarty: false


Php Information:
phpversion: 5.6.24
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 22519
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 90M
max_execution_time: 30
register_globals: Off (False)
output_buffering: 0
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 65M
upload_max_filesize: 64M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On


Performance Information:
allow_browser_cache: On (True)
browser_cache_expiry: 60
php_opcache: On (True)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
smarty_cache_udt: Off (False)
auto_clear_cache_age: On (True)

Server Information:
Server Software: Apache
Server Api: cgi-fcgi
Server Os: Linux 3.2.61-grsec-modsign On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 5.6.25
Server Db Grants: Could not find a suitable "GRANT ALL" permission, this does not necessarily lead to problems... But if you have problems installing/removing modules or adding and deleting items/pages this could be the cause!


Permission Information:
tmp: /home/cfp15/completefeetpodiatry.com.au/tmp (0755)
tmp_cache: /home/cfp15/completefeetpodiatry.com.au/tmp/cache (0755)
templates_c: /home/cfp15/completefeetpodiatry.com.au/tmp/templates_c (0755)
modules: /home/cfp15/completefeetpodiatry.com.au/modules (0755)
uploads: /home/cfp15/completefeetpodiatry.com.au/uploads (0755)
File Creation Mask (umask): /home/cfp15/completefeetpodiatry.com.au/tmp/cache (0755)
config_file: 0444

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

Re: News module 2.25.5 Detail page displays warning message

Posted: Thu Sep 08, 2016 5:16 am
by Rolf
Remove the "cssname" parameter from your News module tag, it doesn't exist (anymore)

Re: News module 2.25.5 Detail page displays warning message

Posted: Thu Sep 08, 2016 5:19 am
by d4creative
All I have used is {news}

Re: News module 2.25.5 Detail page displays warning message

Posted: Thu Sep 08, 2016 5:27 am
by Rolf
Strange, that is what the warning is about. You are sure you don't have two news module calls in your page/template?

It is not a real fix, but adding this line to the config file hides the warning

Code: Select all

error_reporting(E_ERROR & ~E_DEPRECATED & ~E_NOTICE);

Re: News module 2.25.5 Detail page displays warning message

Posted: Thu Sep 08, 2016 5:40 am
by d4creative
I think you have given a good clue.

The page template contains this:
{content label="Main Page Content" cssname='CFP Content'}
which is supposedly ok for TinyMCE. I have recently changed it back to microTiny, so perhaps the cssname parameter of the content block which contains the {news} tag is the culprit and is no longer necessary.

I guess if I make a separate template for the news and remove the cssname parameter it should work.

Addendum- it worked.