News no more displayed after moving on a new server

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
User avatar
marsian
New Member
New Member
Posts: 7
Joined: Wed Sep 26, 2007 11:49 am

News no more displayed after moving on a new server

Post by marsian »

Hi all,
I have designed an intranet using CMSMS on my PC ( using EasyPHP1.8 ) and everything works fine.
However, once installed on the targeted production server (HP-UX), the News module does not work properly:
- a page containing the tag {news} will show nothing  >:(
- but, a page containing the tag {news detailpage="news" browsecat="1"} will display correctly all the categories and the expected number of news for each categorie; and, a RSS bookmark will list correctly the last news, and when a news is chosen, it will be correctly displayed...  ???
When looking in the Mysql database, all the news are present.

Does someone have any idea on the reasons of this problem and the way to solve it ?

technical details:
- CMSMS 1.1.2 and News 2.5 are used in both cases
- Windows PC is running EasyPHP1.8 (Apache 1.3.33, PHP 4.3.10, Mysql 4.1.9)
- HP-UX Server is running Apache 2.0.55, PHP 4.3.8, Mysql 3.23.54

Manu.
cyberman

Re: News no more displayed after moving on a new server

Post by cyberman »

Have you defined a default News template?
User avatar
marsian
New Member
New Member
Posts: 7
Joined: Wed Sep 26, 2007 11:49 am

Re: News no more displayed after moving on a new server

Post by marsian »

yes... I think so...
The default template for News is the one provided with the module.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: News no more displayed after moving on a new server

Post by Dr.CSS »

You may want to look at your news items to make sure they aren't marked as expired, I've had this happen on a DB backup/restore...
User avatar
marsian
New Member
New Member
Posts: 7
Joined: Wed Sep 26, 2007 11:49 am

Re: News no more displayed after moving on a new server

Post by marsian »

thanks for the advice.
It seems to me that the news are not expired, as I can see in the database (via phpmyadmin, because the news are even not displayed in the admin panel/Content->News section) that their status is "published" and their end_time is "NULL".

I also tried to remove all the backuped news, uninstall the News module and reinstall it; then creating new News items... the result is still the same than explain in my first post...
cyberman

Re: News no more displayed after moving on a new server

Post by cyberman »

marsian wrote: - a page containing the tag {news} will show nothing
Have you checked page source?

On a copy/paste action it's possible to get a

Code: Select all

<pre>{news}</pre>
inside page source. And this will not work ...
User avatar
marsian
New Member
New Member
Posts: 7
Joined: Wed Sep 26, 2007 11:49 am

Re: News no more displayed after moving on a new server

Post by marsian »

The page source is ok and contains only the tag {news}.
But, the resulting html page is different, depending on the server:
* with the EasyPHP server (with which the news are well displayed), I get:

Code: Select all

</li></ul>
      <hr class="accessibility" />
      </div>
      
       </div>
      

            <div id="main">
         <div style="float: right;"><a class="noprint" href="http://localhost/cmsmadesimple/index.php?page=57&print=true&goback=0&js=1" title="Print This Page"><img src="http://localhost/cmsmadesimple/images/cms/printbutton.gif" alt="Print This Page" title="Print This Page" /></a></div>

         <h2>Toutes les news</h2>
         <!-- Displaying News Module -->
<!-- News Categories: '' -->
<!-- Start News Display Template -->
<div class="NewsSummary">

	<div class="NewsSummaryPostdate">
		09/26/07
	</div>

<div class="NewsSummaryLink">
	<a href="http://localhost/cmsmadesimple/index.php?mact=News,cntnt01,detail,0&cntnt01articleid=1&cntnt01returnid=57">News Module Installed</a>

</div>

<div class="NewsSummaryCategory">
	Catégorie : General
</div>

	<div class="NewsSummaryAuthor">
		Posté par : root
	</div>


	<div class="NewsSummaryContent">
		The news module was installed.  Exciting. This news article is not using the Summary field and therefore there is no link to read more. But you can click on the news heading to read only this article.
	</div>


</div>
<!-- End News Display Template --> <br />

         	 <div class="hr"></div>
	 <div class="right49">

	 	<p><a href="/cmsmadesimple/index.php?page=toutes-les-news#main">^ Top</a></p>
	 </div>
         <div class="left49">
            <p>Page précédente : <a href="http://localhost/cmsmadesimple/index.php?page=Les-3-dernieres-news" title="Les 3 dernières news">Les 3 dernières news</a> <br />
            Page suivante : <a href="http://localhost/cmsmadesimple/index.php?page=par-categories" title="Les news par catégories">Les news par catégories</a></p>

         </div>
         	 
      <hr class="accessibility" />
      </div>
	  

   </div>
* whereas, with the HP-UX server (with which the news are not displayed):

Code: Select all

</li></ul>
      <hr class="accessibility" />
      </div>
      
       </div>
      

            <div id="main">
         <div style="float: right;"><a class="noprint" href="http://intra/ce/newce/index.php?page=57&print=true&goback=0&js=1" title="Imprimer"><img src="http://intra/ce/newce/images/cms/printbutton.gif" alt="Imprimer" title="Imprimer" width="16" height="16" /></a></div>
         <h2>Toutes les news</h2>
         <!-- Displaying News Module -->

<!-- News Categories: '' -->
<!-- Start News Display Template -->
<!-- End News Display Template --> <br />

         	 <div class="hr"></div>
	 <div class="right49">
	 	<p><a href="/ce/newce/index.php?page=toutes-les-news#main">^ Top</a></p>
	 </div>
         <div class="left49">
            <p>Page précédente : <a href="http://intra/ce/newce/index.php?page=Les-3-dernieres-news" title="Les 3 dernières news">Les 3 dernières news</a> <br />

            Page suivante : <a href="http://intra/ce/newce/index.php?page=par-categories" title="Les news par catégories">Les news par catégories</a></p>
         </div>
         	 
      <hr class="accessibility" />
      </div>
	  

   </div>
As you can see, there is no html code where the news is supposed to be ! I suspect a problem with the PHP server (PHP 4.3.8 vs PHP 4.3.10)... Am I right?  Does someone already have had this type of behavior? Which php file is responsible of displaying the content when the tag {news} is used?
cyberman

Re: News no more displayed after moving on a new server

Post by cyberman »

function.default.php

Maybe there's a difference between Apache 1 / 2 too  ::) ...

Have you compared running Apache modules?
User avatar
marsian
New Member
New Member
Posts: 7
Joined: Wed Sep 26, 2007 11:49 am

Re: News no more displayed after moving on a new server

Post by marsian »

Using phpinfo(), I compared the parameters for the PHP core and then reported the differences on my local php.ini (because I have no write permission on the server configuration files), hopping that the wrong behavior occured on my PC... but the reasons are not there, because even with the same parameters for the both, I still have a running CMSMS on my PC !

:'(
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: News no more displayed after moving on a new server

Post by Dr.CSS »

Did you check the permissions in Users & Groups > Group Permissions to make sure all are ticked...
User avatar
marsian
New Member
New Member
Posts: 7
Joined: Wed Sep 26, 2007 11:49 am

Re: News no more displayed after moving on a new server

Post by marsian »

yes everything is ticked.
User avatar
Sy
Forum Members
Forum Members
Posts: 95
Joined: Fri Aug 17, 2007 11:13 am

Re: News no more displayed after moving on a new server

Post by Sy »

Have you compared the tables in MySQL on the server with your local copy?

How did you export and import the data to the server, I've had problems with exporting SQL from a later version of MySQL to an older version, its amazing how the little things cause the biggest problems.

Export from both DB's and compare the resulting SQL.
User avatar
marsian
New Member
New Member
Posts: 7
Joined: Wed Sep 26, 2007 11:49 am

Re: News no more displayed after moving on a new server

Post by marsian »

I didn't do that, but I performed a new CMSMS fresh install - configured to use new tables (suffix newcms_ instead of cms_) in the same SQL database and behavior was the same... so I guess that it's not a problem related to SQL export/import.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: News no more displayed after moving on a new server

Post by Dr.CSS »

Looking at the two it looks like you don't have a template checked as default in summary in the second one...




nothing here...


Or you don't have any calls in the template...

I had an install/upgrade that had no templates in the News and when I clicked to make new ones nothing showed up in it till I went back and hit the restore to default in the first part of the news summary template tab...

Also check here...

http://forum.cmsmadesimple.org/index.ph ... l#msg64197
Last edited by Anonymous on Wed Oct 03, 2007 2:16 pm, edited 1 time in total.
Locked

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