Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » Serious Problem

#1 2006-03-14 02:13:12

Gena Wenli
Member
From: Ohio, USA
Registered: 2006-01-26
Posts: 34

Serious Problem

When I go to any page from my TXP directory, I see this:
Parse error: parse error, unexpected $ in /home/mountvie/public_html/theatre/textpattern/publish.php(934) : eval()’d code on line 42

I’ve replaced every file (except config.php) in my /textpattern directory with fresh ones, but I’ve still got the problem.

G

Offline

#2 2006-03-14 02:31:35

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Serious Problem

You have some PHP code or <? php .. ?> tags in one of your templates, forms or articles.


Alex

Offline

#3 2006-03-14 02:32:49

Gena Wenli
Member
From: Ohio, USA
Registered: 2006-01-26
Posts: 34

Re: Serious Problem

And I’m not…?
How do I get around this?

G

Offline

#4 2006-03-14 02:40:09

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Serious Problem

What have you got for your custom field names (advanced admin prefs)?

Never mind, Alex pointed out I was looking at the wrong release.

Offline

#5 2006-03-14 02:40:14

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Serious Problem

Take it out, or fix it. That code is causing the error.

If you need to use PHP in a template or article, this FAQ explains how.


Alex

Offline

#6 2006-03-14 14:58:21

Gena Wenli
Member
From: Ohio, USA
Registered: 2006-01-26
Posts: 34

Re: Serious Problem

Thanks, I’ve fixed it. It seems wierd that as long as I’ve been using TXP, I’ve never needed PHP until now. Anyway, thanks everyone.

G

Offline

  1. Index
  2. » Archives
  3. » Serious Problem

Board footer

Powered by FluxBB