Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-11-26 15:59:09

DigitalRealm
Member
From: Greenville, SC
Registered: 2006-07-22
Posts: 139
Website

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

#2 2006-11-26 16:19:43

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

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

#3 2006-11-26 16:43:57

DigitalRealm
Member
From: Greenville, SC
Registered: 2006-07-22
Posts: 139
Website

Re: Getting error that I don't understand!

I copied that code directly from the FAQ, so it is an error there also.

FAQ for excerpts

That did not fix the error though so it must be something else I am overlooking.

Offline

#4 2006-11-26 18:05:02

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Getting error that I don't understand!

<txp:title/> should be <txp:title />

Offline

#5 2006-11-26 19:14:39

DigitalRealm
Member
From: Greenville, SC
Registered: 2006-07-22
Posts: 139
Website

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

#6 2006-11-26 19:27:55

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

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

#8 2006-11-27 03:24:16

DigitalRealm
Member
From: Greenville, SC
Registered: 2006-07-22
Posts: 139
Website

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

#9 2006-11-27 05:10:19

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

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

#10 2006-11-27 12:58:36

DigitalRealm
Member
From: Greenville, SC
Registered: 2006-07-22
Posts: 139
Website

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

Board footer

Powered by FluxBB