Running 4.7.6, and now I can't get a block with PHP to execute the PHP. The thing I changed recently was putting my site into maintenance mode and disabling all contributed modules. I have re-enabled all modules, but now PHP code in blocks does not execute.
Specifically, I have PHP code for Text Links Advertisements. Note: I am not using the TLA Drupal module.
(1) The obvious thing to check is for that the input format for "PHP code" has "PHP evaluator" checked as indicated here:
http://drupal.org/node/121326
...I made sure this was checked. There are no roles checked, this is restricted to administrator only.
(2) Next I checked "access control" and see "use PHP for block visibility" is not checked for any roles on the site. This should be administrator only. "administer filters" is not checked for any roles either, also administrator (me) only.
(3) When I put some text before or after the tags in the block, the block *is* displayed. Without any text outside the php tags, the block is invisible.
Text Link Ads has contacted me and informed me that I must restore the advertisements as soon as possible as they have already been purchased.
Comments
RESOLVED
This was my error. I added the Text Link Ads module but it was empty so I thought it wasn't working. Turns out there are Zero ads for my site that have currently been sold, so the Drupal block *should* be empty. I've sent a message to TLA asking why they don't send a message from their servers like "this advertising space is available" instead of leaving an (ugly) empty Drupal block.
NOTE/TIP: For anyone running TLA module on their Drupal site, unless you have ads that have been sold (which took me a few months from initial setup---despite TLA saying "1-2 weeks") then you will have to put up with an empty Drupal block on your site. If you hide the block, they will tell you that ads cannot be sold, a catch-22.