I just upgraded from 5.x to 6.2. I did the upgrade, and it mostly went OK, but now I get this...

Parse error: syntax error, unexpected '>' in /home/.extra/webbly/(mydomain)/includes/common.inc(1537) : eval()'d code on line 1

I checked that line, and there's no '>' there, which means the problem is somewhere else.

Thoughts?

Comments

David Fisco’s picture

I'm having the same problem on my articles where I have chosen to embed PHP code in the body of the article. I have the PHP Filter module enabled and I check "PHP Code" in the input box, but it fails to evaluate as it did under 5.x.

David Fisco’s picture

I've tried a "dummy" PHP page and I found that having a body of

print 'hello, world!';
(note: Drupal won't format this correctly, it should have NO carriage returns.)

will parse correctly, but

print 'hello, world!'; 

throws an error.

David Fisco’s picture

Go to Administer -> Input formats -> Click on PHP Code's configure link.

Under Filters, make sure ONLY PHP evaluator is checked.

PHP code seems to work fine.

euchrid9’s picture

genius, and thankyou - saved me a lot of time!
[euchrid]
www.euchrid.co.uk