Fatal error: Call to undefined function drupal_function_exists()
seanr - September 21, 2009 - 18:07
| Project: | Coder |
| Version: | 7.x-1.x-dev |
| Component: | Coder Upgrade |
| Category: | bug report |
| Priority: | critical |
| Assigned: | solotandem |
| Status: | closed |
Description
I get the folliwn gwhen attempting to view the Coder Upgrade page:
Fatal error: Call to undefined function drupal_function_exists() in /var/www/vhosts/drupal7.webolutionary.com/htdocs/sites/all/modules/coder/coder_upgrade/conversions/coder_upgrade.main.inc on line 51
#1
This patch appears to solve it.
#2
Hi Sean, I spotted two other occurrences of drupal_function_exists() in the same file, it seems pretty clear that this function is not in Drupal core so replacing it with function_exists() seems like the fix.
drupal_function_exists also occurs as an array value in the function "coder_upgrade_callback_function_calls", coder_upgrade.other.inc
case 'function_exists':$name['value'] = 'drupal_function_exists';
break;
I've not had time to look into what this code is doing and what needs to happen here.
#3
Fixed in next dev release.
Matason, the case statement you refer to is for the core change to use drupal_function_exists instead of function_exists. The former function was part of the new core registry API, but this feature has been reverted. The case statement change has been commented out and will eventually be removed.
#4
I suspected as much but I couldn't find any docs regarding the introduction of drupal_function_exists() and no-one took me up when I mentioned it in #drupal - glad it's fixed :)
#5
Automatically closed -- issue fixed for 2 weeks with no activity.