Any help on the above error? - the file is in its place (modules/ads) and readable. Tried both the dev and beta versions without success.
Thanks heaps,
d
Any help on the above error? - the file is in its place (modules/ads) and readable. Tried both the dev and beta versions without success.
Thanks heaps,
d
Comments
Comment #1
jeremy commentedTake a look in your variables table -- what is the value for the 'adserve' variable? It should looks something like:
That error suggests that somehow either this variable got set incorrectly, or your adserve.php file is missing/unreadable. Verify that it exists at the location specified by the above query, and that it is readable.
Comment #2
Steel Rat commentedI'm getting the same error on a fresh install of the module.
The query suggested returns zero rows.
Comment #3
Steel Rat commentedI manually added the record into the Variable table, and now it seems to be working.
Comment #4
jeremy commentedThe resulting error message said "the ad module is misconfigured" and included a link to the ad configuration page. The lack of an adserve variable suggests that you did not visit this configuration page, on which the adserve variable would have been automatically set for you.
I've added an additional call to _ad_check_install() when the above error is generated, thus no longer even requiring that you visit the ad configuration page - this error should now be auto-correcting.
Comment #5
Steel Rat commentedAh but i did visit that page, before even trying to configure a block or anything else. Still got the error.
Comment #6
jeremy commentedSure enough, I see the problem, the adserve variable was not being set. I have checked in a fix. Looks like I'll need to release a -beta5 soon, as that was a glaring omission.
Comment #7
Steel Rat commentedlol, glad it wasn't me!
Comment #8
drejom commentedthanks for the quick reply! I added the variable as above and that worked fine.
Cheers
denis
Comment #9
(not verified) commented