Hi, I'm using filecache and everything works fine until i did a mistake and delete my vhost.conf with some settings for my domain. After this action my file_cache won't serve any ads.
Working without caching works fine and ads will be displayed.
Does somebody knows what settings are needed in vhost.conf to get back a working file_cache ?
I think it has to be one or two settings, but i don't know which one.
Thanks in advance
simpsonetti
Comments
Comment #1
jeremy commentedThe vhost file should not affect file caching any more than it affects anything else on your website. Are you using multiple domains for your single website? Are you trying to use the ad_remote module?
Please follow the directions in documentation/DEBUG.txt and post the results here.
Comment #2
simpsonetti commentedSorry, about the email, i don't notice that i have filled... to many things to do.
so here is the output, the domain is cloaked.
There is one thing, that seems to be wrong:
there is filecache running! but the debug.php says not.
I'm using 4blocks. all are imageads.
The status of all ads are active.
and it is a singledomain, not a multisite.
You need more information ?
Simpsonetti
Comment #3
jeremy commentedYou will need to get the proper ad display snippet by enabling a block and configuring the ad module correctly to use that cache method. Then, view source the page and find the correct URL (it will include something like "c=file" in the path. Fix the path per the instructions in DEBUG.txt and try again.
Comment #4
simpsonetti commentedAh okay, now it should be right:
This is what you need ?
Simpsonetti
Comment #5
jeremy commentedYour debug shows the ad module working and correctly serving advertisements. Are you still having trouble?
Do you have an ad blocker enabled?
Comment #6
simpsonetti commentedI'm using Firefox and Adblockplus as plugin, but for this domain it is off. But also with IE6
I still have trouble with it.
Setting is :
file_cache, 3 files to cache and 10 min of lifetime.
But there will be show nothing.
And you really mean, that the vhost.conf has nothing to do with it ?
this behavoir of the ads results in deleting the vhost.conf . (damned that i didn't make a backup of this file...)
Comment #7
simpsonetti commentedi switched the "display type" to "iframe" and get these errors: has this anything to to with my problem ?
in this case there schould be placed 3 ads. this is the content-ad-block.
Left and right is this message:
Any hint ?
Comment #8
simpsonetti commentedno more information ?
Comment #9
simpsonetti commentedComment #10
simpsonetti commentedonce again, this time with "file_cache" . it doens'nt work too. Ads won't be displayed.
Comment #11
simpsonetti commentedsorry for pushing again, but this is the code, that the debugmode of drupal shows:
and this is from the debugmode as seen above:
Notice: Undefined variable: include_func_init in /srv/www/vhosts/xxxxxxxxxxx.de/httpdocs/cms/modules/ad/cache/file/ad_cache_file.inc on line 81 File cache: last sync: 1243337735
Maybe the synctime is too high. how do i sync the cache ?
Comment #12
simpsonetti commentedso now i have changed to "jquery" and put on debug=2 -> result is showing no ads
But why is there "no cache" ? i'm still using "file cache"
Comment #13
jeremy commentedYou need to run cron to sync the cache.
As for your last piece of debug -- you need to carefully read DEBUG.txt that comes with the module. When debugging, you need to convert all occurrences of "&" to "&" in the URL, otherwise they are ignored (which causes things like no cache to be used).
Comment #14
simpsonetti commentedHi Jeremy, thanks for your answer. First of all, how do i sync the cache by using cron ?
i'm running cron every 5 minutes on my server with this call "wget http:///www.xxxxx.de/cms/cron.php"
Do you mean, that i've to sync drupals-cache with ads-cache ?
i'm right ?
Comment #15
simpsonetti commentedand further:
i hope now tthat i'm doing right with my url-call: here is my output using "memcache" .
Left and rightside are working, but content-ad not. Does this have something to do with "Notice" here in debug-output ?
Comment #16
jeremy commentedAre you able to upgrade to Drupal 6? It looks like there may be a bug in the memcache module for 5.x, and I'm no longer supporting that version of the module. (I'll merge in patches, but I'm not doing any active bug fixing there myself.)
Comment #17
simpsonetti commentedOkay, i try to upgrade, but i don't know how to migrate the complete data. but nevermind, maybe there are some howto's etc.
but thanks for your answer. this was very important.
Comment #18
jeremy commentedThe data should be migrated automatically when you upgrade. Certainly test first on a development server to confirm though, as things can go wrong.