AdvancedContent : "select_multiple" : sortable="true" -error

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
naturelab
Forum Members
Forum Members
Posts: 169
Joined: Thu Oct 15, 2009 11:11 am

AdvancedContent : "select_multiple" : sortable="true" -error

Post by naturelab »

I am using a couple of multi-select lists ( as below ) on my site - and everything seems to be working as expected on the front end, but I've just checked my error log and I've got Thousands of identical errors.

Code: Select all

{AdvancedContent block="pulloutdisplay" label="blah" block_type="select_multiple" items="blah|blah|blah" values="blah|blah|blah" assign="pulloutdisplay" sortable="true" description="blah" block_tab="Selected work"}
Error.

Code: Select all

[09-Feb-2011 17:53:33] PHP Warning:  Parameter sortable is not known by module AdvancedContent dropped in /xxx/xxx/public_html/lib/misc.functions.php on line 1631

Any ideas ?
hoshy

Re: AdvancedContent : "select_multiple" : sortable="true" -e

Post by hoshy »

Wich part of the message 'Parameter "sortable" is not known by module AdvancedContent' don't you understand?
Parameter X is not known by module Y means that there is an error in the module.
The module uses a parameter (X) that isn't defined by the module but the module restricts usage of undefined parameters. So it even cannot use its own parameter (X). It is just an unproper programming stuff. The creator just forgot to define the param in the AdvancedContent.module.php in the function SetParameters().

Cheers.
naturelab
Forum Members
Forum Members
Posts: 169
Joined: Thu Oct 15, 2009 11:11 am

Re: AdvancedContent : "select_multiple" : sortable="true" -e

Post by naturelab »

Which part of the message 'Parameter "sortable" is not known by module AdvancedContent' don't you understand?
thanks
Best way is to add the line "$this->SetParameterType('sortable',CLEAN_STRING);" and file a bugreport: http://dev.cmsmadesimple.org/bug/list/836 so it can be fixed in next release.
I'll do that.
drew
Forum Members
Forum Members
Posts: 72
Joined: Wed Jan 02, 2008 5:37 pm

Re: AdvancedContent : "select_multiple" : sortable="true" -e

Post by drew »

naturelab wrote:Best way is to add the line "$this->SetParameterType('sortable',CLEAN_STRING);"
Hello naturelab,

I'm curious where you found this workaround. It is unclear to me where this line would be added and whether it will work for all modules with the "parameter ... is not known" problem.

I just installed the GoogleCalendar module which has been around for several years now. It reports "Parameter cache is not known by module GoogleCalendar". I've looked at the module source code and indeed it has a 'cache' parameter. I'm suspecting that this problem may really be caused by my recent updates of core cmsms modules.

-Drew
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: AdvancedContent : "select_multiple" : sortable="true" -e

Post by Wishbone »

I saw that issue, along with the bug report... The help makes no mention of 'sortable'... 'sortable_items' exists, and has the same error. I filed a bug report on this as well. My workaround was to use {content ...} with all the options. AdvancedContent reacts to {content} as well, and apparently {content} has no parameter checking.

I filed a bug for this as well.
Post Reply

Return to “Modules/Add-Ons”