Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Notice line 2108: Undefined offset: 1 (solution)  (Read 5872 times)

0 Members and 1 Guest are viewing this topic.

Andi

  • VIP
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 85
  • Join the Future
    • www.pragmamx.org
Notice line 2108: Undefined offset: 1 (solution)
« on: October 25, 2004, 11:45:37 pm »

Hi :)

a small "notice error" in file functions.inc.php,v 1.129 2004/10/18 08:27:36

Notice line 2108: Undefined offset: 1

Solution:

change from:
$return.= $val[1];

to:
if (isset($val[1])) {$return.= $val[1];}
« Last Edit: October 26, 2004, 06:53:10 am by GauGau »
Logged
hope, I could help you... :)

Andi

  • VIP
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 85
  • Join the Future
    • www.pragmamx.org
Re: Notice line 2108: Undefined offset: 1 (solution)
« Reply #1 on: October 26, 2004, 12:04:07 am »

upload.php,v 1.58 2004/10/24 22:28:43

Quote
Notice line 1714: Use of undefined constant stream_get_meta_data - assumed 'stream_get_meta_data'

Solution:

quote the string "stream_get_meta_data"
function_exists('stream_get_meta_data')

same error in line 1369
Logged
hope, I could help you... :)

Andi

  • VIP
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 85
  • Join the Future
    • www.pragmamx.org
Re: Notice line 2108: Undefined offset: 1 (solution)
« Reply #2 on: October 26, 2004, 12:27:13 am »

there are more small notices in upload.php from Line 188 to line 230 like this:
Quote
Notice line 225: Use of undefined constant cat - assumed 'cat'

Solution:

the strings cat, title, aid, etc. must be quoted $val['aid'] instead $val[aid]

Logged
hope, I could help you... :)

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Notice line 2108: Undefined offset: 1 (solution)
« Reply #3 on: October 26, 2004, 06:52:57 am »

fixed in devel cvs

Joachim
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.