Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: [Solved]: Fix for upgrade to PHP 5.3 in debugger.inc  (Read 6163 times)

0 Members and 1 Guest are viewing this topic.

sdstern

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
    • My Picture Gallery
[Solved]: Fix for upgrade to PHP 5.3 in debugger.inc
« on: November 27, 2009, 10:59:35 pm »

I'm getting many, many copies of this onscreen since installing PHP 5.3

Notice: Undefined offset: 8192 in /var/www/gallery/include/debugger.inc.php on line 112

Here's line 112
 $this->report[$filename][] = $errortype[$errno]." line $linenum: ".$errmsg;

It appears that the value of $errno is 8192

PHP 5.3 adds two new numbers:
8192=> 'use of deprecated functions', 16384=>'use of deprecated user code'. These need to be added to the errortype array at the start of the file.
« Last Edit: November 28, 2009, 09:07:44 am by Joachim Müller »
Logged

Nibbler

  • Guest
Re: Fix for upgrade to PHP 5.3 in debugger.inc
« Reply #1 on: November 27, 2009, 11:32:28 pm »

We fixed this months ago. Update your gallery.
Logged

sdstern

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
    • My Picture Gallery
Re: Fix for upgrade to PHP 5.3 in debugger.inc
« Reply #2 on: November 27, 2009, 11:47:10 pm »

Just did. Thanks.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.