For years I used Larry theme without any issues but there is a new theme called Elastic in version 1.4.9 I upgraded to recently. I like it and I would like to keep using it but ...
I opened the Console in my browser and I started to play with the new interface. I found an issue which is related to Elastic theme only (I checked it with Larry theme and there is no message in Console). When I click on messages in Inbox/Drafts/Sent/Trash/spam to check their contents in Console I get the following error:
GET http://mydomain.tld/roundcube/?_task=addressbook&_action=photo&_email=contact%40mydomain.tld&_error=1 404 (Photo not found)
This is happening because _error value is set to 1 in URL. I did not find from where it comes but I can quickly fix by commenting line 92 in file /roundcube/program/steps/addressbook/photo.inc
if ($data) {
header('Content-Type: ' . rcube_mime::image_content_type($data));
echo $data;
}
else if (!empty($_GET['_error'])) {
// header('HTTP/1.0 404 Photo not found'); <-- commented here
}
else {
header('Content-Type: image/gif');
echo base64_decode(rcmail_output::BLANK_GIF);
}
I created a contact, I uploaded a photo for it, and the message is gone from Console. In my opinion this is happening because the developer did not evaluate that we don't use images for contacts.
Does anyone know how to fix this theme? I guess it is a matter of an if statement ...