I enabled the "php-filter" module, set permissions to administrator, created a new "basic page" with the following php-content in the body:

print "Hello, world!";

But the preview of the "basic page" and the "basic page" itself did not show anything.
The same problem I have had with dev-7.x-0.8 plus 6 and dev-7.x-0.8 plus 10

For comparison drupal core 7.22 works with "php-filter" as expected.

Comments

bart.hanssens’s picture

Assigned: Unassigned » bart.hanssens

Strange, seems to work on my test machine..
Are there any warnings/errors in the status report (admin/reports/status) ?

Metulski’s picture

StatusFileSize
new35.25 KB
new34.15 KB

I attached my "status report" and my "recent log messages" but I could not find any suspicious entries.
The "HTTP request status Fails" error cannot be the reason because this error is shown on my naked working drupal core installation, too.

Please note that my domain runs on php-5.4.13 and I have seen this comment on the ferry project site:
Upon installation on SQLite + PHP 5.4, a lot of Illegal string offset 'field' in DatabaseCondition->__clone() warnings are shown, see also http://drupal.org/node/1483986

I have never tryed to run ferry with enabled php-filter on my php-5.3.x installation before.

bart.hanssens’s picture

Thanks for testing. I've been able to replicate the problem with a PHP 5.4 XAMP, so I'll dig into it...

bart.hanssens’s picture

StatusFileSize
new22 KB

It seems that the PHP evaluator must be enabled in admin/config/content/formats/php_code.

(Can be reached via admin menu, Configuration > Content Authoring > Text Formats, then click on PHP code

Metulski’s picture

That's it!
Thank's for your help!

kuldeep kaushik’s picture

i am using recruiter drupal 7 but php filter is not working in it after selecting php code as text format. please help