The Only local images are allowed. tag for the shopping cart on the amazon search box looks like this:

Only local images are allowed.

This creates an error in my log, and is becomming "the most viewed page" on my site. How do I go about correcting this?

CommentFileSizeAuthor
#2 PageNotFound.JPG27.97 KBTRS_Chris

Comments

rfay’s picture

Status: Active » Postponed (maintainer needs more info)

Sorry - you must have intended to attach a screenshot or something. I don't have enough information to understand what you mean. Please explain. Please give information on:

  • What error you get in the log - give the specific error
  • What page on amazon_store is giving you trouble (please give the URL of the search)
TRS_Chris’s picture

StatusFileSize
new27.97 KB

That's because all of them are. Anywhere that an image is supposed to show up, the image is written out as a node rather than to an image file. ie:

\img src="?q=(link_to_image)"\ Where it should just be \img src="(link_to_image)"\ Drupal sees that as an invalid node. Below is a screen shot. It's coming up everywhere that these images are supposed to display - do you want a screenshot of the code view?

Sorry abouyt that, it was stripping out my img tags as if I was trying to use them as real img tags rather than samples.

rfay’s picture

I notice a couple of things:

1. You have installed amazon_store in /modules - Normally contrib modules would go in /sites/all/modules instead.

2. However, I would expect it to work there anyway. Is it possible that you're using 6.x-1.0-beta1? I think the image was missing from that release. I just checked and the image is there in the current revision, 6.x-1.0-beta2.

3. There are other images that show up as missing from amazon_store. I think you may have deleted or not extracted the entire archive - the "images" directory may not be available, or perhaps the permissions on it are not correct.

Please download the current version of the module and install it in sites/all/modules, and make sure that the "images" directory is there. I imagine that will fix your problem.

Thanks,
-Randy

TRS_Chris’s picture

Well, I downloaded it yesterday and it was the most recent one available then - According to changelog.txt it's // $Id: CHANGELOG.txt,v 1.2 2009/04/28 22:10:00 rfay Exp $

amazon_store 1.0beta2 2009-04-05.

Here is the error:
warning page not found 05/19/2009 - 19:12 sites/all/modules/amazon_store/images/check_bu.gif Chris

Here is the text from view source: (greater than/less than symbols changed to parenthesis so that this doesn't think I'm trying to post html).

(a href="/?q=amazon_store/cart" )(img
alt="continue checkout" class="continue_checkout"
src="/?q=sites/all/modules/amazon_store/images/check_bu.gif" /)(/a)

rfay’s picture

Status: Postponed (maintainer needs more info) » Active

OK - You do not have clean URLs turned on. When I finally saw your HTML I understood that, and I can duplicate your results.

I will test with clean URLs turned off and solve this in the next release.

For now, you'd be a lot better off with Clean URLs turned on - almost all drupal sites run that way. admin/settings/clean-urls

Thanks,
-Randy

TRS_Chris’s picture

Yeah, for some reason that I can't quite understand, when I was installing Drupal it said my site could support clean urls... But now it says I cannot. I think I accidentally deleted my CGI-bin or something crazy, I just can't figure out why I can't now. Well, I'll contact the host and see what I can do about that.

TRS_Chris’s picture

Just wanted to post a follow up that yes, going with clean urls did fix it.

rfay’s picture

Title: Page not found created by shopping cart image. » Button images don't show if clean urls turned off
rfay’s picture

Status: Active » Closed (fixed)

Committed a fix for this.

btmullins’s picture

Title: Button images don't show if clean urls turned off » Button images don't show, clean urls are turned on
Version: 6.x-1.0-beta2 » 6.x-1.0-beta3
Component: Miscellaneous » User interface
Assigned: Unassigned » btmullins
Status: Closed (fixed) » Active

I have clean urls turned on, and button images do not show. The files are there, but I cannot view them by typing the url of the image either.

rfay’s picture

Title: Button images don't show, clean urls are turned on » Button images don't show, clean urls are turned off
Version: 6.x-1.0-beta3 » 6.x-1.0-beta2
Assigned: btmullins » Unassigned
Status: Active » Closed (fixed)

This issue had to do with clean URLs and the add-to-cart button image below the "Amazon Store Search" block in 1.0-beta2.

It's considered poor manners to hijack a thread/bug and describe another one. If you're having a problem that has not yet been described, please open a new bug with a complete description.

If the image is in your filesystem, and you can't access it by typing the direct URL, then it's probably something wrong with your setup with your webserver.

-Randy