Serve.php uses Empty RON Channel
dallen - November 3, 2009 - 14:32
| Project: | Advertisement |
| Version: | 6.x-2.1 |
| Component: | adserve.php |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Jeremy |
| Status: | fixed |
Jump to:
Description
We recently had the issue of a group not displaying any ads about half the time. It turned out that half the time serve.php was using the RON Channel even though it was empty.
Debug output for working instance:
adserve_cache function(get_ad_ids)
Cache function 'ad_cache_file_get_ad_ids' does not exist.
Memory usage: 170.586 K
Invoking cache function 'adserve_cache_get_ad_ids'.
Entering default adserve_display.
adserve_cache function(open)
Memory usage: 170.750 K
Invoking cache function 'ad_cache_file_open'.
File cache: open
Trying cache_file '/mnt/www/drupal/files/registermedia/.1.ad.cache'.
Obtained lock.
File size: 123893
File cache: last sync: 1257255801
File cache: current time: 1257255991
File cache: cron will resync cache after 3410 seconds.
Hostid: '33a1ea061c8dc02de5034fcfaf5f51d9'.
adserve_invoke_hook hook(init) action(first)
adserve_cache function(hook)
Memory usage: 1,522.086 K
Invoking cache function 'ad_cache_file_hook'.
File cache: hook 'init' not found.
Function 'adserve_hook_init' does not exist.
adserve_cache function(id)
Memory usage: 1,522.891 K
Invoking cache function 'ad_cache_file_id'.
File cache: ad_cache_file_id type(host) id() hostid(33a1ea061c8dc02de5034fcfaf5f51d9)
Searching tids: 296
adserve_cache function(id)
Memory usage: 1,524.367 K
Invoking cache function 'ad_cache_file_id'.
File cache: ad_cache_file_id type(tids) id(296) hostid(33a1ea061c8dc02de5034fcfaf5f51d9)
Total ads: '3'.
Already displayed: 0
adserve_cache function(validate)
Memory usage: 1,525.531 K
Invoking cache function 'ad_cache_file_validate'.
File cache: found 3 valid advertisements.
Validated ads: '3'.
adserve_invoke_hook hook(filter) action(intersect)
adserve_cache function(hook)
Memory usage: 1,528.922 K
Invoking cache function 'ad_cache_file_hook'.
Including file: '/mnt/www/drupal/sites/registermedia.sanduskyregister.com/modules/contrib/ad/channel/ad_channel.inc'.
Invoking 'ad_channel_cache_filter'.
ad_channel_cache: adserve_cache_filter
adserve_cache function(get_cache)
Memory usage: 1,531.492 K
Invoking cache function 'ad_cache_file_get_cache'.
ad_channel_cache: checking aid(22949)
ad_channel_cache: checking aid(22949) against channel(9) path(http://www.sanduskyregister.com/) regexp(/^(http\:\/\/.*sanduskyregister\.com.*|http\:\/\/.*sanduskyregister\.com.*)$/) match(1) display[1]
ad_channel_cache: aid(22949) is valid
ad_channel_cache: channel(9) no_channel_percent(65)
ad_channel_cache: checking aid(22950)
ad_channel_cache: checking aid(22950) against channel(10) path(http://www.sanduskyregister.com/) regexp(/^(http\:\/\/.*norwalkreflector\.com.*|http\:\/\/.*reflectorcam\.norwalkreflector\.com.*|http\:\/\/.*forums\.norwalkreflector\.com.*)$/) match(0) display[1]
ad_channel_cache: aid(22950) is not valid
ad_channel_cache: checking aid(23199)
ad_channel_cache: checking aid(23199) against channel(9) path(http://www.sanduskyregister.com/) regexp(/^(http\:\/\/.*sanduskyregister\.com.*|http\:\/\/.*sanduskyregister\.com.*)$/) match(1) display[1]
ad_channel_cache: aid(23199) is valid
ad_channel_cache: channel(9) no_channel_percent(65)
ad_channel_cache: channel 9 has a non-channel ad frequency of 65%
ad_channel_cache: adjusting ratio of channel(9) to 1:2 relative non-channel ads
ad_channel_cache: channel 0 contains all non-channel ads
ad_channel_cache: channel 9 => index 0
ad_channel_cache: channel 0 => index 1
ad_channel_cache: channel 0 => index 2
ad_channel_cache: randomly selecting from 3 indexes.
ad_channel_cache: randomly selected channel 9.
adserve_cache function(get_cache)
Memory usage: 1,540.906 K
Invoking cache function 'ad_cache_file_get_cache'.
ad_channel_cache: aid(22949) is not a premiere advertisement
ad_channel_cache: aid(23199) is not a premiere advertisement
ad_channel_cache: returning non-premiere advertisements from randomly selected channel 9
adserve_cache function(get_cache)
Memory usage: 1,543.914 K
Invoking cache function 'ad_cache_file_get_cache'.
ad_channel_enforce_inventory_level: channel(9) no inventory level assigned
Filtered ads: '2'.
adserve_invoke_hook hook(weight) action(first)
adserve_cache function(hook)
Memory usage: 1,545.375 K
Invoking cache function 'ad_cache_file_hook'.
Including file: '/mnt/www/drupal/sites/registermedia.sanduskyregister.com/modules/contrib/ad/weight/probability/ad_weight_probability.inc'.
Invoking 'ad_weight_probability_cache_filter'.
adserve_cache function(get_cache)
Memory usage: 1,545.992 K
Invoking cache function 'ad_cache_file_get_cache'.
ad_weight_probability cache_filter gcd(100)
ad_weight_probability cache_filter aid(22949) weight(1)
ad_weight_probability cache_filter aid(23199) weight(1)
Weighted ads: '2'.
adserve_invoke_hook hook(select) action(first)
adserve_cache function(hook)
Memory usage: 1,546.047 K
Invoking cache function 'ad_cache_file_hook'.
File cache: hook 'select' not found.
Invoking 'adserve_hook_select'.
Randomly selecting ad 1 of 1.
Randomly selected ID: 22949.
adserve_cache function(validate)
Memory usage: 1,546.047 K
Invoking cache function 'ad_cache_file_validate'.
File cache: found 1 valid advertisements.
Selected ads: '1'.
adserve_cache function(display)
Cache function 'ad_cache_file_display' does not exist.
Memory usage: 1,546.172 K
Invoking cache function 'adserve_cache_display'.
adserve_cache function(display_ad)
Memory usage: 1,546.172 K
Invoking cache function 'ad_cache_file_display_ad'.
ad: <div class="image-advertisement" id="ad-22949"><a href="http://registermedia.sanduskyregister.com/ad/redirect/22949/@HOSTID___" onclick="window.open(this.href); return false;"><img src="http://registermedia.sanduskyregister.com/files/registermedia/friendship-top-promo.gif" alt="" title="" width="350" height="115" /></a></div>
adserve_cache function(increment)
Memory usage: 1,547.891 K
Invoking cache function 'ad_cache_file_increment'.
PHP: errno(2048): date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EST/-5.0/no DST' instead ; Line 171 in [/mnt/www/svn-links/registermedia/trunk/modules/contrib/ad/cache/file/ad_cache_file.inc]
adserve_invoke_hook hook(increment_extra) action(merge)
adserve_cache function(hook)
Memory usage: 1,549.133 K
Invoking cache function 'ad_cache_file_hook'.
File cache: hook 'increment_extra' not found.
Function 'adserve_hook_increment_extra' does not exist.
File cache: aid(22949) group(t296) extra() hostid(33a1ea061c8dc02de5034fcfaf5f51d9) action(view) timestamp(2009110308) count: 51
adserve_cache function(close)
Memory usage: 1,566.398 K
Invoking cache function 'ad_cache_file_close'.
File cache: already have lock.
File cache: writing cache back to file '/mnt/www/drupal/files/registermedia/.1.ad.cache'.
File cache: wrote 123893 bytes to '/mnt/www/drupal/files/registermedia/.1.ad.cache'.
File cache: successfully closed '/mnt/www/drupal/files/registermedia/.1.ad.cache'.
adserve_invoke_hook hook(init_text) action(append)
adserve_cache function(hook)
Memory usage: 1,642.773 K
Invoking cache function 'ad_cache_file_hook'.
File cache: hook 'init_text' not found.
Function 'adserve_hook_init_text' does not exist.
adserve_invoke_hook hook(exit_text) action(append)
adserve_cache function(hook)
Memory usage: 1,643.367 K
Invoking cache function 'ad_cache_file_hook'.
File cache: hook 'exit_text' not found.
Function 'adserve_hook_exit_text' does not exist.
Memory usage: 1,643.961 K
document.write('\x3cdiv class=\"image-advertisement\" id=\"ad-22949\"\x3e\x3ca href=\"http://registermedia.sanduskyregister.com/ad/redirect/22949/t296?hostid=33a1ea061c8dc02de5034fcfaf5f51d9\x26url=http://www.sanduskyregister.com/\" onclick=\"window.open(this.href); return false;\"\x3e\x3cimg src=\"http://registermedia.sanduskyregister.com/files/registermedia/friendship-top-promo.gif\" alt=\"\" title=\"\" width=\"350\" height=\"115\" /\x3e\x3c/a\x3e\x3c/div\x3e');Debug output for working instance:
adserve_cache function(get_ad_ids)
Cache function 'ad_cache_file_get_ad_ids' does not exist.
Memory usage: 171.773 K
Invoking cache function 'adserve_cache_get_ad_ids'.
Entering default adserve_display.
adserve_cache function(open)
Memory usage: 171.938 K
Invoking cache function 'ad_cache_file_open'.
File cache: open
Trying cache_file '/mnt/www/drupal/files/registermedia/.1.ad.cache'.
Obtained lock.
File size: 124772
File cache: last sync: 1257255203
File cache: current time: 1257255441
File cache: cron will resync cache after 3362 seconds.
Hostid: '33a1ea061c8dc02de5034fcfaf5f51d9'.
adserve_invoke_hook hook(init) action(first)
adserve_cache function(hook)
Memory usage: 1,537.898 K
Invoking cache function 'ad_cache_file_hook'.
File cache: hook 'init' not found.
Function 'adserve_hook_init' does not exist.
adserve_cache function(id)
Memory usage: 1,538.703 K
Invoking cache function 'ad_cache_file_id'.
File cache: ad_cache_file_id type(host) id() hostid(33a1ea061c8dc02de5034fcfaf5f51d9)
Searching tids: 296
adserve_cache function(id)
Memory usage: 1,540.180 K
Invoking cache function 'ad_cache_file_id'.
File cache: ad_cache_file_id type(tids) id(296) hostid(33a1ea061c8dc02de5034fcfaf5f51d9)
Total ads: '3'.
Already displayed: 0
adserve_cache function(validate)
Memory usage: 1,541.344 K
Invoking cache function 'ad_cache_file_validate'.
File cache: found 3 valid advertisements.
Validated ads: '3'.
adserve_invoke_hook hook(filter) action(intersect)
adserve_cache function(hook)
Memory usage: 1,544.734 K
Invoking cache function 'ad_cache_file_hook'.
Including file: '/mnt/www/drupal/sites/registermedia.sanduskyregister.com/modules/contrib/ad/channel/ad_channel.inc'.
Invoking 'ad_channel_cache_filter'.
ad_channel_cache: adserve_cache_filter
adserve_cache function(get_cache)
Memory usage: 1,547.305 K
Invoking cache function 'ad_cache_file_get_cache'.
ad_channel_cache: checking aid(22949)
ad_channel_cache: checking aid(22949) against channel(9) path(http://www.sanduskyregister.com/) regexp(/^(http\:\/\/.*sanduskyregister\.com.*|http\:\/\/.*sanduskyregister\.com.*)$/) match(1) display[1]
ad_channel_cache: aid(22949) is valid
ad_channel_cache: channel(9) no_channel_percent(65)
ad_channel_cache: checking aid(22950)
ad_channel_cache: checking aid(22950) against channel(10) path(http://www.sanduskyregister.com/) regexp(/^(http\:\/\/.*norwalkreflector\.com.*|http\:\/\/.*reflectorcam\.norwalkreflector\.com.*|http\:\/\/.*forums\.norwalkreflector\.com.*)$/) match(0) display[1]
ad_channel_cache: aid(22950) is not valid
ad_channel_cache: checking aid(23199)
ad_channel_cache: checking aid(23199) against channel(9) path(http://www.sanduskyregister.com/) regexp(/^(http\:\/\/.*sanduskyregister\.com.*|http\:\/\/.*sanduskyregister\.com.*)$/) match(1) display[1]
ad_channel_cache: aid(23199) is valid
ad_channel_cache: channel(9) no_channel_percent(65)
ad_channel_cache: channel 9 has a non-channel ad frequency of 65%
ad_channel_cache: adjusting ratio of channel(9) to 1:2 relative non-channel ads
ad_channel_cache: channel 0 contains all non-channel ads
ad_channel_cache: channel 9 => index 0
ad_channel_cache: channel 0 => index 1
ad_channel_cache: channel 0 => index 2
ad_channel_cache: randomly selecting from 3 indexes.
ad_channel_cache: randomly selected channel 0.
adserve_cache function(get_cache)
Memory usage: 1,556.719 K
Invoking cache function 'ad_cache_file_get_cache'.
ad_channel_cache: aid(22949) is not a premiere advertisement
ad_channel_cache: aid(23199) is not a premiere advertisement
ad_channel_cache: returning non-premiere advertisements from randomly selected channel 0
Filtered ads: '0'.
adserve_invoke_hook hook(weight) action(first)
adserve_cache function(hook)
Memory usage: 1,559.492 K
Invoking cache function 'ad_cache_file_hook'.
Including file: '/mnt/www/drupal/sites/registermedia.sanduskyregister.com/modules/contrib/ad/weight/probability/ad_weight_probability.inc'.
Invoking 'ad_weight_probability_cache_filter'.
Weighted ads: '0'.
adserve_invoke_hook hook(select) action(first)
adserve_cache function(hook)
Memory usage: 1,560.250 K
Invoking cache function 'ad_cache_file_hook'.
File cache: hook 'select' not found.
Invoking 'adserve_hook_select'.
No more advertisements available.
Selected ads: '0'.
adserve_cache function(display)
Cache function 'ad_cache_file_display' does not exist.
Memory usage: 1,560.250 K
Invoking cache function 'adserve_cache_display'.
adserve_cache function(increment)
Memory usage: 1,560.250 K
Invoking cache function 'ad_cache_file_increment'.
PHP: errno(2048): date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EST/-5.0/no DST' instead ; Line 171 in [/mnt/www/svn-links/registermedia/trunk/modules/contrib/ad/cache/file/ad_cache_file.inc]
adserve_invoke_hook hook(increment_extra) action(merge)
adserve_cache function(hook)
Memory usage: 1,561.203 K
Invoking cache function 'ad_cache_file_hook'.
File cache: hook 'increment_extra' not found.
Function 'adserve_hook_increment_extra' does not exist.
File cache: aid() group(t296) extra() hostid(33a1ea061c8dc02de5034fcfaf5f51d9) action(count) timestamp(2009110308) count: 239
adserve_cache function(close)
Memory usage: 1,578.719 K
Invoking cache function 'ad_cache_file_close'.
File cache: already have lock.
File cache: writing cache back to file '/mnt/www/drupal/files/registermedia/.1.ad.cache'.
File cache: wrote 124772 bytes to '/mnt/www/drupal/files/registermedia/.1.ad.cache'.
File cache: successfully closed '/mnt/www/drupal/files/registermedia/.1.ad.cache'.
adserve_invoke_hook hook(init_text) action(append)
adserve_cache function(hook)
Memory usage: 1,655.773 K
Invoking cache function 'ad_cache_file_hook'.
File cache: hook 'init_text' not found.
Function 'adserve_hook_init_text' does not exist.
adserve_invoke_hook hook(exit_text) action(append)
adserve_cache function(hook)
Memory usage: 1,656.367 K
Invoking cache function 'ad_cache_file_hook'.
File cache: hook 'exit_text' not found.
Function 'adserve_hook_exit_text' does not exist.
Memory usage: 1,656.773 K
document.write('\x3c!-- No active ads were found in t296 --\x3e');
#1
As you can probably tell the second 'Debug output ...' is for the non-working instance.
#2
Assigning to myself.
#3
Fix committed.
#4
Awesome! Thank you.