Greetings. Please bear with me, I am not exactly a webdev kind of guy.

I have a personal site hosted on my own server. It's meant to be a basic portal for family members now that my daughter is at college and some non-business projects of my own. I initially installed Drupal 6.5 this summer and tinkered with it until it was functioning more or less like I wanted it to. This morning, I upgraded to 6.8. It was pretty smooth, but then I realized my image gallery wasn't showing images. The files were there. The entries were showing up in the gallery, but there were no image files displayed, no placeholders, nada, nothing, bupkis.

I beat my head against that issue all day. I can't find any reason that the images aren't showing, so I threw up my hands and started installing modules to integrate my Flickr.com account on the site. I saw some terrific examples like this one http://www.davidgrant.ca/flickr which I think is terrific. I wound up struggling like crazy to get a block of recent pics and a block of random pics to show up on my site.

Do I need to take this up with support or can somebody here help me? Let me know one way or the other. I really like Drupal, but I'm frustrated and getting kind of fed up with all this.

I'd be happy to post the URI to the site if it would help.

I'd really appreciate any attention on this.

Thanks.

Mark

Comments

barrett’s picture

So the problem you're looking for help on is with your original image gallery or with the flickr integration? Either way, what modules are you using?

A url showing the problem would help.

Mark Adams’s picture

Thanks for the assist Barrett.

The original gallery was adequate and I'd be perfectly happy to get it back. The Flickr integration is obviously beyond me at this point, but after I get this thing ticking again and get it looking like I want it to look, sinking my teeth into views and figuring out how to get that integration happening will be just the ticket. For now, let's just focus on the original gallery.

Site URI is http://adams-lan.blogdns.org/drupal

I've installed a lot of modules over the past several hours, but if I'm not mistaken, the key modules for the basic gallery are:

Image 6.x-1.0-alpha3
Image Gallery 6.x-1.0-alpha3
ImageMagick Advanced Options 6.x-1.0-alpha3
Image assist 6.x-1.0
Image Attach 6.x-1.0-alpha3
Image Gallery Management 6.x-1.0-beta2
Image Import 6.x-1.0-alpha3
Taxonomy 6.8

I have experimented with the Home › Administer › Site configuration
default image path. currently set to (sites/default/files/)images.

I've set permissions on all the image files and directories at 777.

I've set Home › Administer › Site configuration to Full HTML.

I've created an "Image" content type in Home › Administer › Content management, my image galleries are configured just as they were before the upgrade.

Under Home › Administer › User management, the Image Module has got everything checked under "Authenticated User."

I've looked at all the .htaccess files in question -- they are identical to the files from the 6.5 version.

When I manually enter http://adams-lan.blogdns.org/drupal/files/images/Me_bench_composed.jpg I load the image from my site.

I also still have the old site and database backups.

Is that information helpful at all?

Thanks again for the time and attention.

Mark

cog.rusty’s picture

If, when you first installed the image module, you copied its included image.imagamagick.inc file into Drupal's /includes directory (according to the module's installation instructions for imagemagick support), you may have deleted it during the update.

Check if the "imagemagick" option is available in /admin/settings/image-toolkit

Another thing to check is the input format:
- Edit one of your image nodes and one of your nodes where an image it attached, to see what their "Input format" is. Is it Full HTML in both cases?
- Check the input format which you are using in /admin/settings/filters. Even if the input format is called "Full HTML", go to its configuration and see for yourself which filters it contains.

barrett’s picture

I'm not personally familiar with any of the modules you're using, but I'd be willing to bet cog.rusty is right. The img tag isn't getting written into the html, which would lead me to think it was a problem with the filters somehow.

BTW - I created a testuser user on your site to see if things looked any different for a logged in user. In retrospect, I should have asked first. I apologize.

Mark Adams’s picture

BTW - I created a testuser user on your site to see if things looked any different for a logged in user. In retrospect, I should have asked first. I apologize.

No problem Barrett and no apology necessary. I'm just glad somebody tried it. :-) I assume it worked as intended?

Mark

Mark Adams’s picture

Thanks for the assist Cog, I appreciate it. First of all, the Imagemagick Toolkit option is present and selected.

- Edit one of your image nodes and one of your nodes where an image it attached, to see what their "Input format" is. Is it Full HTML in both cases?

Interesting. I edited existing image nodes and they are Full HTML.

Trying to upload a new image with the Create Content > Image module never gives me the option to select an image to upload. It gives me a Create Images window then as I step through it's menus, I fill in the Title, Gallery, and Body fields, but never have a place to show a filename? The Preview and Save buttons produce an empty message.

As is, I have no way that I can find to upload an image. I get the sense that I don't have something installed. But to respond to the question, the new image Input Format is Full HTML.

- Check the input format which you are using in /admin/settings/filters. Even if the input format is called "Full HTML", go to its configuration and see for yourself which filters it contains.

Ah. All I've got checked here, in addition to items for both anonymous and authenticated users, are:

HTML Corrector
Line break converter
URL Filter

Inline images is not checked. That might explain why I can't add images to post with image assist. I also just realized that the Lightbox2 module I installed in my efforts to get a Flickr-like presentation going has produced a long list of filters that might be handy.

Unfortunately, checking the Inline images filter does not allow me to upload a picture -- it only allows me to create a link in the body. I can't even get an inline image in the body with a hand-crafted Only local images are allowed. link.

