Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Getting error that I don't understand!
Hey all, I am getting the following error that I don’t quite understand…..
Parse error: parse error, unexpected '<' in /home/content/R/e/n/Renfrewhost109/html/textpattern/publish/taghandlers.php(2688) : eval()'d code on line 1
Anyone know what this may be? I am getting this when I use this section of code…..
<txp:if_article_list>
<txp:permlink><txp:title/></txp:permlink>
<txp:excerpt />
</txp:else />
<txp:body />
</txp:if_article_list>
Offline
Re: Getting error that I don't understand!
</txp:else /> should be <txp:else />:
<txp:if_article_list>
<txp:permlink><txp:title/></txp:permlink>
<txp:excerpt />
<txp:else />
<txp:body />
</txp:if_article_list>
Last edited by jm (2006-11-26 16:20:17)
Offline
Re: Getting error that I don't understand!
I copied that code directly from the FAQ, so it is an error there also.
That did not fix the error though so it must be something else I am overlooking.
Offline
Re: Getting error that I don't understand!
<txp:title/> should be <txp:title />
Offline
Re: Getting error that I don't understand!
Ruud, that was not the problem either.
This is line 2688 of the taghandlers.php…..
eval($thing);
Is something wrong with that?
Last edited by DigitalRealm (2006-11-26 19:16:25)
Offline
Re: Getting error that I don't understand!
That’s the part that deals with the <txp:php> ... </txp:php> tag
You’ve got an error in the code inside that tag.
Offline
#7 2006-11-27 00:09:35
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Getting error that I don't understand!
As Ruud has pointed out, the error you’re getting is not being caused by the portion you’ve posted, but by custom PHP you’ve placed within the Textpattern php tag.
By the looks of it, you’ve got opening and closing tags (<?php ?>) in there – you want to remove them.
Offline
Re: Getting error that I don't understand!
Ok got it, so can I not insert php code inside of an article tag? I took the code out and placed into its own form and it works fine with no errors. So I assume that php code cannot be placed in an article form?
Offline
Re: Getting error that I don't understand!
Have you tried just getting rid of the opening and closing php (?php and php?) tags and just leaving the code there?
Offline
Re: Getting error that I don't understand!
tmacwrig, I did try that to see it would work and it did not work. It broke the page quite horribly! Putting the code into its own form is fine for now, and actually a bit easier to keep up with.
Offline
Pages: 1