I kept getting things like this in my logs
page not found 2007-02-15 16:17 books/modules/amazontools/images/missingm.gif ... Anonymous

This is coming from a block I have on the books page.

The fix is to change every line that looks like this
$module_dir = drupal_get_path('module', 'amazon');

to this
$module_dir = base_path() . drupal_get_path('module', 'amazon');

CommentFileSizeAuthor
#1 amazon.module_3.patch2.01 KBTimotheos

Comments

Timotheos’s picture

Status: Active » Needs review
StatusFileSize
new2.01 KB

Ok here's a patch

mcurry’s picture

I'm getting these warnings, too - any chance we can get this committed to an official build?

Prometheus6’s picture

Yeah, I'll get to it tonight.

mcurry’s picture

Thanks! I've applied the patch on one site so it's fixed for now.

I really like this module, and will be using it on several sites, so I just wanted to know if this was going to be part of an upcoming release, and, if the patch was officially 'blessed'. :D

Prometheus6’s picture

Assigned: Unassigned » Prometheus6
Status: Needs review » Closed (fixed)

Blessed, applied and released.