Webmastersite.net
Register Log In

Parse Error in displaylinks.tpl
Appeared after I subscribed to a category

Comments on Parse Error in displaylinks.tpl

Marcos Avila
Beginner

Usergroup: Member
Joined: Dec 21, 2004

Total Topics: 2
Total Comments: 5
1 of 2 people found this comment helpful
Posted Dec 21, 2004 - 7:11 PM:

I've just recently installed WSN Links and I'm using multilingual template for Portuguese. Here's the error information that I received after subscribing to a category:
If you are not the administrator of this site, please report this page to the administrator. If you are the administrator, please pay careful attention: You have a parse error in your template templates/multilingual/displaylinks.tpl (or perhaps in your header or footer) which you need to repair before this page can be displayed correctly. The error is picked up on by php at line 129 of the output.
This is what the problematic area of the template looks like during parsing:
Line #124: Home > Aqua Portal > Gerais
Line #125:
Line #126:
Line #127:
Line #128:
Line #129: [Descadastrar desta Categoria]


I followed the procedure described in the Parse Error troubleshooting and apparently the problem is with line #128 above, because of the following IF in the template:




I've made a few simple customizations on the template, such as the one in line #124 above. Only the category that's subscribed to generates the error, and only on this installation. I have another intallation using the default templates for English and that part of the code is exactly the same, but no errors appear after subscription.

Thanks in advance for any help...
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
1 of 2 people found this comment helpful
Posted Dec 23, 2004 - 12:22 AM:

yes
Marcos Avila
Beginner

Usergroup: Member
Joined: Dec 21, 2004

Total Topics: 2
Total Comments: 5
1 of 3 people found this comment helpful
Posted Dec 23, 2004 - 7:34 PM:

yes
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
1 of 2 people found this comment helpful
Posted Dec 27, 2004 - 10:10 AM:

I believe I've got this fixed now. Extract and upload the attached file.

[file removed due to bug]
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
2 of 4 people found this comment helpful
Posted Dec 27, 2004 - 2:44 PM:

Nevermind, that change caused it to die in situations where there are no subscribers.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
1 of 2 people found this comment helpful
Posted Dec 28, 2004 - 4:29 PM:

This seems to work everywhere.

Attached Files:
Marcos Avila
Beginner

Usergroup: Member
Joined: Dec 21, 2004

Total Topics: 2
Total Comments: 5
1 of 1 people found this comment helpful
Posted Jan 13, 2005 - 10:21 PM:

Sorry it took so long to get back to you, but updating that conditionals file didn't solve the error on my script. I guess I'll just have to deactivate this feature. But thanks anyway for trying to solve it...
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.