Page 1 of 1

Problem with news module pagination

Posted: Wed Mar 18, 2015 10:16 am
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.

Re: Problem with news module pagination

Posted: Wed Mar 18, 2015 10:57 am
by velden
What about renaming the News template(s) to a name without spaces?

Re: Problem with news module pagination

Posted: Wed Mar 18, 2015 11:11 am
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.

Re: Problem with news module pagination

Posted: Wed Mar 18, 2015 12:28 pm
by staartmees
did you clear the cache?

Re: Problem with news module pagination

Posted: Wed Mar 18, 2015 1:06 pm
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.

Re: Problem with news module pagination

Posted: Wed Mar 18, 2015 1:19 pm
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]

Re: Problem with news module pagination

Posted: Wed Mar 18, 2015 9:54 pm
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...

Re: Problem with news module pagination

Posted: Thu Mar 19, 2015 10:10 am
by chillifish
Yes it is.

Re: Problem with news module pagination

Posted: Thu Mar 19, 2015 10:20 am
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)

Re: Problem with news module pagination

Posted: Thu Mar 19, 2015 2:26 pm
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.