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

pixelsweatshop’s picture

Do you have the body field set to "Full HTML"?

Skidz’s picture

Yes.

pixelsweatshop’s picture

Do you have the correct permissions on default/files/images?

Skidz’s picture

Yes. I set everything in default/files to 777. Still no joy.

Satori42’s picture

Are 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.

Skidz’s picture

I'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...

Satori42’s picture

If 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.

Skidz’s picture

I'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...

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.