By droach on
I have just upgraded my Drupal 5.1 installation to Drupal 6.8. Everything seems to be fine except that it will not render my previously created custom php pages. I have determined that if the php tags are on the same line it works but if there is a carriage return anywhere in the code I get a parse error. For example, this code works fine:
<?php phpinfo(); ?>
but the code below gives the following error:
"Parse error: syntax error, unexpected '<' in .../includes/common.inc(1641) : eval()'d code on line 1."
<?php phpinfo();
?>
Suggestions?
Many thanks
Comments
Go to admin/settings/filters
Go to admin/settings/filters and configure the "PHP code" input format. Check the filters which it contains, and make sure that only the "PHP evaluator" filter is enabled, not the line break converter or anything else.
Fixed.
That did it. Many many thanks!
thanx
After searching for 2 hours, found this -> thanx
Fixed this for me as well
Thanks for the post.
Totally fixed my problem.
Parse error: syntax error, unexpected /includes/common.inc(1641) : eval()'d code on line 1.
The issue was after the upgrade the filter for php was changed.
It worked
Thank you very much for this tip - it worked for me.
Vinay http://www.vinayras.com