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

seanr - September 21, 2009 - 18:22
Status:active» needs review

This patch appears to solve it.

AttachmentSize
coder_upgrade.main_.inc_.patch 820 bytes

#2

matason - September 22, 2009 - 07:43

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.

AttachmentSize
583734_coder_upgrade_drupal_function_exists.patch 1.87 KB

#3

solotandem - September 24, 2009 - 12:37
Assigned to:Anonymous» solotandem
Status:needs review» fixed

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

matason - September 26, 2009 - 11:13

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

System Message - October 10, 2009 - 11:20
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.