I placed the module in another directory but I keep getting this and it slows site performance: /sites/all/modules/appbar/open.png not found

any thoughts on how to handle it?

Comments

icecreamyou’s picture

Category: bug » support
Status: Active » Fixed

The code that generates the path for the image looks like this:

$base_url .'/'. drupal_get_path('module', 'appbar') .'/open.png';

The command drupal_get_path('module', 'appbar') will get the correct path of the directory where you placed the module, even if it's not in sites/all/modules.

If your site isn't using the correct path, it's probably because the old path is either cached locally or aggregated on the server. Also check to make sure the image is actually in the module folder.

socialnicheguru’s picture

Status: Fixed » Active

it is being referred from the appbar.css file


#appbar_messages {
  background: scroll transparent url("/sites/all/modules/appbar/open.png") no-repeat right center;
  border-left: 1px #B5B5B5 solid;
  float: right;
  height: 25px;
  margin-right: 4px;
  padding-right: 16px;
}
icecreamyou’s picture

Category: support » bug

Ohhhh. Oops. That line can probably be removed altogether, or overridden in your theme's stylesheet as an interim solution.

jcisio’s picture

Status: Active » Needs work

As you apply patch by hand, this should work:
replace:
background: scroll transparent url("/sites/all/modules/appbar/open.png") no-repeat right center;
by:
background: scroll transparent url("open.png") no-repeat right center;

jcisio’s picture

Status: Needs work » Needs review
icecreamyou’s picture

Status: Needs review » Fixed

Committed fix to dev. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Manuel’s picture

Version: 6.x-2.x-dev » 6.x-2.0-alpha2
Priority: Normal » Minor
Status: Closed (fixed) » Active

Sorry if I've re-open it this issue.
It is fixed in DEV version.

Manuel’s picture

Version: 6.x-2.0-alpha2 » 6.x-2.x-dev
Status: Active » Closed (fixed)

Fixed in DEV