1 (edited by tempus 2005-01-11 23:06)

Topic: Undefined Offset

I just installed a fresh version of punbb, and when i visit the admin cp i get this error:

Notice: Undefined offset: 1 in /homepages/9/d90841515/htdocs/forum/admin_index.php on line 83

Notice: Undefined offset: 2 in /homepages/9/d90841515/htdocs/forum/admin_index.php on line 83

From what i've seen, it only appears when i visit the admin index.

Anyone understand this error?

Re: Undefined Offset

Has been reported to me via e-mail and has been fixed.

In admin_index.php, search for

if (@file_exists('/proc/loadavg'))

and replace it with

if (@file_exists('/proc/loadavg') && is_readable('/proc/loadavg'))

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Undefined Offset

thank you very much smile

Re: Undefined Offset

i just downloaded the 1.2 final .tar.gz -

the loadavg change had not been made to line 75 of admin_index.php (two posts above).

might want to repackage the 1.2 release files.

Re: Undefined Offset

trel1023: By fixed I mean that it is fixed in Subversion and will be incorporated into the next release (1.2.1).

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Undefined Offset

got it