I inherited a site that runs ad module and switched it to run cron via drush since the wget method in place was timing out.

I found that after running cron via drush none of the ads would show up because the path was something like http:///sites/default/files/ad.jpg.

After a lot of head scratching I tried drush -l http://mysite.com core-cron and that corrected the paths for the ads and fixed my problem. The -l param to drush tells it the site url since it can't infer it from command line.

I don't know if this is a bug in drush or ad, or if it's not really a problem. Adding this issue mostly in case someone else has the same problem.

If you can point me in the right direction, I can try fixing and submitting a patch, but I currently have no idea how this module works :)

Comments

john franklin’s picture

Do you set the "uri" in your aliases.drushrc.php entry? For a local system, I usually use:


$aliases['example-local'] = array(
  'root' => '/path/to/drupal',
  'uri' => 'example.org',
);
rocketeerbkw’s picture

No, I'm just passing the uri and root directly to the drush command but an alias would probably work just as well.

lrwebks’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Drupal 6 is EOL and no longer supported. Closing this as outdated for that reason. Thanks for your contribution!