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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

RKopacz’s picture

Gentle bump. Anybody have any thoughts on this?

Johnny vd Laar’s picture

Status: Active » Postponed (maintainer needs more info)

Hmm this is quite odd because that function exists in the nodeblock.module file. Can you verify that you have this function in nodeblock.module?

RKopacz’s picture

Thank you for your reply! Yes, it is there. I am wondering if it might be file permission issue? Current permissions on my machine are:

-rw-rw-r--  1  18092 2011-09-17 17:50 LICENSE.txt
-rw-r--r--  1    299 2013-07-20 21:20 nodeblock.info
-rwxr-xr-x  1  6553 2013-07-19 05:09 nodeblock.install
-rw-r--r--  1    410 2013-07-19 05:09 nodeblock.js
-rwxr-xr-x  1  22419 2013-07-19 05:09 nodeblock.module
-rw-r--r--  1   1110 2013-07-19 05:09 nodeblock.views.inc
-rw-r--r--  1  1484 2013-07-19 05:09 node--nodeblock.tpl.php
-rw-r--r--  1    582 2013-07-19 05:09 README.txt
RKopacz’s picture

By 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.

Johnny vd Laar’s picture

Status: Postponed (maintainer needs more info) » Fixed

I've added a little fix here:
http://drupalcode.org/project/nodeblock.git/commit/ad854a5

can you verify if this helps?

Status: Fixed » Closed (fixed)

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

tusik’s picture

Issue summary: View changes

Thanks Johnny. I confirm #5 fixed the issue and could finally perform the update.

dergachev’s picture

Version: 7.x-1.3 » 7.x-1.x-dev
Category: Support request » Bug report
Status: Closed (fixed) » Patch (to be ported)
FileSize
485 bytes

The 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.

dergachev’s picture

Status: Patch (to be ported) » Needs review

Queuing the patch in #8 for testing

Johnny vd Laar’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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