[SOLVED] Smarty Errors in Comments Module

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
skateoroma
Forum Members
Forum Members
Posts: 25
Joined: Sat Dec 01, 2007 12:00 am

[SOLVED] Smarty Errors in Comments Module

Post by skateoroma »

Got the comments module working like I want it now... Thanks Russ... However, I received intermittent errors when I access an article with comments.  When I refresh the errors go away. 

From this link, click on an article with comments, http://rudeboyzofficial.com/rudethawtz.php.

See error below. 

string(200) "Smarty error: [in module_db_tpl:Comments;default_display line 65]: syntax error: unrecognized tag: $entry-?phpMyAdmin=toGgkFcqUhAHgHeys4MNRf%2ChUXe>author_website (Smarty_Compiler.class.php, line 446)" string(138) "Smarty error: [in module_db_tpl:Comments;default_display line 65]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"

----------------------------------------------

Cms Version: 1.4.1

Installed Modules:

    * CMSMailer: 1.73.14
    * FileManager: 0.4.1
    * MenuManager: 1.5.1
    * ModuleManager: 1.2.1
    * News: 2.8.2
    * nuSOAP: 1.0.1
    * Printing: 0.2.5
    * Search: 1.5.1
    * ThemeManager: 1.0.8
    * TinyMCE: 2.4.5
    * Comments: 1.8.2
    * Captcha: 0.3.1
    * FormBuilder: 0.5.3
    * FrontEndUsers: 1.4.3
    * CGExtensions: 1.8
    * NMS: 2.1.1
    * CMSakismet: 1
    * SelfRegistration: 1.2.1
    * Album: 0.9.3


Config Information:

    * php_memory_limit:
    * process_whole_template: true
    * max_upload_size: 10000000
    * default_upload_permission: 664
    * assume_mod_rewrite: true
    * page_extension: .php
    * internal_pretty_urls: false
    * use_hierarchy: true


Php Information:

    * safe_mode: Off (False)
    * phpversion: 5.2.6
    * memory_limit: 32M
    * max_execution_time: 30
    * gd_version: 2
    * session_save_path: No check because open basedir active


Server Information:

    * Server Api: apache2handler
    * Server Db Type: MySQL (mysql)
    * Server Db Version: 5.0.27
Last edited by skateoroma on Tue Sep 23, 2008 6:06 pm, edited 1 time in total.
User avatar
duclet
Forum Members
Forum Members
Posts: 187
Joined: Fri Jun 23, 2006 12:55 pm

Re: Smarty Errors in Comments Module

Post by duclet »

Do you mind posting the content of that template as well?
skateoroma
Forum Members
Forum Members
Posts: 25
Joined: Sat Dec 01, 2007 12:00 am

Re: Smarty Errors in Comments Module

Post by skateoroma »

No problem, thanks for the help.

Comments Template

Code: Select all

<div id="comments">
<!-- Start Comments Display Template -->
{if FALSE == $errormessage}
{startExpandCollapse id="name" title="$addacomment"}
{else}
{$errormessage}
{/if}
<h3>{$addacomment}</h3>

{$startform}
{$image}
{if $spamprotect}
{$spamprotectimage}<br />
{/if}

<table>
{if $spamprotect}
	<tr>
		<td>{$entercodetxt}:</td>
		<td>{$inputentercode}</td>
	</tr>
{/if}
	<tr>
		<td>{$yournametxt}(*):</td>
		<td>{$inputyourname}</td>
	</tr>
{if $emailfield}
	<tr>
		<td>{$emailtxt}:</td>
		<td>{$inputemail}</td>
	</tr>
{/if}
{if $websitefield}
	<tr>
		<td>{$websitetxt}:</td>
		<td>{$inputwebsite}</td>
	</tr>
{/if}
	<tr>
		<td>{$commenttxt}(*):</td>
		<td>{$inputcomment}</td>
	</tr>
	<tr>
		<td> </td>
		<td>{$submit} {$cancel}</td>
	</tr>
</table>

{$endform}
{if FALSE == $errormessage}
{stopExpandCollapse} 
{/if}
<div class="commententry">
<h2>Recent Comments</h2>
<br />
<ul>
{foreach from=$items item=entry}
<li>
{$entry->date} - 
		{if $entry->author_email}
		<a href="mailto:{$entry->author_email|escape:"hexentity"}">{$entry->comment_author}</a>
		{else}
		{$entry->comment_author}
		{/if}
		{if $entry->author_website}(<a href="{$entry-?phpMyAdmin=toGgkFcqUhAHgHeys4MNRf%2ChUXe>author_website}" target="_blank">{$entry->author_website}</a>){/if}
	{$entry->comment_data}
</li>
{/foreach}
</ul>
</div>
<!-- End Comments Display Template -->
</div>
User avatar
duclet
Forum Members
Forum Members
Posts: 187
Joined: Fri Jun 23, 2006 12:55 pm

Re: Smarty Errors in Comments Module

Post by duclet »

This line here seems to be the problem:

Code: Select all

		{if $entry->author_website}(<a href="{$entry-?phpMyAdmin=toGgkFcqUhAHgHeys4MNRf%2ChUXe>author_website}" target="_blank">{$entry->author_website}</a>){/if}
Might it suppose to be:

Code: Select all

		{if $entry->author_website}(<a href="{$entry->author_website}" target="_blank">{$entry->author_website}</a>){/if}
skateoroma
Forum Members
Forum Members
Posts: 25
Joined: Sat Dec 01, 2007 12:00 am

Re: Smarty Errors in Comments Module

Post by skateoroma »

Thanks duclet.  I didn't add that code, that was a part of the install, so not sure why it's there.  Anyway, I tried it and it fixed the errors.

Thanks again  :D  ;D
Post Reply

Return to “Modules/Add-Ons”