lighttpd forum XCache > undefined index

Posted by VH (Guest)
on 08.02.2010 16:05
I'm running PHP v 5.2.9
XCache v. 1.3.0

Getting these errors on XCache 1.3.0 Administartor....

Notice:  Undefined index:  avail in /var/www/html/admin/xcache.tpl.php 
on line 58
Notice:  Undefined index:  size in /var/www/html/admin/xcache.tpl.php on 
line 58
Warning:  Division by zero in /var/www/html/admin/xcache.tpl.php on line 
58
Notice:  Undefined index:  slots in /var/www/html/admin/xcache.tpl.php 
on line 76
Notice:  Undefined index:  size in /var/www/html/admin/xcache.tpl.php on 
line 77
Notice:  Undefined index:  avail in /var/www/html/admin/xcache.tpl.php 
on line 78
Notice:  Undefined index:  slots in /var/www/html/admin/xcache.php on 
line 38
Notice:  Undefined index:  size in /var/www/html/admin/xcache.php on 
line 38
Notice:  Undefined index:  avail in /var/www/html/admin/xcache.php on 
line 38
Notice:  Undefined index:  hits in /var/www/html/admin/xcache.php on 
line 38
Notice:  Undefined index:  misses in /var/www/html/admin/xcache.php on 
line 38
Notice:  Undefined index:  clogs in /var/www/html/admin/xcache.php on 
line 38
Notice:  Undefined index:  ooms in /var/www/html/admin/xcache.php on 
line 38
Notice:  Undefined index:  errors in /var/www/html/admin/xcache.php on 
line 38
Notice:  Undefined index:  cached in /var/www/html/admin/xcache.php on 
line 38
Notice:  Undefined index:  deleted in /var/www/html/admin/xcache.php on 
line 38
Notice:  Undefined index:  hits_by_hour in 
/var/www/html/admin/xcache.tpl.php on line 81
Notice:  Undefined index:  hits_by_second in 
/var/www/html/admin/xcache.tpl.php on line 82
Notice:  Undefined index:  hits_by_hour in 
/var/www/html/admin/xcache.tpl.php on line 83
Warning:  Invalid argument supplied for foreach() in 
/var/www/html/admin/xcache.php on line 169
Notice:  Undefined index:  hits_by_hour in 
/var/www/html/admin/xcache.tpl.php on line 84
Posted by moo XCache
on 10.02.2010 05:19
check phpinfo() for your xcache module version. i guess it's not up to 
date. or you may forgot to restart your php(webserver?)
Posted by funkyfela (Guest)
on 19.03.2010 10:59
Just add this on your page, i believe it will solve your problem if 
you've not solved it yet.

$ebits = ini_get('error_reporting');
error_reporting($ebits ^ E_NOTICE);



VH wrote:
> I'm running PHP v 5.2.9
> XCache v. 1.3.0
> 
> Getting these errors on XCache 1.3.0 Administartor....
> 
> Notice:  Undefined index:  avail in /var/www/html/admin/xcache.tpl.php 
> on line 58
> Notice:  Undefined index:  size in /var/www/html/admin/xcache.tpl.php on 
> line 58
> Warning:  Division by zero in /var/www/html/admin/xcache.tpl.php on line 
> 58
> Notice:  Undefined index:  slots in /var/www/html/admin/xcache.tpl.php 
> on line 76
> Notice:  Undefined index:  size in /var/www/html/admin/xcache.tpl.php on 
> line 77
> Notice:  Undefined index:  avail in /var/www/html/admin/xcache.tpl.php 
> on line 78
> Notice:  Undefined index:  slots in /var/www/html/admin/xcache.php on 
> line 38
> Notice:  Undefined index:  size in /var/www/html/admin/xcache.php on 
> line 38
> Notice:  Undefined index:  avail in /var/www/html/admin/xcache.php on 
> line 38
> Notice:  Undefined index:  hits in /var/www/html/admin/xcache.php on 
> line 38
> Notice:  Undefined index:  misses in /var/www/html/admin/xcache.php on 
> line 38
> Notice:  Undefined index:  clogs in /var/www/html/admin/xcache.php on 
> line 38
> Notice:  Undefined index:  ooms in /var/www/html/admin/xcache.php on 
> line 38
> Notice:  Undefined index:  errors in /var/www/html/admin/xcache.php on 
> line 38
> Notice:  Undefined index:  cached in /var/www/html/admin/xcache.php on 
> line 38
> Notice:  Undefined index:  deleted in /var/www/html/admin/xcache.php on 
> line 38
> Notice:  Undefined index:  hits_by_hour in 
> /var/www/html/admin/xcache.tpl.php on line 81
> Notice:  Undefined index:  hits_by_second in 
> /var/www/html/admin/xcache.tpl.php on line 82
> Notice:  Undefined index:  hits_by_hour in 
> /var/www/html/admin/xcache.tpl.php on line 83
> Warning:  Invalid argument supplied for foreach() in 
> /var/www/html/admin/xcache.php on line 169
> Notice:  Undefined index:  hits_by_hour in 
> /var/www/html/admin/xcache.tpl.php on line 84