I don't know if it's realy an issue or not, so I post on the forum before create a ticket.
in my themes, I use extensionEnabled('plugin_name') rather class_exists('class_name') or function_exists('function_name').
with that, I have an issue with cacheManager after a new install.
in my themeoption.php file, I have these lines to support cacheManager plugin :
`
if (extensionEnabled('cacheManager')) {
$me = basename(dirname(__FILE__));
cacheManager::deleteThemeCacheSizes($me);
cacheManager::addThemeCacheSize($me, getThemeOption('thumb_size'), NULL, NULL, getThemeOption('thumb_crop_width'), getThemeOption('thumb_crop_height'), NULL, NULL, true);
if (getOption('use_galleriffic')) {
cacheManager::addThemeCacheSize($me, 85, NULL, NULL, 85, 85, NULL, NULL, true);
cacheManager::addThemeCacheSize($me, 525, NULL, NULL, NULL, NULL, NULL, NULL, false);
}
cacheManager::addThemeCacheSize($me, getThemeOption('image_size'), NULL, NULL, NULL, NULL, NULL, NULL, false);
}
`
after a new install, when I go first to options/theme, I have this fatal error :
`Fatal error: Class 'cacheManager' not found in /home2/avbo7291/public_html/zenphoto_test/themes/zpArdoise/themeoptions.php on line 57`
(line 57 is the line 3 of the code above)
If I go firt on plugins tabs and apply without any other actinos, I have no issue.
so, despite cacheManager plugin is loaded, cacheManager class is not loaded.
is there a way to avoid this behaviour?
is it an issue of cacheManager or extensionEnabled?