Problem with news module pagination

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
chillifish
Forum Members
Forum Members
Posts: 92
Joined: Wed Jul 27, 2011 9:26 am

Problem with news module pagination

Post by chillifish »

On my front page, when I click on 'next page' in the news summary, it's giving me the following error:
ERROR: at line 127 in file /home/******/public_html/lib/smarty/libs/sysplugins/smarty_internal_templatebase.php:
Message:
Unable to load template module_db_tpl 'News;summaryFront%20page%20summary'
I've tried resaving the template, but that doesn't seem to work. The navigation on the news page is fine.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Problem with news module pagination

Post by velden »

What about renaming the News template(s) to a name without spaces?
chillifish
Forum Members
Forum Members
Posts: 92
Joined: Wed Jul 27, 2011 9:26 am

Re: Problem with news module pagination

Post by chillifish »

That sort of works. It doesn't throw the error, but the news section goes blank – there's no news in it.

Incidentally why was this topic moved when the news module is a core module distributed with the package?
This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: Problem with news module pagination

Post by staartmees »

did you clear the cache?
chillifish
Forum Members
Forum Members
Posts: 92
Joined: Wed Jul 27, 2011 9:26 am

Re: Problem with news module pagination

Post by chillifish »

Yes, cleared the cache.

I'm not sure when it started. Must have been after an update, but not sure which. I noticed the issue today when it was on 1.11.12, and have since updated to 1.11.13.

I don't think it would have been there on 1.11.11 or, I would have noticed before, but I haven't looked at the site in a while, so it could have been broken then too.
chillifish
Forum Members
Forum Members
Posts: 92
Joined: Wed Jul 27, 2011 9:26 am

Re: Problem with news module pagination

Post by chillifish »

Think I've found out what's causing the issue. I've recently had some SEO work done. One of the things they wanted to fix was the fact that 'http://www.myurl.com/ and 'http://www.myurl.com/index.php both show the same page and apparently google doesn't like that. I noticed the below has been added to my htaccess and if I remove it, it works fine.

Code: Select all

RewriteEngine On

RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{THE_REQUEST} !/system/.*
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,L]
Last edited by Dr.CSS on Wed Mar 18, 2015 9:52 pm, edited 1 time in total.
Reason: Put something in front of 'dead' links please...
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Problem with news module pagination

Post by Dr.CSS »

Is that part of the htaccess.txt found in the [root]/doc folder, I wouldn't trust/use any other htaccess file...
chillifish
Forum Members
Forum Members
Posts: 92
Joined: Wed Jul 27, 2011 9:26 am

Re: Problem with news module pagination

Post by chillifish »

Yes it is.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Problem with news module pagination

Post by velden »

No it's not. It's a customized version. Probably because of the SEO work you had done (which I think should be solved by implementation of canonical links)
chillifish
Forum Members
Forum Members
Posts: 92
Joined: Wed Jul 27, 2011 9:26 am

Re: Problem with news module pagination

Post by chillifish »

oh, I see what you're saying. I thought you meant is it in the public-html folder, no it's not. They've added it. I've commented it out and everything is fine.
Post Reply

Return to “The Lounge”