Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm trying to edit book pages (full-html). I'm inserting images into the body field. These images are thumbnails with links to other places on the site. Everything looks ok in the editor window (ckedit), but when I save the node, the images don't appear. If I Firebug it, I see that the code is rendering, but the images are not being displayed. The alt text is though. The source images are located in sites/default/files/images.
What am I doing wrong here ?
Comments
Comment #1
pixelsweatshop CreditAttribution: pixelsweatshop commentedDo you have the body field set to "Full HTML"?
Comment #2
Skidz CreditAttribution: Skidz commentedYes.
Comment #3
pixelsweatshop CreditAttribution: pixelsweatshop commentedDo you have the correct permissions on default/files/images?
Comment #4
Skidz CreditAttribution: Skidz commentedYes. I set everything in default/files to 777. Still no joy.
Comment #5
Satori42 CreditAttribution: Satori42 commentedAre you able to successfully upload images elsewhere on your site, and view them?
I encountered a problem a few years back where I couldn't get images uploaded through Drupal to process. I don't remember the specific details, but it was the .htaccess settings that were causing the problem. I'd upload things to my webhost from within Drupal, but Drupal never understood they were there when I went to access them. I went without graphics for on my site for a couple of years because of this. Turned out my .htaccess file wasn't configured to correctly establish the directory access and where to look for what.
Comment #6
Skidz CreditAttribution: Skidz commentedI'll look into it. I can post images in page nodes, profiles, webforms, etc. For now I've redone my nodes as pages with good 'ol links...
Comment #7
Satori42 CreditAttribution: Satori42 commentedIf you can successfully post images with other content types, .htaccess is not the culprit.
I've had success using Image Picker.
I suspect the problem is that ckedit, et. all, format code and filter it before saving it. If you embed images using those editors, the image embed code isn't rendered. In fact, often successfully inserting an image via Image Picker, then saving the node body through one of these editors, stops the image from being rendered.
Image Picker appears to attach an image node to a Book Page, then formats it to float however you'd like. But the images embedded also show a second time at the end of the page. This is not optimal.
Comment #8
Skidz CreditAttribution: Skidz commentedI'm getting strange behavior in my calendar view as well. I've added a footer with a color legend. I've got these little square images I've put there to represent each color. Sometimes these images are rendered, and sometimes they're not. Almost seems to be a caching thing...