Chachacha
12-14-2007, 07:55 PM
I was testing something out in my navigation/breadcrumbs template and now I'm getting an error. Heres exactly what happened...
I went into the navbar template and removed:
<!-- nav buttons bar -->
and everything in between
<!-- / nav buttons bar -->
I copied the entire navbar template and pasted it to wordpad and saved. When I was finished testing things out, I decided to put the navbar code back the way it was... so I copied it from wordpad and pasted it back in the navbar template. Now I get this error:
The following error occurred when attempting to evaluate this template:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/****/public_html/forums/includes/adminfunctions_template.php(3596) : eval()'d code on line 64
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Now if I go back and remove:
<!-- nav buttons bar -->
and everything in between
<!-- / nav buttons bar -->
the error goes away... but then my navbar links are GONE!
What happened? I didn't alter the code within the template at all. I just temporarily removed it and then put it back exactly the way it was.
What can I do to repair this (other than using a backup)?
--------------- Added 1197670243 at 1197670243 ---------------
Whew! I fixed it. The problem was that wordpad had "wordwrap" enabled. I disabled wordwrap and then pasted the
<!-- nav buttons bar -->
and everything in between
<!-- / nav buttons bar -->
code back in its place in the template and it works fine now.
I went into the navbar template and removed:
<!-- nav buttons bar -->
and everything in between
<!-- / nav buttons bar -->
I copied the entire navbar template and pasted it to wordpad and saved. When I was finished testing things out, I decided to put the navbar code back the way it was... so I copied it from wordpad and pasted it back in the navbar template. Now I get this error:
The following error occurred when attempting to evaluate this template:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/****/public_html/forums/includes/adminfunctions_template.php(3596) : eval()'d code on line 64
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Now if I go back and remove:
<!-- nav buttons bar -->
and everything in between
<!-- / nav buttons bar -->
the error goes away... but then my navbar links are GONE!
What happened? I didn't alter the code within the template at all. I just temporarily removed it and then put it back exactly the way it was.
What can I do to repair this (other than using a backup)?
--------------- Added 1197670243 at 1197670243 ---------------
Whew! I fixed it. The problem was that wordpad had "wordwrap" enabled. I disabled wordwrap and then pasted the
<!-- nav buttons bar -->
and everything in between
<!-- / nav buttons bar -->
code back in its place in the template and it works fine now.