Posted by bnicholo on May 11, 2011 at 7:08pm
17 followers
| Project: | Image Picker |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | major |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Hello,
I after installing 2.13 (and also the newest -dev version to see if that helped) i lose the image picker when i go to create content. I can get it back by going to the admin page for imagepicker and hitting save configuration, but whenever I manually clear cache, it disappears again. By disappears, i mean literally in the create content area there is just a big blank space where image picker is supposed to be.
Any thoughts?
Thanks,Blake
Comments
#1
As I cannot replicate this behaviour, I cannot help. Please provide more information, eg:
Have you tried any other themes?
What do the logs say?
What happens on other browsers?
What happens if you type something like
http://(your domain)/imagepickerdirectly into the location bar of your browser?There is clearly something wrong with your setup, this needs to be fixed.
#2
I have a similar problem. However, it appeared likely after the upgrade to Drupal core 6.22. Checked in different browsers for different themes and different sites with a different set of modules. At http:// (your domain) / imagepitsker opens a blank page. In the logs with nothing written.
#3
Today I found a site on my server which persisted in refusing to show the imagepicker iframe and the logs showed that the culprit was ctools which the zen theme was attempting to use, it was calling 'ctools_menu_primary_local_tasks' which was not loaded although it does exist. I commented out the lines in the zen template.php and all is well again.
Wether this is the problem that other people are having is anyone's guess, this is not the first time I have had problems with ctools.
#4
Further to the previous comment it turns out that the zen theme (rather old 1.x) was not loading ctools correctly so I copied the method used in zen 2.x into 1.x and that works too.
#5
I'm having the same issue using the Marinelli theme. Blank iframes, and blank http://(your domain)/imagepicker.
It happens every now and then, mostly after updating modules or running databases maintenance... I haven't found a reliable way to get it back though I can easily get rid of the problem permanently by disabling the CKEditor wysiwyg module.
in the log I see entries:
Theme key "imagepicker_quota_message" not found.
Theme key "imagepicker_iframe" not found.
Theme key "imagepicker" not found.
I am running Drupal core 7.2 and latest CKEditor (7.x-1.2). Both were rolled onto the site last Sunday, and to be truthful I don't remember having the problem before, though the site was really only semi-active (pre-launch) for a couple of weeks at best using core 7.0 and a now superseded CKEditor.
I hope that helps, let me know if you nee more info.
#6
I have just tried D7.2, latest ckeditor module 7.x-1.2 with ckeditor 3.6 and Imagepicker is there and inserts OK, tried with zen, genesis, marinelli and bartik, all work (marinelli looks awful but that's just a templating issue)
I didn't even need to flush cache (with devel)
So sorry, I can't replicate this ;-(
#7
I've got this problem too with Drupal 7, seems to have happened since caches cleared. Thinking it was to do with themes, I tried to get Drupal to recreate the theme caches by visiting the themes setting pages (for my admin theme and my site theme) and saving the settings, this changed the /imagepicker page from blank to what look like eight bit characters - not great! Uninstalling and reinstalling the module brings imagepicker back to the pink version again.
I'm wondering if we all have the admin_menu in common? Is there a possible confusion as to which theme the keys are being created in or called from?
Searching Drupal.org has other people reporting theme key issues with the Bartik theme?
#8
I had a similar issue where imagepicker would display an empty white box in the add content page regardless of cache. Disabling admin_menu seems to have resolved the issue.
#9
Exactly the same problem here on Drupal 6 vers 6.19
After clearing the cache and migrating to a new site,
I was left with a blank empty white box where the ImagePicker iFrame
should have been. This is using Garland theme.
Using Chrome.
Temporarily solved by going to Site Config and just re-saving the ImagePicker
setup configuration.
Then it works, but less than ideal.
BTW, I am not running any kind of WYSIWYG editor.
Not Ctools, not CK Editor, not anything.
#10
yes, this is very annoying. I get emails from the site owner every week or so to tell me ImagePicker is broken. In my experience, the problem triggers every now and then after clearing cache. I can resuscitate it with one or more cache clearing exercise. So completely random in how it comes as well as how it goes.
... I'm seriously thinking of abandoning the module for something more reliable. Shame because when it works it is just perfect for the task!
#11
If the Imagepicker Iframe shows blank on the add/edit node page then this has to be because it failed to complete due to a PHP error and this should be written to the php log providing that has been set up correctly. PHP notices and warnings will not stop rendering from completing.
So far the only issue (#4) I have been able to pin down has been when using the zen theme version 6.x-1.2 in combination with ctools, this I was able to fix by adding
ctools_include['menu'];immediately after line 102 in template.php.Zen 6.x-2.x theme has this fix already.
It also occurred on one site just after upgrading to Drupal 6.22, a full flush fixed that. I don't know why but caching in D6 is not as robust as in D7.
So I still need more information....
#12
OK, I will try your theme fix with Marinelli. I'll confirm in a couple of weeks whether this (seemingly) resolves the matter for me.
I am on D7 btw.
EDIT: at a glance I don't think this fix is relevant to DP 7 compatible themes... nevermind.
#13
No this is probably not relevant to DP 7 compatible themes, I tried Marinelli and it worked, the main thing is to ensure that PHP logging is working properly, I'm sure that the answer will be found in a clash elsewhere, if it lay in Imagepicker code it would happen all the time. I can't fix what I can't reproduce.
#14
I'm not sure if you changed something in ImagePicker, or it's the Marinelli latest beta I just rolled onto our site, but the ImagePicker iFrame in the content creation admin overlay is no longer transparent (i.e showing through the site background). I'm guessing the second based on http://drupal.org/node/185969/release
... I prefer it that way but that's not my point, but I thought, maybe, the problem could be related to the admin overlay, and that may be why you could not reproduce? So to clarify, Marinelli theme up to 7.x-3.0-beta10 had a show through background, 7.x-3.0-beta11 has a uniform admin overlay. The Marinelli team has not updated the 6.x version of their theme in 2 years now, but I thought that maybe comparing the 2 builds above would shed some light on a *possible* cause?
Anyway, just a note, I will report after I feel enough time has passed without the problem re-occurring.
#15
The latest dev versions of Imagepicker and Filepicker have a new feature that allows you to set the theme used in the Iframe to be the same as the admin theme if you are using that to add/edit nodes. See #1196384: Image picker using site theme istead of administration theme
#16
ah, OK, though I haven't updated filepicker in a while (the date in the module directory on our server is 13-05, version 7.x-1.3, according to the D7 module manager), so I'm not convinced it's 100% a fix from your end. Not that it matters, but perhaps useful for you to know in case someone run into the problem in other circumstances.
#17
OK, I have updated FilePicker and reviewed the topic you mentioned above. I can see the Use the administration theme for ImagePicker/Filepicker Iframe option now, but they are (or were, I just toggled them) unchecked, so I think the latest version of my theme did indeed improve things independently. Again, not that it matters, but in case that is useful information for you in that context.
#18
OK, this confirms that this is as I suspected all along, primarily a theming issue.
#19
FYI, this issue has no longer occurred on my site using the dev version mentioned earlier. I've just grabbed a newer build yesterday so will keep an eye on this and report if necessary... but as far as I can tell, the new option, or the theme fix (Marinelli), or a combination of the 2, completely cured the problem.
I won't change the status of this ticket since I did not create it, but I consider it fixed at my end. Thanks!
#20
#21
Hi,
I have similar problem. Image picker has disappeared on my site www.trekronerfestival.dk
I have tried all browsers but no luck. Any body got a clue, please update.
Plz see the image attached.
Thanks,
#22
my own experience is that it is more than likely a theme issue. Hutch has implemented a preference that may help in the module configuration page, but if that does not work you may get lucky refreshing your cache and/or theme preferences.
#23
hum, the problem occurred again today, after seemingly unrelated module updates. I still have no clue why it happens. Nor how to reliably restore functionality.
#24
I have exactly the same problem: Installed some completely unrelated modules, ImagePicker stops working. Reconfigure ImagePicker, save configuration - and ImagePicker works again. Until next time I clear the cache, I assume...
Drupal 6.22 - ImagePicker 6.x-2.14.
#25
function imagepicker_init() {
global $user;
//if ($user->uid > 0) {
module_load_include('inc', 'imagepicker', 'imagepicker.functions');
module_load_include('inc', 'imagepicker', 'imagepicker.theme');
module_load_include('inc', 'imagepicker', 'imagepicker.form-elements');
//}
}
does it help you?
#26
e1sm, where would I use that code?I understand now. Didn't work for me, btw.
#27
now i do not know if my issue is related/the same or another one:
my imagepicker disappears seemingly at random. but reappears after clering all of the cache (so i guess it is the opposite of this issue?), only to disappear some time later.
using the latest build with drupal 7.
thanks, alex.
#28
Caching issues can be tricky to pintpoint.
Temporarily emphasizing this issue to catch attention in order to get input and examples from more people.
#29
I have recently commited some changes in the way render() is used, as this works on the upload page, the default for the Iframe, there just *might* be a solution here, so try the latest dev.
#30
I have experienced this as well on drupal 7.10 and imagepicker 7.x-1.6. I get it back after clearing the cache as well. I am using the "basic" theme.
#31
no change here... still embarrassingly unpredictable.
#32
Flushing the cache after any updates to any module seems to help, not that it makes any particular sense though.
#33
it happened again. this time I just could not get it back - until I turned off filepicker. I do not know if this is relevant but I suspect it could have to do with multiple iframes?
#34
Unfortunately it also occurs when there is only one. I have only experienced it once in D7 and that was immediately after an update but before I had flushed the cache and once that was done plus a page refresh it was back.
It's very perplexing.
#35
I couldn't find anything to let it appear again. I've tried different themes, dev version, empty cache, re-save etc...
When I open the content edit page, errors aren't filed under PHP but under "Theme". Three errors every thime:
1.
TYPE Theme
DATE Mittwoch, 2. Mai 2012 - 22:25
USER xXx
LOCATION http://www.macbookuser.com/de/imagepicker
REFERRER http://www.macbookuser.com/de/node/730/edit?destination=admin/content
MESSAGE Theme „imagepicker_quota_message“ not found. <---
Warning
HOSTNAME xx.xxx.xxx.xxx
OPERATIONS
2.
...
MESSAGE Theme „imagepicker_iframe“ not found. <---
...
3.
...
MESSAGE Theme „imagepicker“ not found. <---
...
I'm working with D7.12, imagepicker dev and Omega base and sub theme.
Hope this helps...!?
UPDATE two hours later: For weeks it didn't happen but now picker appeared again. I swear I didn't do anything but editing an existing blogpost. The teaser text field was empty and I filled it. At the same time I switched it from text-only to full html which triggered the wysisyg editor. I don't know whether this is the direct cause ore not. No error messages since then.
#36
Thanks for the report. This does narrow things down a bit. It looks like imagepicker.theme.inc is not being loaded from time to time. I have put the command that loads imagepicker.theme.inc into function imagepicker_box which loads the iframe, commited to dev.
The themes you mentioned in the report are used by the iframe.
We shall see....
#37
A new version of Drupal core came in this morning, so I installed it, ran the updates and went straight to a node create and imagepicker iframe was empty, so the fix I applied in #36 is a dud. I flushed the cache and it all came back, found the same Theme errors in watchdog.
So I have removed it from dev, it did not work.
Back to square one ;-(
#38
:(
#39
FYI, had this problem with a 6.22 install after upgrade. Imagepicker within a node was 'just blank'. I went to http://www.my-site.org/admin/settings/imagepicker and just clicked save. Imagepicker came back to life.
#40
Sadly this doesn't work fo rme (7.12+). Sometimes it' there and sometimes it's gone.