Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
By xavier19 on
Hello,
I upgraded my drupal 6 instalation into 7.24. The olny thing which doesn't work is php filter. The module is enabled, php format is set (php and change url into links is checked) but when I enter some php code, it display it as plain text.
What's wrong.
Idisabled and enabled the module, updated all modules to the nowest vesrsions, update database.
Please help.
Comments
Are you sure the text
Are you sure the text formatter for is set to "PHP code"?
Yes, I am. Also it was an
Yes, I am. Also it was an update, so I was working on 6
Also permissions are on to all groups.
It is possible the formatter
It is possible the formatter key was not updated correctly (was a number now a string), I would check the node (or block) with the PHP code to be sure.
I thouth it was something
I thouth it was something wrong on serwer side, but no. Single php file loaded to main directory works.
In node or block the code still not.
Nevest, could you explain
Nevest, could you explain what should I do in this case, please? What this mean - formatter key not updated?
Drupal 6 used a numeric key,
Drupal 6 used a numeric key, Drupal 7 uses a string. When I have seen similar behavior it was because the nodes/blocks using the PHP filter did not have the key updated correctly. This can be verified by looking a node or block where the PHP is not working, edit the node/block and check the format setting.