Active
Project:
PHP
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Dec 2011 at 09:26 UTC
Updated:
6 Oct 2013 at 12:37 UTC
On every page in my D7 installation I see this error:
"Fatal error: Call to undefined function db_result() in /home/sites/vandenzen.nl/public_html/drupal/modules/php/php.module(74) : eval()'d code on line 38"
Because I have no idea where to look for this call, it would be nice to see some more information as where it originated from.
Searching the module files, I found a suspect that uses db_result().
// $Id: views_plugin_display.inc,v 1.27.2.13 2010/06/17 02:46:53 merlinofchaos Exp $
But removing the views module didn't solve the problem.
I am not the only one having this problem: http://www.lukaswhite.com/blog/post/2011/drupal-6-install-profile-fail-c...
Comments
Comment #1
robcolburn commentedWow, 2011. Yeah, this is problematic to the core of the way Drupal relies on eval()'d database code. PHP 5.2 allows for a shutdown function and is below the min req'd in D8, so I imagine that something like this may be possible in D8. If you were still working on the site, I'd recommend inserting a backtrace directly before the eval call, and then exit. D7 out of the box would not do that anymore.
Comment #2
gregglesAs a feature this belongs on the 8.x branch where php is a contrib.