After migrating a site with Ad 6.x-2.0 from a test server to a live one, image ads stopped appearing. Peeking at the script that serve.php is returning, I can see that the <a> tag it is drawing is still linking to a redirect path at the old server (it's an absolute path), and the <img> tag is not in there at all. Hmm.

document.write('\x3cdiv class=\"image-advertisement\" id=\"ad-3\"\x3e\x3ca href=\"http://test-server.test/ad/redirect/3/t2?url=admin/content/ad/configure\" rel=\"nofollow\"\x3e\x3c/a\x3e\x3c/div\x3e');

Emptying the cache didn't seem to help, and I couldn't find anywhere in the settings to tell the module that it's at a new home now. How can I get the system to point at the new server URL?

Comments

liquidcms’s picture

Category: support » bug
Priority: Normal » Critical

yup, i can verify this is a bug in the ad module.

it seems to write absolute urls into db which then get copied over from the text server to live site.

so changing this to a critical bug

jeremy’s picture

Status: Active » Closed (duplicate)