Parameter limit is not known

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
sayitlikeitis
Forum Members
Forum Members
Posts: 45
Joined: Tue Nov 28, 2006 7:46 pm

Parameter limit is not known

Post by sayitlikeitis »

I have installed v1.2 and the site loads and dispays, mostly okay.  However, the following error text is displayed in the News module:

Warning: Parameter limit is not known... dropped in /home/nkneewul/public_html/lib/misc.functions.php on line 1281

This text is displayed immediately after the word "News" and before the date of the first news entry. The error also seems to force the dimentions of the News box wider than they were previously.  In so far as I can tell everything else functions fine.  Can you please help get rid of this error?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Parameter limit is not known

Post by Dr.CSS »

Did you use the limit= parameter in your news tag?...
sayitlikeitis
Forum Members
Forum Members
Posts: 45
Joined: Tue Nov 28, 2006 7:46 pm

Re: Parameter limit is not known

Post by sayitlikeitis »

I installed v1.2 without (hopefully) straying from the installation instructions.  I did clear the cashe afterwards because that sometimes resolves some problems.  Actually, I wouldn't know where to, or how to set any parameters.  If you tell me how, I'll check anything for you.
sayitlikeitis
Forum Members
Forum Members
Posts: 45
Joined: Tue Nov 28, 2006 7:46 pm

Re: Parameter limit is not known

Post by sayitlikeitis »

Hi there, would you mind proving a little more information on how to do this?  I'm stuck.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Parameter limit is not known

Post by calguy1000 »

if you're using the news content type it's deprecated and should not be used.  Please use the tag method.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
sayitlikeitis
Forum Members
Forum Members
Posts: 45
Joined: Tue Nov 28, 2006 7:46 pm

Re: Parameter limit is not known

Post by sayitlikeitis »

Sorry, what is the tag method?

Prior to installing v1.1 I deleted all the cmsms files on the server, but I had trouble.  So, I installed v1.2.  It turned out that my trouble was because my directories had inappropriate protections.  I adjusted the protection which generally left me with an okay site except for this error on News.

I presume support for News was stopped with v1.1.  So, may I assume had I installed v1.2 after deleting all my files that there would be no News facility?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Parameter limit is not known

Post by calguy1000 »

News continues, but adding news as a content type is no longer supported.

To see how to use the news module, go to 'Extensions >> Modules', and click on the 'help' link on the 'News' row.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
sayitlikeitis
Forum Members
Forum Members
Posts: 45
Joined: Tue Nov 28, 2006 7:46 pm

Re: Parameter limit is not known

Post by sayitlikeitis »

Hi there,

I was just about to get on with trying to sort out my News problem when I noticed something else.  So, before I get too far I thought I’d ask another question, that may or may not be related.

I can’t recall exactly what the screen looked like (when I was using v1.0.5), but when I last updated content or added a new page (eg. Content -> Pages -> Add New Content) in addition to the text boxes of Content Type, Title, Menu Text etc I recall a whole heap of tools varying between font type, colour selection, links, headings etc. and many more that was only learning to use.  Now, that I’ve upgraded from 1.0.5 to 1.2 those tools are not present.  Also, my existing content shows only as html rather than a formatted screen with the relevant fonts, headings, italics etc.  All the HTML tags are shown and I can't spot a way of viewing a formatted screen.  (I’m wondering if this is related to this News problem I have.)

Anyway, can you advise as to what you think might have happened that the tools are not available to me?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Parameter limit is not known

Post by Dr.CSS »

You may have a number of things that will stop the WYSIWYG editor from showing up...

1) permissions aren't set, users & groups > group permissions > admin all ticked?...

2) no editor set as your default in my preferences > user preferences > Select WYSIWYG to use:

3) sometimes checking Show checkbox to turn wysiwyg on/off helps it show...
sayitlikeitis
Forum Members
Forum Members
Posts: 45
Joined: Tue Nov 28, 2006 7:46 pm

Re: Parameter limit is not known

Post by sayitlikeitis »

Thanks, I've got my editor back.  Now, back to my original issue, if I may.

I went into

  Layout > Templates

which has  “Left simple navigation + 1 column” as the default.  When I click on the default, I can see the following code about half way down:

     
     
         News
          {news limit=3 detailpage=‘news’}
     
       

     
     


So, I replaced “{news limit=3 detailpage=‘news’}” with “{news number='5'}” but I’m wondering if I'm completely off the target.

My site does not show any errors any more (which is good), but the doc you referred me to makes reference to an admin page and lots of new features.  I can’t see the admin page, so am wondering if I’m running the old or the new News.  Can you help, please?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Parameter limit is not known

Post by calguy1000 »

No, that's the correct solution.

What happened (I'm guessing though is):  When 1.1 came out we introduced parameter checking on the frontend side to help prevent XSS vulnerabilities also, we changed the News module, and introduced pagination, so somewhere, the 'limit' parameter (and I haven't looked it up) probably changed to 'number'  (it's probably my fault too).  Of course, all of this got blurred with the various News module releases and numerous CMS Made simple releases. 

But, you've got the problem solved now.  that's good.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
sayitlikeitis
Forum Members
Forum Members
Posts: 45
Joined: Tue Nov 28, 2006 7:46 pm

Re: Parameter limit is not known

Post by sayitlikeitis »

The help doc indicates there are more features in News, and there is an administration menu for news categories.  I'm curious to see this. How do I get to it?
Locked

Return to “[locked] Installation, Setup and Upgrade”