I'm getting the following error when updating ctools through drush, im running 6.x-1.0 right now, trying update to 6.x-1.2
--
Project ctools was updated successfully. Installed version is now 6.x-1.2.

Fatal error: Call to undefined function ctools_static() in /webdocs/www/public_html/sites/all/modules/ctools/includes/export.inc on line 83
Drush command could not be completed.
--

Not sure whats going on.

Comments

merlinofchaos’s picture

Status: Active » Fixed

ctools_static() should be defined on line 134 of ctools.module; if not you somehow have an incomplete upgrade.

Also definitely not 1.0 as static was introduced much more recently.

Status: Fixed » Closed (fixed)

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

rupl’s picture

Merlin, I ran across this exact same error (upgrading via Drush, CTools 1.0 -> 1.2 among other things) and I've verified that &ctools_static() is exactly where you said it is. Although it aborted the DB update in Drush, after running it manually, everything seems ok. Just wanted you to know it may be occurring even with a standard upgrade.

PHP Fatal error:  Call to undefined function ctools_static() in [...]/sites/all/modules/ctools/includes/export.inc on line 83

Fatal error: Call to undefined function ctools_static() in [...]/sites/all/modules/ctools/includes/export.inc on line 83
Drush command could not be completed.
klynch3’s picture

I have the same error. I installed the ctools module to go with the feeds module and as soon as I enabled them, I got a white screen and this error.

klynch3’s picture

Disregard. I fixed my issue with the latest version of ctools:
http://drupal.org/project/ctools