Results 1 to 1 of 1

Thread: SMF and PHP 4.4.*

  1. #1
    sergey is offline Master Glow Jedi
    Join Date
    Aug 2005
    Posts
    472

    Default SMF and PHP 4.4.*

    Problem:
    You get the following error on SMF home page:

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

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

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

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

    Resolution:

    Change the line 232 in the file /home/username/public_html/forums/Sources/Subs.php :

    $ret = &mysql_query($db_string, $db_connection);

    to:
    $ret = mysql_query($db_string, $db_connection);
    Last edited by Matt; 10-24-2006 at 05:23 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14