Drush commands fail with "Error: Call to undefined function module_exists()"

Created on 13 June 2018, over 6 years ago
Updated 5 August 2024, about 1 month ago

apc_drush_exit() causes the following error when some Drush commands like drush sql-query 'SELECT 1' are executed.

Error: Call to undefined function module_exists() in apc_drush_exit()

I guess that Drush does not fully load Drupal and the function is not available.

apc_drush_exit() should also check module_exists() is defined only after verifying DrupalApcCache::pendingRequests() does not return an empty array.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇳🇱Netherlands Jorrit

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024