I do have one inline image in this blog entry:

http://adams-lan.blogdns.org/drupal/node/17

But that image is located and referenced from Apache's graphics directory like this:

img src="/graphics/terminator_screen.png" width=700 alt="A screen capture image of a Terminator window split into four sections."

Forgive me if this stuff is a little scattered. I woke up this morning with a nasty resp infection in my head. I'm not really running at full speed.

Thanks again for the help.

Mark

Update: I've been going through all of my modules, content types, etc. and disabling/re-enabling or juggling them in some way. At this point, I can edit the nodes that exist in my gallery and upload new images into them. The images preview, but when I save them, the image still doesn't appear and going back into edit reveals that the images are gone. It appears drupal isn't able to save these images for some reason.

Also, creating new content in this gallery behaves exactly the same way, good upload, good preview, no image after saving.

Just wanted to mention it.

Mark Adams’s picture

** Bump**

Okay, I just noticed that the Image Attach module is active, but does not appear in the list of configs at /admin/settings. I have no idea what I did to cause it to disappear, but it's gone.

How can I get Image Attach to show up in this list again?

Thanks.

Mark

cog.rusty’s picture

If the "Image attach" module is enabled and you don't see an "Image attach" tab in admin/settings/image, try running update.php to rebuild the menus. Make sure that it completes successfully without any timeouts.

cog.rusty’s picture

The "Inline images" filter belongs to the img_assist module, which also has an option in the admin/settings/img_assist page, "Other Properties" section, to specify whether it will insert "Filter Tags" or "HTML Code". Check if that makes any difference. Also, does the img_assist link appear at all in the node editing pages?

What do you mean "I can't even get an inline image in the body with a hand-crafted link"? What kind of link, and what happens?

Also, do you have the imagefield module installed? I hear that it is incompatible with the image nodes created by the image module.

Mark Adams’s picture

Okay, I found the Image Attach tab. It wasn't where I expected it to be given the instructions in the module. Now:

The "Inline images" filter belongs to the img_assist module, which also has an option in the admin/settings/img_assist page, "Other Properties" section, to specify whether it will insert "Filter Tags" or "HTML Code". Check if that makes any difference. Also, does the img_assist link appear at all in the node editing pages?

Filter Tags v. HTML Code makes no difference. The img_assist link does appear on the node editing pages. I've tried creating new content with images. It doesn't work -- I get thumbnails, but no image.

What do you mean "I can't even get an inline image in the body with a hand-crafted link"? What kind of link, and what happens?

Placing an HTML statement in the body of a message will not produce an image. For example:

<img src="strip_small.png">

Produces nothing on preview or when saved. I've tried extending that path all the way back to "/var/www/drupal/sites/default/files/images" and then whittling that path down one piece at a time. It never shows me an image.

It does however, produce this error as of this evening:

 warning: basename() expects parameter 1 to be string, array given in /var/www/drupal/includes/file.inc on line 188.

Also, do you have the imagefield module installed? I hear that it is incompatible with the image nodes created by the image module.

No, I do not have imagefield installed.

Thanks for the time and attention Cog.

Mark

I should say that images from outside the drupal directory tree will display. Here is a link to a node demonstrating this:

http://adams-lan.blogdns.org/drupal/node/28

cog.rusty’s picture

Looking at the html source of that page, I see

<img src="images/ strip_small.png" />

(notice the space), but the correct path should be

<img src="/drupal/sites/default/files/images/strip_small.png" />

if this link is produced by a module, it is either a bug in the module or a misconfigured path in its settings. Or maybe it is some additional URL filter module which you are using to automatically "correct" the paths?

Does the admin/reports/status page complain about any file paths?

Mark Adams’s picture

Those links were produced by me and that extra space appears to be a function of line wrap or more likely a typo. I have corrected the first link as you describe and it made no difference. The only thing in the logs is a "page not found" error for "sites/default/images/strip_small.png", but that may or may not be telling.

The real problem is that my images aren't showing up in the gallery and there is no error produced there. Updating an image in that gallery seems to work just fine, it produces no error, but it also produces no image.

Administering through drupal/admin/content/image/manage shows me a list of titles, gallery names and thumbnails that look just fine. Clicking on those thumbnails should produce a full-sized image on a page, but it only produces a page with no image.

So, drupal doesn't seem to want to show any image in the /var/www/drupal/sites/default/files/images subdirectory, though it will show the thumbnails that reside alongside those images in that subdirectory, and it will show an image that resides in a subdirectory of /var/www/html/graphics.

Status reports that "Image module directories Exists (sites/default/files/images)". WTF is wrong with this thing?

Mark

UPDATE: I posted this and noticed that the path I used to point to the image was not correct. It should have read "sites/default/files/images/strip_small.png".

I corrected that path and now the image IS showing up as expected When I look at that node:

http://adams-lan.blogdns.org/drupal/node/28

But it's still not showing up on the gallery page:

http://adams-lan.blogdns.org/drupal/image/tid/1

cog.rusty’s picture

From what I see in the html source, that gallery page does not contain img tags at all. It is not just that the images can't be displayed. It looks like the img tags are stripped out from the individual image nodes by a filter (or never added).

If the filters in your input format are OK, maybe someone in image module's issues queue has an idea about what the problem could be.

Mark Adams’s picture

Okay, I agree that those tags are certainly not there. I appreciate the attention and hope somebody else can pick this up.

Mark