I got this error when updating from 7x-2.x-dev to 7.x-2.0-alpha1:

PHP Fatal error: Function name must be a string in sites/all/modules/geofield/geofield.install on line 20

Comments

danharper’s picture

I also have this problem, I had to rollback to dev.

phayes’s picture

Status: Active » Fixed

I just fixed this now in commit bb4846a69aa7c7514cf4d0860b8e3881b2855198. Can you try and re-open if it's the case?

Brandonian’s picture

Made of couple of commits to clear up edge cases, along with comment notes. Upgrades should be good to go.

If this still doesn't work, I had luck with debugging by manually clearing out my cache tables.

http://drupalcode.org/project/geofield.git/commit/82c65f1
http://drupalcode.org/project/geofield.git/commit/ecf8e57

cesareaugusto’s picture

I got the very same issue!

@phayes: How did you fix it?
@Brandonian: How to manually clear out the cache tables?

akalam’s picture

I can confirm this is fixed in 2.x-dev, but you must manually clear cache

@cesareaugusto you can do this with phpmyadmin:

- backup your database, since the following action cannot be undone
- open phpmyadmin and go to the table list page
- check the "cache" table, and also check all tables with the "cache_" prefix.
- Go to the page bottom for seen the options, and choose "with selected tables > truncate"
- Ensure that all tables begin with "cache_" prefix and you are not truncating any other table, and click "confirm"
- go back to your update.php page

cesareaugusto’s picture

@phayes & Brandonian: Thank you for fixing! It works now!
@desarrollo2.0: Thanks for the quick tutorial mate!

Medraq’s picture

Thanks lads for the quick work :o)

I used Navicat to view the tables. Deleting the cache just meant selecting all the "cache_xxx" tables (& "cache" itself) & choosing "Truncate" from the right-click menu.

The change log for the two updates you made to the offending file guided me through updating it in a text editor without issue.

Thanks again :o)

Status: Fixed » Closed (fixed)

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