eZ ad problem ver. 2.2.7: Ads not displaying on anonymous access

Author Message

Knut Meyn

Sunday 29 February 2004 8:53:19 am

I've discovered something which looks like either a configuration issue or a bug, don't know which. While trying to get ads to run on mainpage and also other news section, I first didn't think it was working. When not being logged in, nothing was showing.

Found empty brackets for banner code and got it from a template file. Then I added the code

<?
$CategoryID = 1;
$Limit = 1;
include( "ezad/user/adlist.php" );
?>
.. into the brackets, don't know if it made any difference. The problem turned out to relate to ads not showing in any section unless you are logged in.

Does anyone know why the ads won't show for anonymous users?
Appreciate a tip on a workaround here!
Rgds
Knut

Knut Meyn

Sunday 29 February 2004 9:30:29 am

Well apparently the code is being entered as one select Ads for the section. But they're still not visible with anonymous access.

Rgds
Knut

Knut Meyn

Sunday 29 February 2004 9:44:35 pm

Interestingly enough it seems that it was a combined caching and cookie issue. I never emptied site/personal cache while I was doing the banner addition tok the section pages.

I remember now something about empyting cache in Site admin after changes applied, so I guess that may explain why twasn't visible for anonymous right away.

Anyway, problem resolved....
Rgds
Knut

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 08:11:46
Script start
Timing: Jan 31 2025 08:11:46
Module start 'layout'
Timing: Jan 31 2025 08:11:46
Module start 'content'
Timing: Jan 31 2025 08:11:46
Module end 'content'
Timing: Jan 31 2025 08:11:46
Script end

Main resources:

Total runtime0.0191 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 588.3906151.2422
Module start 'layout' 0.00800.0038 739.632836.7266
Module start 'content' 0.01180.0057 776.359490.1094
Module end 'content' 0.01750.0016 866.468829.9922
Script end 0.0191  896.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002613.4000140.0002
Check MTime0.00115.8994140.0001
Mysql Total
Database connection0.00063.339710.0006
Mysqli_queries0.005930.755430.0020
Looping result0.00000.104710.0000
Template Total0.00126.410.0012
Template load0.00105.069410.0010
Template processing0.00021.296010.0002
Override
Cache load0.00073.429510.0007
General
dbfile0.00115.572980.0001
String conversion0.00000.047440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs