Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2009-01-06 23:00:06
- rvturnage
- New Member
- Registered: 2009-01-06
- Posts: 5
PHP error in taghandlers.php
Hi all…brand new to textpattern. just installed it yesterday. I’m trying to add some custom php code and get this error whenever I try:
Parse error: syntax error, unexpected ‘<’ in /usr/local/apache2/htdocs/textpattern/textpattern/publish/taghandlers.php(3082) : eval()’d code on line 1
Any ideas? Thanks in advance! I’m really digging how straightforward Textpattern seems to be!
rvt
Offline
Re: PHP error in taghandlers.php
Are you using txp:php
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Offline
#4 2009-01-07 01:02:33
- rvturnage
- New Member
- Registered: 2009-01-06
- Posts: 5
Re: PHP error in taghandlers.php
Yeah, I double checked that. Even cut and pasted from the textbook, just to be sure I coded it right. I’m using txp:php, and I’m not using php tags. I’m perplexed…
<txp:php>
echo "help";
</txp:php>
does not work. Gives me the same error.
Oddly enough, if I have an empty space before the echo statement, I get this error (& instead of <, and line 2 instead of 1):
Parse error: syntax error, unexpected ‘&’ in /usr/local/apache2/htdocs/textpattern/textpattern/publish/taghandlers.php(3082) : eval()’d code on line 2
Thanks for the suggestions. Got anymore ;)
rvt
Last edited by rvturnage (2009-01-07 01:02:54)
Offline
Offline
#6 2009-01-07 01:19:08
- rvturnage
- New Member
- Registered: 2009-01-06
- Posts: 5
Re: PHP error in taghandlers.php
That’s it! I was using it in an article and must have overlooked that it needed to be escaped if used in an article…works like a charm now!
Thanks, Gocom!
rvt
Last edited by rvturnage (2009-01-07 01:19:35)
Offline
Pages: 1