Odd issues with nightly...

Ok, so I updated to the nightly so I could keep up with the recent fixes etc and then I noticed something... half of my image page doesn't show.. It's quite a large chunk of stuff that for whatever reason.. just doesn't load. I'm not seeing any errors or anything in the logs.

Compare the live version (which I updated to nightly) to the base 1.2.6 version that I uploaded as test and are using the exact same theme files.

Nightly (10-28 date):
http://www.michealmalone.com/zen/seattle-day-trip-10-9-2009/2009-10-09-09.44.39.jpg.php

1.2.6:
http://www.michealmalone.com/zentest/seattle-day-trip-10-9-2009/2009-10-09-09.44.39.jpg.php

It appears to be doing it on all themes. From what I can tell it just stops loading the page after imagedata... On default theme as well. I noticed it because the adminmenubox wasn't being loaded. I can't see anything outstanding in the code that would cause it but I haven't been over everything with a finetooth comb yet...

Comments

  • There must be a CGI error somewhere. Either that or the server is timing out. Do you get the problem on other image pages?
  • Does your theme use `printImageEXIFData()` by chance? If so enable the `deprecated_functions` plugin.
  • `code`<?php
    if (getImageEXIFData()) {echo "".gettext("Image Info")."";
    printImageMetadata('', false);
    }
    ?> `code`

    it seems to stop from there on.. it's a theme just stylized off the example them for now. the default example theme does the same. In the error logs I'm seeing:

    [Sat Oct 31 20:30:32 2009] [error] [client 24.16.176.27] PHP Warning: Module 'SQLite' already loaded in Unknown on line 0, referer: http://www.michealmalone.com/zen/themes/my_theme/zen.css
    [Sat Oct 31 20:30:35 2009] [error] [client 24.16.176.27] PHP Warning: Module 'SQLite' already loaded in Unknown on line 0, referer: http://www.michealmalone.com/zen/index.php
    [Sat Oct 31 20:30:35 2009] [error] [client 24.16.176.27] PHP Warning: Module 'SQLite' already loaded in Unknown on line 0, referer: http://www.michealmalone.com/zen/seattle-day-trip-10-9-2009/
    [Sat Oct 31 20:30:35 2009] [error] [client 24.16.176.27] PHP Warning: Module 'SQLite' already loaded in Unknown on line 0, referer: http://www.michealmalone.com/zen/themes/my_theme/zen.css
    [Sat Oct 31 20:30:40 2009] [error] [client 24.16.176.27] PHP Warning: Module 'SQLite' already loaded in Unknown on line 0, referer: http://www.michealmalone.com/zen/seattle-day-trip-10-9-2009/
    [Sat Oct 31 20:30:40 2009] [error] [client 24.16.176.27] PHP Fatal error: Call to undefined method _Image::getExifData() in /usr/local/pem/vhosts/200164/webspace/httpdocs/zen/zp-core/template-functions.php on line 2303, referer: http://www.michealmalone.com/zen/seattle-day-trip-10-9-2009/
    [Sat Oct 31 20:30:40 2009] [error] [client 24.16.176.27] PHP Warning: Module 'SQLite' already loaded in Unknown on line 0, referer: http://www.michealmalone.com/zen/seattle-day-trip-10-9-2009/2009-10-09-09.44.39.jpg.php
    [Sat Oct 31 20:30:41 2009] [error] [client 24.16.176.27] PHP Warning: Module 'SQLite' already loaded in Unknown on line 0, referer: http://www.michealmalone.com/zen/themes/my_theme/zen.css

    This is just a theme based off the example theme. Not much in the way of code changes.

    Edit: I tried turing on deprecated functions and it just leaves a blank white screen.
  • Also, using the exact same theme files produces a properly output page on the standard 1.2.6.

    This page output errors happen on the default example theme as well.
  • As sbillard said, `printImageEXIFData()` and, consequently, `getImageEXIFData()` are both deprecated. All deprecated functions have been moved to a plugin (the `deprecated_functions` plugin) for legacy support. The two functions `printImageMetadata()` and `getImageMetadata()` replace the former two functions respectively. You can fix the problem by either using the newer functions or simply activating the `deprecated_functions` plugin.

    Also, the reason that this happens on the example theme as well is that the example theme has been removed in the nightly builds and therefore has not been updated along with zenphoto.
  • Has the default theme also been removed? I'm noticing in the default theme that it's stopped generation of adminmenubox as well. When comparing the lines in template_function.php the nightly contains:

    function getImageEXIFData() {
    global $_zp_current_image;
    if (is_null($_zp_current_image)) return false;
    return $_zp_current_image->getExifData();
    }

    While the base 1.2.6 contains:
    function getImageMetaData() {
    global $_zp_current_image;
    if (is_null($_zp_current_image)) return false;
    return $_zp_current_image->getMetaData();
    }

    Also, changing the one reference to getImageEXIFData() in the theme to getImageMetadata() doesn't resolve the issue.

    Edit: in fact changing it to getImageMetadata generates:
    [Sat Oct 31 21:15:01 2009] [error] [client 24.16.176.27] PHP Fatal error: Call to undefined function getImageMetadata() in /usr/local/pem/vhosts/200164/webspace/httpdocs/zen/themes/my_theme/image.php on line 47, referer: http://www.michealmalone.com/zen/seattle-day-trip-10-9-2009/

    If you look at the example links above, I've changed the skin to default on both the test and live galleries. Just to make sure it's not any code modifications in my theme etc. It still produces the same errors, stopping the image.php page generation part way through.
  • I downloaded a fresh version of 1.2.6 to verify and found that there was no `getImageMetadata()` function in 1.2.6. There is also no `getImageEXIFData()` in the nightly, at least in `template-functions.php`. It sounds as though you have some files from 1.2.6 and the nightly mixed. You might want to make sure that all your files are the same version.

    Also, the default theme is still present in the nightly builds and should be updated accordingly with the zenphoto core.
  • Well then I guess I'll start anew after work and see what happens... a bit frustrating.
  • Ok, so after work I uploaded a clean nightly, and took another go at it. It didn't dawn on me earlier (cause I was extremely tired) that I wasn't replacing my local copy as well so when I'd edit and upload it was putting the old files back.

    Chalk one up to idiocy on my part, lol. Thanks for the patience and help guys.
Sign In or Register to comment.