Content Block Images

Permalink
We have this site running 5.5.2.1. If an image is added to the content block the image is broken in the editor but displays when the block is saved. Image is visible on the page. Go back to edit the content block and the image is not displayed in the editor, just a broken image icon. Everything worked fine until we upgraded from 5.4.2.2 All images in every content block are affected. File permissions on the server were set to 777 for the "files" directory. Any help would be appreciated as I have 40 teachers trying to edit class pages and cannot see the images to resize and place them.

 
tciweb replied on at Permalink Reply
Any help on this please?
pvernaglia replied on at Permalink Reply
pvernaglia
Try rescanning the images in the File Manager
tciweb replied on at Permalink Reply
Thanks for your response but that does not help. Same problem exists.
mnakalay replied on at Permalink Reply
mnakalay
have you tried emptying the cache?

Also, when you're in the editor, use firefox or chrome's web inspector to see the path to the image and check if it makes sense and if it's the same you have on the page.
tciweb replied on at Permalink Reply
I have tried that and even have the cache turned off.

On the normal page the img tag is like this:
<img width="275" height="183" alt="home01.jpg" src="/files/7313/1557/9768/home01.jpg" style="float: right; margin-right: 20px; margin-left: 20px;">


In the content editor, where the image is broken, it is like this:
<img width="275" height="183" data-mce-style="float: right; margin-right: 20px; margin-left: 20px;" data-mce-src="/index.php/download_file/view_inline/1/" alt="home01.jpg" src="/index.php/download_file/view_inline/1/" style="float: right; margin-right: 20px; margin-left: 20px;">
mnakalay replied on at Permalink Reply
mnakalay
How did you add the image in the content, through tinymce's image function? or through the "add image" button on the top left hand near the C5 logo?
If you used the tinymce function try the other one.

Another thing you might want to try is delete the slash / before index.php and see if it makes a difference.
tciweb replied on at Permalink Reply
All the images were added through c5 add image. This worked fine until the upgrade. Don't understand why the inline image is not working. Other sites we have upgraded did not have this issue and the environment is identical.
tciweb replied on at Permalink Reply
Firebug console give this message "Image corrupt or truncated:http://www.tcalw.org/index.php/download_file/view_inline/4/"... It does not matter which image it is. They all get that in the content editor. Again, it never used to happen.
tciweb replied on at Permalink Best Answer Reply
Figured it out thanks to this post:
http://www.concrete5.org/community/forums/customizing_c5/download_f...

When the update was done for some reason my config/site ended like this:
define('WHITE_LABEL_DASHBOARD_BACKGROUND_SRC', 'none');
define('DASHBOARD_BACKGROUND_INFO', 'false');
//define('CACHE_LIBRARY', 'apc');
?>
<?php define('DIRNAME_APP_UPDATED', 'concrete5.5.2.1');?>


Changing it to this cleared up the issue:
define('WHITE_LABEL_DASHBOARD_BACKGROUND_SRC', 'none');
define('DASHBOARD_BACKGROUND_INFO', 'false');
//define('CACHE_LIBRARY', 'apc');
define('DIRNAME_APP_UPDATED', 'concrete5.5.2.1');?>
mnakalay replied on at Permalink Reply
mnakalay
ok. Good job on finding that one :)