Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: diva_uno - helmikuu 07, 2006, 02:47:52 AP

Otsikko: Serious Problem with board...
Kirjoitti: diva_uno - helmikuu 07, 2006, 02:47:52 AP
For some reason when I was using my package manager to update my forum to 1.0.6  - I ended up with 2 installations. So I clicked uninstall on one of them and now my board says this:

Notice: Only variables should be assigned by reference in /home/site/public_html/community/Sources/Subs.php on line 232

Notice: Undefined index: is_admin in /home/site/public_html/community/Sources/Security.php on line 556

Notice: Undefined index: permissions in /home/site/public_html/community/Sources/Security.php on line 563

Warning: in_array(): Wrong datatype for second argument in /home/site/public_html/community/Sources/Security.php on line 563
session_start(): Cannot send session cookie - headers already sent by (output started at /home/site/public_html/community/Sources/Subs.php:232)



So I manually changed every file. And I know I have to do something with the information in the xml file... but not quite sure how to do it.

Thanks in advance for the help.
Otsikko: Re: Serious Problem with board...
Kirjoitti: diva_uno - helmikuu 07, 2006, 04:12:01 AP
Looking in the Sub.php file...
This is the line that my forum is having problems with:
$ret = &mysql_query($db_string, $db_connection);

And these lines in Security.php:
if ($user_info['is_admin'])

if (!is_array($permission) && in_array($permission, $user_info['permissions']))


I'm really confused.

Otsikko: Re: Serious Problem with board...
Kirjoitti: diva_uno - helmikuu 07, 2006, 05:24:17 AP
I swear I did this like a couple weeks ago...
But the Subs.php code that I posted above...
I just removed the "&"
:-\