Posted by mdrummond on July 31, 2012 at 3:20pm
5 followers
Jump to:
| Project: | Responsive images and styles |
| Version: | 7.x-2.0-beta2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
After installing breakpoints beta 2 and resp_img beta 2, I get the following error when I go to the settings pages for responsive images:
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'resp_img_admin_settings' was given in drupal_retrieve_form() (line 795 of /includes/form.inc).
Comments
#1
Strange, it is no longer in the 7.x-2.x version, was resp_img 7.x-1.x installed before? If so did you uninstall it, because there's no upgrade path (for the moment)
#2
That's probably the issue. I'll uninstall and then reinstall.
#3
There needs to be a warning on the main page about installing 2.x. I uninstalled resp_img, then tried reinstalling 2.x. Same problem. Uninstalled. Reuploaded 1.3. Tried to uninstall. Wasn't able to do so. (It doesn't look as if there is an uninstall function.) Manually deleted the resp_images_suffix table. Reinstalled 2.x. Now I am still getting the same error as before.
#4
Project page already says: "This is a complete rewrite, do not try to upgrade from 7.x-1.x to 7.x-2.x, this will not work and break your site"
Did you clear all caches,? or do you have a copy somewhere else?
Can you do a find on the file system to look for any file containing resp_img_admin_settings
grep -r resp_img_admin_settings *on linux / command lineMarked #1706592: Undefined index as duplicate
#5
Getting White Screen of Death when trying to clear cache. When I enable error reporting, I get the following:
Fatal error: Class 'RespImgPageCache' not found in /includes/cache.inc on line 31
#6
So RespImgPageCache is defined in 1.3 in the cache.inc file. Clearly there is some holdover lingering even though I've done my best to purge 1.3 from the system. Any suggestions on how to get rid of this?
#7
From my reading, the basic problem is that RespImgPageCache needs to be removed from the registry. I've been unable to rebuild the registry, and I haven't been able to find a way to manually remove this from the registry. Any suggestions?
#8
You can try downloading 7.x-1.x and extracting the cache.inc file to the resp_img folder, it assume it will work again.
Try clearing your cache using drush (drush cc all) and if all goes well
Delete the variable (drush vdel cache_class_cache_page -y) and clear cache again (drush cc all)
If that fails have a look at registry_rebuild
All the above should have happened when you uninstalled 7.x-1.x version, but I'll try to reproduce it to see what's going on.
#9
I did some more testing, the caching variable is reset the moment you disable resp_img 7.x-1.x, so try deleting the record 'cache_class_cache_page' from the variable table.
#10
Clearing cache and registry rebuild didn't work, nor did deleting cache_class_cache_page from the variable database. To fix this, I ended up having to restore the database.
One I restored to before I installed 2.x, I was able to uninstall 1.3, then install 2.x, without any registry errors or caching problems.
#11
Let's hope it doesn't happen again :/
#12
If it does just execute this peace of code (in devel/php). I had the same error when upgrading from 7.x-1.x to 7.x-2.x (because there is no upgrade path yet):
<?php$cache_class_cache_page_old = variable_get('resp_img_cache_class_cache_page_old');
if (isset($cache_class_cache_page_old)) {
variable_set('cache_class_cache_page', $cache_class_cache_page_old);
}
else {
variable_del('cache_class_cache_page');
}
variable_del('resp_img_cache_class_cache_page_old');
?>
#13
#12 works great for this problem.
#14
Upgrade from 1.x to 2.x
There now is an upgrade path from 1.x to 2.x.
To upgrade, follow these steps:
#15
Automatically closed -- issue fixed for 2 weeks with no activity.