Error warnings with latest nightly 6 december

All is working fine, I just get these nasty warnings on top of my gallery. The first one I also get when I ran setup.php.

EDIT: I just uploaded the contents of my 'old' 1.2.2. zp-core files to get rid of those warnings. The ordering of the images by ID seems te be ok now, so I don't know what changes to what files could have caused these warnings:

Notice: Only variables should be assigned by reference in /srv/jackdaw/www/www.spoenk.nl/beeldend/zp-core/classes.php on line 247

Warning: Cannot modify header information - headers already sent by (output started at /srv/jackdaw/www/www.spoenk.nl/beeldend/zp-core/classes.php:247) in /srv/jackdaw/www/www.spoenk.nl/beeldend/index.php on line 25

Notice: Only variables should be assigned by reference in /srv/jackdaw/www/www.spoenk.nl/beeldend/zp-core/classes.php on line 247

Notice: Only variables should be assigned by reference in /srv/jackdaw/www/www.spoenk.nl/beeldend/zp-core/classes.php on line 247

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /srv/jackdaw/www/www.spoenk.nl/beeldend/zp-core/classes.php:247) in /srv/jackdaw/www/www.spoenk.nl/beeldend/zp-core/admin-functions.php on line 9

Warning: Cannot modify header information - headers already sent by (output started at /srv/jackdaw/www/www.spoenk.nl/beeldend/zp-core/classes.php:247) in /srv/jackdaw/www/www.spoenk.nl/beeldend/index.php on line 96

Warning: Cannot modify header information - headers already sent by (output started at /srv/jackdaw/www/www.spoenk.nl/beeldend/zp-core/classes.php:247) in /srv/jackdaw/www/www.spoenk.nl/beeldend/index.php on line 97

Comments

  • acrylian Administrator, Developer
    Hm, I just updated from the svn and don't see anything of that...
  • Sounds like your error reporting might be including E_STRICT. This should have been overridden by zenphoto, but maybe not. Anyway, you can change it (in functions-basic.php) to E_ALL ^E_NOTIFY and these messages will probably go away.
  • Tried it all again and got those messages back.
    Where do I change it in functions-basic.php? I can't find something called E_STRICT.
  • I found this in classes.php on line 247 and with my limited knowledge of php it looked strange:

    `
    $cache_location = &$this->cache();
    $entry = &$cache_location[$this->unique_set[$this->cache_by]];
    `
    Notice the ampersand before the dollar sign. When I removed those two and uploaded classes.php again, the error messages went away.
  • That is indeed what is being complained of. But Tris will have to comment on whether removing it will break anything. So far as I know the code has been like this from the beginning, so only the error report is new. If you have not changed PHP versions, then setting the error reporting to E_ALL ^E_NOTIFY as suggested above should.

    The code now reads just `error_reporting(E_ALL);`--line 81.
Sign In or Register to comment.