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.
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...
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on Parse Error in displaylinks.tpl
Beginner
Usergroup: Member
Joined: Dec 21, 2004
Total Topics: 2
Total Comments: 5
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...
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
yes
Beginner
Usergroup: Member
Joined: Dec 21, 2004
Total Topics: 2
Total Comments: 5
yes
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
I believe I've got this fixed now. Extract and upload the attached file.
[file removed due to bug]
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Nevermind, that change caused it to die in situations where there are no subscribers.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
This seems to work everywhere.
Attached Files:
Beginner
Usergroup: Member
Joined: Dec 21, 2004
Total Topics: 2
Total Comments: 5
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...