Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Getting a persistent error on upgrade. I've tried using the current release as well as with the dev versions of the module, and I am getting the same error every time:
Call to undefined function nodeblock_type_enabled() in /opt/lampp/htdocs/nysec_old/sites/all/modules/nodeblock/nodeblock.install on line 187
Not enough of an expert on PHP to know how to get around it. I have looked around on Google for a work around, can't seem to find one.
Any help would be appreciated.
Comment | File | Size | Author |
---|---|---|---|
#8 | nodeblock-nodeblock-update-7102-fix-2066233-7.patch | 485 bytes | dergachev |
Comments
Comment #1
RKopacz CreditAttribution: RKopacz commentedGentle bump. Anybody have any thoughts on this?
Comment #2
Johnny vd Laar CreditAttribution: Johnny vd Laar commentedHmm this is quite odd because that function exists in the nodeblock.module file. Can you verify that you have this function in nodeblock.module?
Comment #3
RKopacz CreditAttribution: RKopacz commentedThank you for your reply! Yes, it is there. I am wondering if it might be file permission issue? Current permissions on my machine are:
Comment #4
RKopacz CreditAttribution: RKopacz commentedBy the way, I have the dev version of the module on the site. upgrade script failed with both the current recommended version and the dev version.
Comment #5
Johnny vd Laar CreditAttribution: Johnny vd Laar commentedI've added a little fix here:
http://drupalcode.org/project/nodeblock.git/commit/ad854a5
can you verify if this helps?
Comment #7
tusik CreditAttribution: tusik commentedThanks Johnny. I confirm #5 fixed the issue and could finally perform the update.
Comment #8
dergachev CreditAttribution: dergachev commentedThe fix in #5 fixed nodeblock_update_7103, but forgot about nodeblock_update_7102 which has the same error.
The attach patch fixes it and has been tested to be working.
Comment #9
dergachev CreditAttribution: dergachev commentedQueuing the patch in #8 for testing
Comment #10
Johnny vd Laar CreditAttribution: Johnny vd Laar commentedI've commited the fix here:
http://drupalcode.org/project/nodeblock.git/commitdiff/d03a97df96de478b8...
Thank you!