Notice line 2108: Undefined offset: 1 (solution) Notice line 2108: Undefined offset: 1 (solution)
 

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

Main Menu

Notice line 2108: Undefined offset: 1 (solution)

Started by Andi, October 25, 2004, 11:45:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andi

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];}
hope, I could help you... :)

Andi

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

QuoteNotice 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
hope, I could help you... :)

Andi

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

Solution:

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

hope, I could help you... :)

Joachim Müller