PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > ReviewPost Pro Support Forums > ReviewPost Bug Reports

ReviewPost Bug Reports Let us know about any post installation problems you are having with ReviewPost.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old November 27th, 2012, 03:17 PM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Feb 2006
Location: Sweden
Posts: 6
Strange problem with indexhead.tmpl on line 38

Today i renewed a rather old license and upgraded from ver 3.1 to 6.02. The Admin panel works but not the ordinary user functions.

Error message:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/fiskesnack/www/htdocs/reviewpost/templates/vb4enhanced/indexhead.tmpl on line 38

The link to my ReviewPost are:
w w w . f i s k e s n a c k . c o m / r e v i e w p o s t /
(I was not allowed to create an ordinary link due to low posts...)

Any suggestions?

The server is running:
Debian Linux
Apache v2.2.16
PHP 5.3.3-7+squeeze3
MySQL 5.1.49-3-log
Bergman is offline   Reply With Quote
Old November 27th, 2012, 03:22 PM   #2 (permalink)
Junior Member
Verified Customer
 
Join Date: Feb 2006
Location: Sweden
Posts: 6
Row 38 in file indexhead.tmpl containing this:
<span class="{$Style['small']}">{$rp_phrase['recent']} <a rel="nofollow" href="{$Globals['maindir']}/search.php?when=1&amp;whenterm=d&amp;cat=$cat">$rp_phrase['lastday']</a>
Bergman is offline   Reply With Quote
Old November 27th, 2012, 03:29 PM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Feb 2006
Location: Sweden
Posts: 6
This was odd, there where 4 rows with the same problem.

<span class="{$Style['small']}">{$rp_phrase['recent']} <a rel="nofollow" href="{$Globals['maindir']}/search.php?when=1&amp;whenterm=d&amp;cat=$cat">$rp_phrase['lastday']</a>
&nbsp;<a rel="nofollow" href="{$Globals['maindir']}/search.php?when=1&amp;whenterm=w&amp;cat=$cat">$rp_phrase['last7']</a>
&nbsp;<a rel="nofollow" href="{$Globals['maindir']}/search.php?when=2&amp;whenterm=w&amp;cat=$cat">$rp_phrase['last14']</a>
&nbsp;<a rel="nofollow" href="{$Globals['maindir']}/search.php?cats=$cat">$rp_phrase['allimages']</a>


And after changing the following it started working again:
<span class="{$Style[small]}">{$rp_phrase[recent]} <a rel="nofollow" href="{$Globals[maindir]}/search.php?when=1&amp;whenterm=d&amp;cat=$cat">$rp_phrase[lastday]</a>
&nbsp;<a rel="nofollow" href="{$Globals[maindir]}/search.php?when=1&amp;whenterm=w&amp;cat=$cat">$rp_phrase[last7]</a>
&nbsp;<a rel="nofollow" href="{$Globals[maindir]}/search.php?when=2&amp;whenterm=w&amp;cat=$cat">$rp_phrase[last14]</a>
&nbsp;<a rel="nofollow" href="{$Globals[maindir]}/search.php?cats=$cat">$rp_phrase[allimages]</a>


So it seems like the indexhead.tmpl contains errors that might be fixed?
Bergman is offline   Reply With Quote
Old November 27th, 2012, 04:30 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,667
Main Index - Produktrecensioner

I am not seeing any errors when viewing your site

Likewise here is my test site

Main Index - Reeftalk Reviews

This is the contents of my indexhead template so try this.

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 28th, 2012, 02:21 AM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Feb 2006
Location: Sweden
Posts: 6
After switching to the code in my post #3 it started to work without those error messages.

Then a new error appeared at the bottom where the footer should appear. The new error is:

Code:
Content visible to verified customers only.
And the file indexstats.tmpl row 36 is just empty in the unmodified default file.

The deafult file looks like this:
Quote:
<?php

if ( $cat == 0 ) {
echo<<<PPPRINT
<!-- BEGIN TEMPLATE: indexstats.tmpl -->
<div class="blockcontainer gshad">
<div class="sbox collapse">
<h2 align="left" class="boxhead"><span class="boxtitle">$rp_phrase[stats]</span></h2>
</div>
<div class="box-body" align="center" id="rp_addhead">
<table class="gridtable hidegrid" align="center" border="0" cellpadding="4" cellspacing="1" width="100%">

<tr>
<td valign="top" align="left" width="100%">
<table width="100%" cellpadding="3" cellspacing="3" border="0">
<tr>
<td class="blockrow" colspan="7" align="center">
<span class="normal">{$cache[stats][usertotal]} $rp_phrase[regusers] {$cache[stats][totalproducts]}
$rp_phrase[products] {$cache[stats][totalviews]} $rp_phrase[views]
</span>
</td>
</tr>
<tr>
<td class="blockrow" colspan="7" align="$Globals[align1]">
<span class="smallfont">$whoonline</span>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
<!-- END TEMPLATE: indexstats.tmpl -->
PPPRINT;

?>
So, it seems to miss the end
Quote:
}
on row 36 for the beginning if statement. After adding that to the file the error is gone.

So it seems to be problems with the default files attached with the download.
Bergman is offline   Reply With Quote
Old November 28th, 2012, 07:43 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,667
Thanks will check that out.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
indexhead.tmpl inspi2012 ReviewPost How do I...? 2 February 5th, 2012 06:04 PM
Indexhead.tmpl (Search Bar) lee.maher5898 Photopost Pro Installation & Upgrades 5 February 2nd, 2012 05:11 PM
Strange problem Yellowspurs Photopost Pro How Do I...? 1 January 22nd, 2007 09:45 PM
indexhead.tmpl font size jannybear Photopost Pro How Do I...? 4 February 18th, 2006 05:28 PM
Very strange problem glorify Installs and Upgrade - vBulletin 3.5.X 1 August 28th, 2005 01:22 PM


All times are GMT -5. The time now is 02:40 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0