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
Comment #1
john franklin commentedDo you set the "uri" in your aliases.drushrc.php entry? For a local system, I usually use:
Comment #2
rocketeerbkw commentedNo, I'm just passing the uri and root directly to the drush command but an alias would probably work just as well.
Comment #3
lrwebks commentedDrupal 6 is EOL and no longer supported. Closing this as outdated for that reason. Thanks for your contribution!