When updating to 7.x-1.2 on PHP 5.3 I'm getting the following fatal:

Argument 1 passed to _range_update_instances() must be an instance of callable, string given, called in range.install on line 109 and defined in _range_update_instances() (line 54 of range.install).

Problem seems to arise form the fact that PHP 5.3 doesn't support the callable type hint provided in _range_update_instances().

Using call_user_func() within _range_update_instances() got the updates processed without issue - from what I have been able to test. I'll post the patch below.

Comments

feng-shui’s picture

This patch got the update to run, but it was run on a site with no range fields, so I haven't been able to test that the updates were performed successfully.

  • Feng-Shui authored f695814 on 7.x-1.x
    Issue #2424035 by Feng-Shui: Fix module update process for PHP versions...
taran2l’s picture

Status: Active » Fixed

@Feng-Shui, thanks for your patch!

Status: Fixed » Closed (fixed)

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