Closed (works as designed)
Project:
Spaces
Version:
7.x-3.0-alpha1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
17 Apr 2012 at 08:32 UTC
Updated:
28 May 2012 at 18:43 UTC
Enabling "spaces taxonomy" with ctools in the latest version caused the following error message in all the pages of the site:
Warning: file_exists() expects parameter 1 to be string, array given in ctools_get_plugins() (line 253 of /opt/development/test/sites/all/modules/ctools/includes/plugins.inc).
I think that in general the mistake should be fixed in ctools , line 253 should be instead of
if ((is_array($cache->data['path']) && file_exists($cache->data['path']['file'])) ||
file_exists($cache->data['path'])) {checking if the value is string:
if ((is_array($cache->data['path']) && is_string($cache->data['path']['file']) && file_exists($cache->data['path']['file'])) ||
(is_string($cache->data['path']) && file_exists($cache->data['path']))) {
BUT- maybe the "spaces taxonomy" sends incorrect parameter and you can correct it
thanks!
Miriam
Comments
Comment #1
webflo commentedPlease update to latest ctools dev. See #1371700: CTools adds cached plugins with wrong paths during hook_registry_files_alter() in multisite systems for more information.
Comment #2
mirian commentedDo you mean "7.x-1.x-dev" from 22.5.2012?