Closed (fixed)
Project:
Virtual Sites
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
21 May 2012 at 22:05 UTC
Updated:
24 May 2012 at 11:51 UTC
Hello,
I wanted to point that there is a bug when validating via PHP:
Fatal error: Call to undefined function drupal_eval() in /home/www/01a386fa6b1131e1ec7de77914a9d962/web/preprod/sites/all/modules/virtual_site/condition/virtual_site_condition.basic.inc on line 98
Comments
Comment #1
djg_tram commentedFixed in the current dev.
Comment #2
Clément commentedI'm sorry but for me drupal_eval() function is still not defined in the latest dev.
Comment #3
djg_tram commenteddrupal_eval() is not defined but it has been renamed to php_eval(). Note that d.o doesn't immediately generate the new -dev package when a source file is fixed. But I've just tried it, the one dated 2012-May-23 already has that fix, so you might just need to download it once more.
Comment #4
Clément commentedThank you but I have exactly the same problem with php_eval():
Fatal error: Call to undefined function php_eval() in /home/www/01a386fa6b1131e1ec7de77914a9d962/web/preprod/sites/all/modules/virtual_site/condition/virtual_site_condition.basic.inc on line 98
Comment #5
djg_tram commentedI really didn't understand it first because it worked for me, then the penny dropped. php_eval(), for safety purposes, is not enabled by default. You need to enable the core PHP filter module first to get it. I added a warning to VS now if this module is not enabled. Download the new -dev when it becomes available but even until then, just enable this core module and it should be all right.
Comment #6
Clément commentedI am awfully sorry. I forgot to enable this module ... now it works! ;-)
Comment #7
djg_tram commented