News module not loading articles when categories are used
News module not loading articles when categories are used
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
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
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

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
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
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!
-
- Power Poster
- Posts: 424
- Joined: Sat Feb 02, 2008 12:42 am
Re: News module not loading articles when categories are used
Unfortunately, this bug has existed for sometime now and though it's been reported, it has yet to be fixed.
Take a penny, leave a penny.
Re: News module not loading articles when categories are used
Thanks for the info!Ziggywigged wrote: 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
Paul J,
Do you have a link for us? You can pm me, if you want.
Regards, Rolf
Do you have a link for us? You can pm me, if you want.
Regards, Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: News module not loading articles when categories are used
Hello RolfRolf wrote: Paul J,
Do you have a link for us? You can pm me, if you want.
Regards, Rolf
I've just sent you a PM.
Thanks, Paul
Re: News module not loading articles when categories are used
I'm working on this for a while now, but I can't get my finger behind it...Ziggywigged wrote: Unfortunately, this bug has existed for sometime now and though it's been reported, it has yet to be fixed.
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

@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

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: News module not loading articles when categories are used
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.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
Thanks again
Paul
Re: News module not loading articles when categories are used
@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
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
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: News module not loading articles when categories are used
Oops, I've only just seen your request above. I've just emailed you the database and have answered your questions in the email.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
Thanks a lot!
Paul