Template Parse Error

Started by Siirist, August 06, 2010, 11:49:54 PM

Previous topic - Next topic

Siirist

Hello, :)

When previewing Personal Messages while using Bright Forest theme or SMF Default Theme - Curve theme, there is a Template Parse error.

See attached SS.

I have no idea whatsoever of how to proceed.

Thanks are offered in advance.

Be Well,
Cloud 8)
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

live627

access the file directly and post the results

Siirist

Quote from: live627 on August 06, 2010, 11:57:08 PM
access the file directly and post the results

Thanks and here they are.

Be Well,
Cloud
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

live627

Um... no not the cached files. You need to click the link and then copy/paste the results

Siirist

Quote from: live627 on August 07, 2010, 12:54:54 AM
Um... no not the cached files. You need to click the link and then copy/paste the results

Wait, what??? :-\

Um, the link?, um, okay here ya go ;)

Be Well,
Cloud 8)
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Nick Whetstone

In the first file you attached:
Code (Find) Select
$txt['no_access'] = 'We're sorry. You are not permitted to access this section';
Code (Replace that with) Select
$txt['no_access'] = 'We\'re sorry. You are not permitted to access this section';

An apostrophe hadn't been escaped. :)
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

Siirist

#6
Quote from: Ha² on August 07, 2010, 01:30:33 AM
In the first file you attached:
Code (Find) Select
$txt['no_access'] = 'We're sorry. You are not permitted to access this section';
Code (Replace that with) Select
$txt['no_access'] = 'We\'re sorry. You are not permitted to access this section';

An apostrophe hadn't been escaped. :)

Ha²,

Thank you for your help with this. :)

I guess I just over-tired yesterday, because that was what I was looking for, but I was reading the code one word at a time and it became over-whelming. :-[

Even though I only had 4 hours of sleep, with you pointing this out and a little coffee, I realized that I could have used Notepad++ to find '  :P

While it may have been slow going, it would be faster than word by word. :D

Is there a faster way to find that error that I don't know?  I do not know. I will do a search for ' in the file for cache/lang_Errors_english_brightforest_22.php.  I also believe that I will stop using contractions like don't, I'll, won't, etc, etc. :)

Cloud 8)


EDIT ->
Okay, I just used your code and discovered that it was the first line of code. :-[   I changed it from 'We're sorry.... to 'We\'re sorry...
I also realized that it is futile to search for ' because it is used 1436 times in the file.
There must be a better way. 
Hmmmm....

Have tested and both files function normally (able to preview PMs while using SMF Default Theme - Curve, or Bright Forest theme). I bet you knew that.

Ha² thank you very much for your help!

Be Well,
Cloud 8)
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Advertisement: