Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When ctools_export sends an array of items to fetch to getmultiple, the items are keyed not by the items names, but by a standard 0-x number. Therefor, the following line will not work
unset($cids[$cid]);
The following patch, removes that line, and replaces it with
$cids = array_diff($cids, array_keys($results));
Which was copied from the APC module.
Comment | File | Size | Author |
---|---|---|---|
ctools_export_getmultiple_fix.patch | 419 bytes | batje | |
Comments
Comment #1
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedComment #2
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedI got this when I implemented this patch
PHP Fatal error: Declaration of DrupalFileCache::getMultiple() must be compatible with DrupalCacheInterface::getMultiple(&$cids) in sites/all/modulesfilecache/filecache.inc on line 66
Comment #5
ogi CreditAttribution: ogi commentedFixed (hopefully).