Page 1 of 1

Few errors after an upgrade...

Posted: Thu Sep 11, 2008 8:06 am
by hickscorp
Hello people and good morning,

i have upgraded CMSMS used on a website to version 1.4 (The site is http://www.nontron.fr/).
As you can see, i have solved almost all issues already, but there are a few points i would appreciate some help:
- On the left and on all articles, the "Plus" link doesn't work anymore.
- We use the "Calendar" module. When we click on "Plus" on a calendar event, it leads to the administration login page (Links are automatically generated, we can't change them).
- When we go on the public calendar page (www.nontron.fr/index.php?page=agenda), there is an error on the left menu: ""string(75) "Smarty error: unable to read resource: "module_db_tpl:MenuManager;nodelist""

Can anyone please have a look and give me some guidelines to solve those issues?
Thanks a lot,
Pierre.

Re: Few errors after an upgrade...

Posted: Mon Sep 15, 2008 9:23 am
by hickscorp
Up please? Anyone?

Re: Few errors after an upgrade...

Posted: Mon Sep 15, 2008 9:43 am
by alby
hickscorp wrote: - On the left and on all articles, the "Plus" link doesn't work anymore.
Probably News don't work bacause you haven't {content} in template homepage
If I change from 15 (homepage):
....mact=News,cntnt01,detail,0&cntnt01articleid=13&cntnt01origid=15&cntnt01returnid=15
to 60:
....mact=News,cntnt01,detail,0&cntnt01articleid=13&cntnt01origid=60&cntnt01returnid=60
news display....

My advice is to use a detailpage param (look in News help)

hickscorp wrote: - We use the "Calendar" module. When we click on "Plus" on a calendar event, it leads to the administration login page (Links are automatically generated, we can't change them).
Hum.... very strange, I see that detailpage is empty (?)

hickscorp wrote: - When we go on the public calendar page (www.nontron.fr/index.php?page=agenda), there is an error on the left menu: ""string(75) "Smarty error: unable to read resource: "module_db_tpl:MenuManager;nodelist""
Look in MenuManager if you have a template with name: nodelist

Alby

Re: Few errors after an upgrade...

Posted: Tue Sep 23, 2008 9:09 am
by hickscorp
Hello Alby and thanks for your reply,

Since i've not been myself making this website, i'm a bit lost in your explainations...
You're telling me that there is probably no "{content}" block in the HomePage template... You're right, i've been looking for it and it clearly doesn't appear anywhere. However, the page's content is only containing "{content}".
Here is how the HomePage template (Named "Home") body part looks like:

Code: Select all

	</__body>
		<div id="wrap">
			<!-- start accessibility skip links -->
			<ul class="accessibility">
				<li><a href="#menu_vert" accesskey="s" title="Skip to navigation">Skip to navigation</a></li>
				<li><a href="#main">Skip to content</a></li>
			</ul>
			<!-- end accessibility skip links -->
			<!-- Start Header, with logo image that links to the default start page -->
			<div id="header">
				<a href="./"><img src="uploads/images/site/bandeaux/{title}.jpg" alt="" /></a>{cms_module module='menumanager' template='cssmenu-accessible.tpl'}    
			</div>
			<!-- End Header -->
			<!-- Start Horizontal Navigation -->
			<!-- Emplacement du menu -->
			<!-- End Horizontal Navigation -->
			<!-- Start Content (Navigation and Content columns) -->
			<div id="content" class="clearfix">
				<!-- Start Content Area -->
				<div id="main">
					<div id="partie_haute">
						<div id="gauche">
							<div id="gauche_haut">
								{news number='1' category='petit_encart' detailpage='article---details' moretext='Plus...'}
							</div>
							<div id="gauche_bas">
								<div id="carte">
									<h2 class="accessibility">Carte</h2>
									<img id="imageCarte" style="width: 170px;" src="uploads/images/site/pages/accueil/carte/0.jpeg" onclick="javascript:carte();" alt="Carte" title="Cliquez pour changer la carte." /><br />Cliquez pour changer la carte.<br />
								</div>
							</div>
						</div>
						<div id="centre">
							<table cellpadding="0" cellspacing="0" style="float: left;">
								<tr style="height: 14px;">
									<td colspan="2" style="background-image: url('uploads/images/site/bordures/accueil/new_bas/haut.png'); background-repeat: repeat-x;"><img src="uploads/images/site/bordures/accueil/new_bas/haut_gauche.png" style="float: left; vertical-align: top" alt="" /></td>
									<td style="width: 14px; background-image: url('uploads/images/site/bordures/accueil/new_bas/haut_droite.png'); background-repeat: no-repeat;"></td>
								</tr>
								<tr>
									<td style="vertical-align: bottom;"><img style="vertical-align: bottom;" src="uploads/images/site/bordures/accueil/new_bas/gauche.png" alt="" /></td>
									<td>
										<div id="news1">
											<!-- First news, top center -->
											{news number='1' category='grand_encart' detailpage='article---details' moretext='Plus...'}
										</div>
									</td>
									<td style="width: 14px; background-image: url('uploads/images/site/bordures/accueil/new_bas/droite.png'); background-repeat: repeat-y;"> </td>
								</tr>
								<tr style="height: 14px;">
									<td style="width: 14px; background-image: url('uploads/images/site/bordures/accueil/new_bas/bas_gauche.png'); background-repeat: no-repeat; bottom: 1em;"></td>
									<td style="background-image: url('uploads/images/site/bordures/accueil/new_bas/bas.png'); background-repeat: repeat-x;"> </td>
									<td style="width: 14px; background-image: url('uploads/images/site/bordures/accueil/new_bas/bas_droite.png'); background-repeat: no-repeat;"></td>
								</tr>
							</table>
							<div id="logos">
								<a href=""><img src="uploads/images/site/logos/pnrpl.png" alt="" /></a>
								<a href="http://poleexperimentalmetiersda.typepad.com/"><img src="uploads/images/site/logos/peman.png" alt="" /></a>
								<a href="http://www.perigord-nontronnais.com/index.php"><img src="uploads/images/site/logos/ccpn.png" alt="" /></a>
								<a href="http://www.dordogne-perigord-tourisme.fr/"><img src="uploads/images/site/logos/cdtd.png" alt="" /></a>
								<a href="http://www.vma.asso.fr/"><img src="uploads/images/site/logos/vma.png" alt="" /></a>
<a href="http://www.stationsvertes.com"><img src="uploads/images/site/logos/StationVerte_logo.jpg" alt="" /></a>
								<div class="spacer"></div>
							</div>
						</div>
						<div id="droite">
							<div id="droite_haut" style="z-index: 0;">
								<div id="flashcontent">
									<__script__ type="text/javascript">
										var so = new SWFObject("uploads/images/site/pages/accueil/slider/slider.swf?xml=uploads/images/site/pages/accueil/slider/slider.xml", "slider", "250", "166", "7", "#ffffff");
										so.addParam("wmode", "transparent");
										so.write("flashcontent");
									</__script>
								</div>
							</div>
							<div id="droite_bas">
								<table cellpadding="0" cellspacing="0" style="float: left;">
									<tr style="height: 14px;">
										<td colspan="2" style="background-image: url('uploads/images/site/bordures/accueil/new_haut/haut.png'); background-repeat: repeat-x;"><img src="uploads/images/site/bordures/accueil/new_haut/haut_gauche.png" style="float: left; vertical-align: top" alt="" /></td>
										<td style="width: 14px; background-image: url('uploads/images/site/bordures/accueil/new_haut/haut_droite.png'); background-repeat: no-repeat;"></td>
									</tr>
									<tr>
										<td style="vertical-align: bottom;"><img style="vertical-align: bottom;" src="uploads/images/site/bordures/accueil/new_haut/gauche.png" alt="" /></td>
										<td>
											<div id="agenda">
												<!-- Second news, middle left -->
						 						{cms_module module="Calendar" display="upcominglist" date_format="%d %m" detail="0" limit=15 }
								<p style="text-align: center;">[<a href="index.php?page=agenda">Plus...</a>]</p>
											</div>
											<div class="spacer"></div>
										</td>
										<td style="width: 14px; background-image: url('uploads/images/site/bordures/accueil/new_haut/droite.png'); background-repeat: repeat-y;"> </td>
									</tr>
									<tr style="height: 14px;">
										<td style="width: 14px; background-image: url('uploads/images/site/bordures/accueil/new_haut/bas_gauche.png'); background-repeat: no-repeat; bottom: 1em;"></td>
										<td style="background-image: url('uploads/images/site/bordures/accueil/new_haut/bas.png'); background-repeat: repeat-x;"> </td>
										<td style="width: 14px; background-image: url('uploads/images/site/bordures/accueil/new_haut/bas_droite.png'); background-repeat: no-repeat;"></td>
									</tr>
								</table>
							</div>
						</div>
						<div class="spacer"></div>
					</div>
				</div>
				<!-- End Content Area -->
			</div>
			<!-- Start Footer -->
			<div id="footer" class="clearfix">
				{global_content name='footer'}
			</div>
			<!-- End Footer -->
		</div>
		<!-- end wrap -->
About the calendar page, i've no idea what's the reason of this missbehavior. Again, everything was just working fine before the update... How can i know wether the calendar tables have been messed up in the database? Or maybe, should i uninstall the calendar module, delete the tables by hand in database, and install the module to get a fresh start with it?

For the very last problem, you're telling me to look at the Menu Manager, looking for an entity named "nodelist". However, when i go in the Menu Manager, there are no database templates, only file based templates (2nd tab). Since in the "Home" template, there is this line:

Code: Select all

<__script__ type="text/javascript" src="modules/MenuManager/CSSMenu.js"></__script>
i believe i have too look at the file named "cssmenu.tpl". Is that right?
Below is the content of this file:

Code: Select all

{* CSS classes used in this template:
#menuwrapper - The id for the <div> that the menu is wrapped in. Sets the width, background etc. for the menu.
#primary-nav - The id for the <ul>
.menuparent - The class for each <li> that has children.
.menuactive - The class for each <li> that is active or is a parent (on any level) of a child that is active. *}
{if $count > 0}
<div id="menuwrapper">
<ul id="primary-nav">
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}

	{repeat string="<ul>" times=$node->depth-$node->prevdepth}
{elseif $node->depth < $node->prevdepth}

	{repeat string="</li></ul>" times=$node->prevdepth-$node->depth}
	</li>
{elseif $node->index > 0}</li>
{/if}
{if $node->parent == true or ($node->current == true and $node->haschildren == true)}
	<li class="menuactive menuparent"><a class="menuactive menuparent" 
{elseif $node->current == true}
	<li class="menuactive"><a class="menuactive" 
{elseif $node->haschildren == true}
	<li class="menuparent"><a class="menuparent" 
{elseif $node->type == 'sectionheader'}
        <li class="sectionheader"><span> {$node->menutext} </span>
{elseif $node->type == 'separator'}
        <li style="list-style-type: none;"> <hr class="separator" />
{else}
	<li><a 
{/if}
{if $node->type != 'sectionheader' and $node->type != 'separator'}
href="{$node->url}" {if $node->accesskey != ''}accesskey="{$node->accesskey}" {/if}{if $node->tabindex != ''}tabindex="{$node->tabindex}" {/if}{if $node->titleattribute != ''}title="{$node->titleattribute}"{/if}{if $node->target ne ""} target="{$node->target}"{/if}><dfn>{$node->hierarchy}: </dfn>{$node->menutext}</a>
{elseif $node->type == 'sectionheader'}
><dfn>{$node->hierarchy}: </dfn>{$node->menutext}</a>
{/if}

{/foreach}

	{repeat string="</li></ul>" times=$node->depth-1}		</li>
	</ul>
<div class="clearb"></div>
</div>
{/if}
And as you can see, the $nodelist var is already iterated here:

Code: Select all

{foreach from=$nodelist item=node}
Thanks a lot for your time!
Pierre.

Re: Few errors after an upgrade...

Posted: Tue Sep 23, 2008 9:40 am
by alby
hickscorp wrote: You're telling me that there is probably no "{content}" block in the HomePage template... You're right, i've been looking for it and it clearly doesn't appear anywhere. However, the page's content is only containing "{content}".
For to display news detail you must to have {content} tag in template of display page.
Now your news tags: {news number='1' category='petit_encart' detailpage='article---details' moretext='Plus...'}
tried to open news detail in 'article---details' page (this is alias name) but this page is missing:
http://www.nontron.fr/index.php?page=article---details
so news link to open detail in CURRENT page but homepage have not {content} tag then you have not news detail
Create new page with alias article---details and {content} in its template

hickscorp wrote: About the calendar page, i've no idea what's the reason of this missbehavior. Again, everything was just working fine before the update... How can i know wether the calendar tables have been messed up in the database? Or maybe, should i uninstall the calendar module, delete the tables by hand in database, and install the module to get a fresh start with it?
Look if you have lastest version and install that or if not backup your DB, uninstall module, remove, reinstall module and restore [prefix]modules_calendar* tables. After check for template modification in [prefix]modules_templates

hickscorp wrote: For the very last problem, you're telling me to look at the Menu Manager, looking for an entity named "nodelist". However, when i go in the Menu Manager, there are no database templates, only file based templates (2nd tab). Since in the "Home" template, there is this line:

Code: Select all

<__script__ type="text/javascript" src="modules/MenuManager/CSSMenu.js"></__script>
i believe i have too look at the file named "cssmenu.tpl". Is that right?
There is Menu tag:
{cms_module module='menumanager' template='cssmenu-accessible.tpl'}

- Have you this file? Is better to import template in DB (without .tpl) and change template='xxxx' param with new name
- Have you nodelist.tpl? Try to copy a template file to nodelist.tpl


Alby

Re: Few errors after an upgrade...

Posted: Fri Sep 26, 2008 10:19 am
by hickscorp
Thanks Alby for your time and answers.
alby wrote:For to display news detail you must to have {content} tag in template of display page.
Now your news tags: {news number='1' category='petit_encart' detailpage='article---details' moretext='Plus...'}
tried to open news detail in 'article---details' page (this is alias name) but this page is missing:
http://www.nontron.fr/index.php?page=article---details
so news link to open detail in CURRENT page but homepage have not {content} tag then you have not news detail
Create new page with alias article---details and {content} in its template
Okay done. Now when i click on "Plus..." link of a news, i'm getting into a page i just created. But now on the left of this page, the menu is messed up ( See http://www.nontron.fr/index.php?mact=Ne ... turnid=223 ).
Look if you have lastest version and install that or if not backup your DB, uninstall module, remove, reinstall module and restore [prefix]modules_calendar* tables. After check for template modification in [prefix]modules_templates
i'll see with the people maintaining the website if they can get time to type the calendar events from scratch (There are not many of them, so it will be more clean). So i have to:
- Remove module,
- Delete modules_calendar* tables,
- But what with modules_templates?
There is Menu tag:
{cms_module module='menumanager' template='cssmenu-accessible.tpl'}

- Have you this file? Is better to import template in DB (without .tpl) and change template='xxxx' param with new name
- Have you nodelist.tpl? Try to copy a template file to nodelist.tpl
Yes, i have cssmenu-accessible.tpl. No, i'm unable to find nodelist.tpl... Any chance for you to tell me where to get that file please?

Again thanks, and have a good week end!
Pierre.

Re: Few errors after an upgrade...

Posted: Fri Sep 26, 2008 11:08 am
by alby
hickscorp wrote: Okay done. Now when i click on "Plus..." link of a news, i'm getting into a page i just created. But now on the left of this page, the menu is messed up ( See http://www.nontron.fr/index.php?mact=Ne ... turnid=223 ).
Left menu is messed because you have not nodelist template ....

hickscorp wrote:
Look if you have lastest version and install that or if not backup your DB, uninstall module, remove, reinstall module and restore [prefix]modules_calendar* tables. After check for template modification in [prefix]modules_templates
i'll see with the people maintaining the website if they can get time to type the calendar events from scratch (There are not many of them, so it will be more clean). So i have to:
- Remove module,
- Delete modules_calendar* tables,
- But what with modules_templates?
Have you "personalized" Calendar template? If yes, you lost your modify then restore your temlate from modules_templates table

hickscorp wrote:
There is Menu tag:
{cms_module module='menumanager' template='cssmenu-accessible.tpl'}

- Have you this file? Is better to import template in DB (without .tpl) and change template='xxxx' param with new name
- Have you nodelist.tpl? Try to copy a template file to nodelist.tpl
Yes, i have cssmenu-accessible.tpl. No, i'm unable to find nodelist.tpl... Any chance for you to tell me where to get that file please?
Try to search in old backup or use one present and personalized its

Alby