Page 1 of 1

News module not loading articles when categories are used

Posted: Tue Feb 02, 2010 7:38 pm
by Paul J
Hello all

My first post. Firstly, thanks to everyone involved with CMSms. I've already created a couple of sites with it and there are more in progress...

I hope someone can help with the following problem. I recently created a site directly on the server as it was a brand new site/domain. I now need to work on some additions and alterations so have copied the CMSms installation and database to my Mac and have set it up there using MAMP and DynDNS so that I can just transfer the database to the server when I'm happy with everything. (I've edited config.php so that all paths relate to my local machine and not the server, and have cleared the cache.) Everything works fine apart from that no news is shown (the site has four categories of news, out of which selected articles are shown on the home page). No news is loaded into either the home page, or the three other pages which should contain news articles.

I experimented by reducing the tag in one of the pages (as shown below) simply to {news}. This resulted in ALL news showing, as would be expected. I then introduced the other variables in turn with no problem and found that when I introduced category, no news at all is displayed.

Example: {news category="leading" number="4" moretext="Read more »"}

I checked the source code of the page as generated by the browser






so it knows to load the category called 'leading' etc. I then checked the news module in the backend to make sure that the categories are still named correctly and that all articles are allocated to the correct category. I then created a test category and allocated some articles to that: still nothing shows up.

Does anyone have any ideas as to what is wrong? Bear in mind that everything works fine on the actual 'live' site on the server, so it's probably (hopefully!) something simple that needs to be adjusted in my testing environment...

System info below: I hope that's enough to go on.

Thanks in advance

Paul

CMS Version
1.6.6

Installed Modules
CMSMailer
1.73.14
FileManager
1.0.1
MenuManager
1.6.2
ModuleManager
1.3.1
News
2.10.3
nuSOAP
1.0.1
Printing
1.0.4
Search
1.6.1
ThemeManager
1.1.1
TinyMCE
2.5.5
Album
0.9.3
Cataloger
0.7.6
Statistics
0.9.9
DownCnt
1.0.0
FrontEndUsers
1.6.11
CustomContent
1.5.3

PHP Information:
Current PHP Version (phpversion):
 5.2.3

Server Information:
Server API (server_api):
apache2handler
Server Database (server_db_type):
MySQL (mysql)
Server Database Version (server_db_version):
5.0.41
Server Software (server_software):
Apache
Server Operating System (server_os):
Darwin 9.8.0 On i386

Re: News module not loading articles when categories are used

Posted: Thu Feb 04, 2010 12:09 pm
by Paul J
Nobody has any thoughts on this...?  :-[

A couple of further things which have resulted from testing:

If I go to the actual live site and copy and paste the URL of a news article into the address bar of my local site, the article displays OK, ie:

http://www.mysite.com/news/27/58/title-of-news-article

and

http://mysite.mine.nu/news/27/58/title-of-news-article


I also set up a local version of another site I'm working on onto a server to my Mac. This site also uses several categories in the news module and the same thing happens: news only shows when the 'category' variable is omitted. And again, pasting the URL of an article into the address bar results in it showing up OK.

So, for some reason, there is a problem with local CMSms sites not being able to load news articles using the category variable.

Any thoughts greatly appreciated!

Paul

Re: News module not loading articles when categories are used

Posted: Mon Feb 22, 2010 11:31 pm
by webform
Did you ever get it solved? I've just had the same problem, but just going the other way from a local test server to a live server. An uninstall/reinstall of the News modul seems to solve the problem for me!

Re: News module not loading articles when categories are used

Posted: Tue Feb 23, 2010 1:27 pm
by Paul J
webform wrote: Did you ever get it solved? I've just had the same problem, but just going the other way from a local test server to a live server. An uninstall/reinstall of the News modul seems to solve the problem for me!

No, I've just been working around the problem as detailed above. I'll try what you suggest and will report back. Thanks!

Re: News module not loading articles when categories are used

Posted: Tue Feb 23, 2010 2:02 pm
by Ziggywigged
Unfortunately, this bug has existed for sometime now and though it's been reported, it has yet to be fixed.

Re: News module not loading articles when categories are used

Posted: Tue Feb 23, 2010 2:11 pm
by Paul J
Ziggywigged wrote: Unfortunately, this bug has existed for sometime now and though it's been reported, it has yet to be fixed.
Thanks for the info!

Re: News module not loading articles when categories are used

Posted: Tue Feb 23, 2010 7:36 pm
by Rolf
Paul J,

Do you have a link for us? You can pm me, if you want.

Regards, Rolf

Re: News module not loading articles when categories are used

Posted: Tue Feb 23, 2010 9:19 pm
by Paul J
Rolf wrote: Paul J,

Do you have a link for us? You can pm me, if you want.

Regards, Rolf
Hello Rolf

I've just sent you a PM.

Thanks, Paul

Re: News module not loading articles when categories are used

Posted: Thu Feb 25, 2010 11:59 am
by Rolf
Ziggywigged wrote: Unfortunately, this bug has existed for sometime now and though it's been reported, it has yet to be fixed.
I'm working on this for a while now, but I can't get my finger behind it...
Very few people (including one site of myself) have it on their websites, but the majority has no problems at all...
Everything is working fine, but when setting hierarchy true in the config.php it is going the wrong way  :-\

I haven't been able to reproduce it on any of my other websites.
And there is nothing to compare on the different cases... No leads at all...  :-[

Untill now ;D Should the category parameter be the problem...? Hmm.

@Paul J
Can you please try to set hierarchy false in the config.php of your 'cat' website on your mac and see what happens?
Please report back when its done, I will take a look.

Grtz. Rolf  :)

Re: News module not loading articles when categories are used

Posted: Thu Feb 25, 2010 4:32 pm
by Paul J
Rolf wrote:
@Paul J
Can you please try to set hierarchy false in the config.php of your 'cat' website on your mac and see what happens?
Please report back when its done, I will take a look.

Grtz. Rolf  :)
Hi Rolf. Thanks for taking the time and trouble to look into this. I really appreciate it. OK, I've done as you asked. It doesn't seem to have made any difference other than that pretty URLs are lost for the news articles. (The articles on the page (below where it says 'test below here') on my local machine are what I'm working on at the moment: I've removed the category parameter to get them to show.

Thanks again

Paul

Re: News module not loading articles when categories are used

Posted: Thu Mar 18, 2010 7:41 pm
by Rolf
@Paul J

Is it possible that you email me a copy of your database?
Still working on this and I might have found a lead...  :-\
But I can't reproduce it yet, want to check if your database has the same settings.

When did you install this website?

Which CMSMS version was that?

Regards, Rolf

Re: News module not loading articles when categories are used

Posted: Thu May 13, 2010 8:17 pm
by Paul J
Rolf wrote: @Paul J

Is it possible that you email me a copy of your database?
Still working on this and I might have found a lead...  :-\
But I can't reproduce it yet, want to check if your database has the same settings.

When did you install this website?

Which CMSMS version was that?

Regards, Rolf
Oops, I've only just seen your request above. I've just emailed you the database and have answered your questions in the email.

Thanks a lot!

Paul