SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 25, 2012, 07:15:40 am

Login with username, password and session length
Members
Total Members: 10073
Latest: makablue
Stats
Total Posts: 28687
Total Topics: 4977
Online Today: 81
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 44
Total: 44
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 Go Down Print
Author Topic: Template Parse Error! after 3.0.25a install  (Read 760 times)
jstop
SMF Gallery Pro Customer
Newbie
*****
Offline Offline

Posts: 28



View Profile WWW
« on: November 19, 2011, 06:23:06 am »

THis is the error I get after installing SMFGallery3.0.25a

Template Parse Error!

There was a problem loading the /Themes/default/Gallery.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected '&', expecting T_VARIABLE or '$'

Hopefully someone can help

Also Since I tried several times I now have multiple "gallery" links in the top navigation, where do i remove them?
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #1 on: November 19, 2011, 09:05:56 am »

Can you attach your Gallery.template.php
Logged
jstop
SMF Gallery Pro Customer
Newbie
*****
Offline Offline

Posts: 28



View Profile WWW
« Reply #2 on: November 19, 2011, 09:34:22 am »

here
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #3 on: November 19, 2011, 09:39:56 am »

That file looks ok can you run this query on your database
Code:
REPLACE INTO smf_settings VALUES ('disableTemplateEval', 1);
Then try to review the page causing the error. It should then give you true error file and line number.
Logged
jstop
SMF Gallery Pro Customer
Newbie
*****
Offline Offline

Posts: 28



View Profile WWW
« Reply #4 on: November 19, 2011, 10:04:31 am »

phpMyadmin is telling me I need to select at least one column to display. I'm not good with Database stuff
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #5 on: November 19, 2011, 10:37:15 am »

There should be an sql window when switch into the database and just running the query in there should make it work.

If not there is a mod as well
http://custom.simplemachines.org/mods/index.php?mod=2054
Logged
jstop
SMF Gallery Pro Customer
Newbie
*****
Offline Offline

Posts: 28



View Profile WWW
« Reply #6 on: November 19, 2011, 10:49:13 am »

I installed the mod, now what do I look for?
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #7 on: November 19, 2011, 10:52:52 am »

Under Server Settings / Feature Configuration

Disable template eval check the screenshot for details on mod site.
Logged
jstop
SMF Gallery Pro Customer
Newbie
*****
Offline Offline

Posts: 28



View Profile WWW
« Reply #8 on: November 19, 2011, 10:58:07 am »

unchecked the box
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #9 on: November 19, 2011, 11:01:21 am »

Hmm it should checked though.

Also attach your index.template.php can fix the duplicate links.
Logged
jstop
SMF Gallery Pro Customer
Newbie
*****
Offline Offline

Posts: 28



View Profile WWW
« Reply #10 on: November 19, 2011, 11:04:10 am »

it was checked, I unchecked it
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #11 on: November 19, 2011, 11:13:33 am »

Well the gallery.template.php file looked ok.
The other files that could be messed up would be the themes/default/languages/gallery.english.php or modifications.english.php files.
Logged
jstop
SMF Gallery Pro Customer
Newbie
*****
Offline Offline

Posts: 28



View Profile WWW
« Reply #12 on: November 19, 2011, 11:18:38 am »

checked error
Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /home/bridg38/public_html/Themes/default/Gallery.template.php on line 1822

unchecked error

Template Parse Error!
There was a problem loading the /Themes/default/Gallery.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected '&', expecting T_VARIABLE or '$'
Logged
jstop
SMF Gallery Pro Customer
Newbie
*****
Offline Offline

Posts: 28



View Profile WWW
« Reply #13 on: November 19, 2011, 11:23:55 am »

here are the other files
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #14 on: November 19, 2011, 11:28:51 am »

Still need your index.template.php

Having a hard time looking at the gallery.templat.php file not sure if it was downloaded correctly since it adds an extra line after every line in the file and can find exactly the line number 1822 do to this.
Logged
Pages: [1] 2 Go Up Print 
« previous next »
Jump to:  

Recent
[May 24, 2012, 08:02:50 am]

[May 24, 2012, 04:11:41 am]

[May 21, 2012, 08:54:11 am]

[May 20, 2012, 11:06:52 am]

[May 20, 2012, 05:58:11 am]

[May 19, 2012, 06:16:58 pm]

[May 19, 2012, 05:42:37 pm]

[May 18, 2012, 03:08:38 pm]

[May 17, 2012, 06:07:46 pm]

[May 17, 2012, 02:22:07 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 4.757 seconds with 21 queries.