Error in theme: getAlbumStatistic

Dear Support,

Today i checked my php error log file and i found the following four major errors:

[Mon Nov 10 07:35:09 2008] [error] [client 64.71.16.2] PHP Fatal error: Call to undefined function getAlbumStatistic() in /home/xxx/public_html/gallery/themes/default/sidebar.php on line 11

i have checked in my theme and i'm using this line:
$latestalbums = array(getAlbumStatistic(4, "latest"));

[Mon Nov 10 07:27:17 2008] [error] [client 67.202.59.141] PHP Warning: fclose(): supplied argument is not a valid stream resource in /home/xxx/public_html/gallery/zp-core/plugins/static_html_cache.php on line 112
[Mon Nov 10 07:27:17 2008] [error] [client 67.202.59.141] PHP Warning: fputs(): supplied argument is not a valid stream resource in /home/xxx/public_html/gallery/zp-core/plugins/static_html_cache.php on line 111
[Mon Nov 10 07:27:17 2008] [error] [client 67.202.59.141] PHP Warning: fopen(cache_html/) [function.fopen]: failed to open stream: Is a directory in /home/xxx/public_html/gallery/zp-core/plugins/static_html_cache.php on line 110

Pleas3 help me how to resolve this issue?

Comments

  • `getAlbumStatistics()` is a plugin function, so perhpas you have not got that plugin enabled.

    The errors in static_html_cache.php seem to be related to not being able to open the cache file. There is a recent fix for this script so your best bet it to disable the script until after tonight's build. Then tomorrow install the nightly build and reenable the script.
  • I have checked that, album statistics plug-in is enabled, but i'm getting this error.
  • Sorry sbillard, this is my mistake, i'm using this function in 404.php page.
  • i checked my php error log file and i found the following Errors:

    [04-Dec-2008 03:13:45] PHP Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error: in /home/xxxx/public_html/gallery/zp-core/functions-image.php on line 65
    [04-Dec-2008 03:13:46] PHP Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '/home/xxxx/public_html/gallery/albums/actress/bhuvaneswari/super-hot-stills/bhuvaneswari-0013.jpg' is not a valid JPEG file in /home/xxxx/public_html/gallery/zp-core/functions-image.php on line 65
    [04-Dec-2008 03:13:46] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xxxx/public_html/gallery/zp-core/functions-image.php:65) in /home/xxxx/public_html/gallery/zp-core/i.php on line 205
    [04-Dec-2008 03:13:46] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xxxx/public_html/gallery/zp-core/functions-image.php:65) in /home/xxxx/public_html/gallery/zp-core/i.php on line 206
    [04-Dec-2008 03:13:46] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xxxx/public_html/gallery/zp-core/functions-image.php:65) in /home/xxxx/public_html/gallery/zp-core/i.php on line 207
  • Something in the image is tripping out the PHP graphics processing. You can try loading the image in an image editor and resaving it. This often will make a more cononical image.
Sign In or Register to comment.