Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-11140

MCP Front errors on reported posts

    Details

      Description

      Errors on mcp front if a pm is reported:

      [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 261: Undefined index: msg_id
      [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 262: Undefined index: msg_id
      [phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_privmsgs.php on line 2098: Undefined index: to_address
      [phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_privmsgs.php on line 2098: Undefined index: bcc_address
      ....

      Due to the following line:
      $sql_ary = $db->sql_build_query('SELECT', $sql_ary);
      $result = $db->sql_query_limit($sql, 5);

      Should be $sql instead of $sql_ary

        Activity

        Hide
        Oleg Oleg [X] (Inactive) added a comment -

        On my machine this comes with a fatal at the end:

        [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 260: Undefined index: msg_id
        [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 261: Undefined index: msg_id
        [phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_privmsgs.php on line 2154: Undefined index: to_address
        [phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_privmsgs.php on line 2154: Undefined index: bcc_address
        [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 271: Undefined index: report_id
        [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 273: Undefined index: user_id
        [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 273: Undefined index: username
        [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 273: Undefined index: user_colour
        [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 274: Undefined index: user_id
        [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 274: Undefined index: username
        [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 274: Undefined index: user_colour
        [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 275: Undefined index: user_id
        [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 275: Undefined index: username
        [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 275: Undefined index: user_colour
        [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 276: Undefined index: user_id
        [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 276: Undefined index: username
        [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 276: Undefined index: user_colour
        [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 278: Undefined index: author_id
        [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 278: Undefined index: author_name
        [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 278: Undefined index: author_colour
        [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 279: Undefined index: author_id
        [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 279: Undefined index: author_name
        [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 279: Undefined index: author_colour
        [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 280: Undefined index: author_id
        [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 280: Undefined index: author_name
        [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 280: Undefined index: author_colour
        [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 281: Undefined index: author_id
        [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 281: Undefined index: author_name
        [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 281: Undefined index: author_colour
        [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 283: Undefined index: message_subject
        [phpBB Debug] PHP Notice: in file [ROOT]/includes/mcp/mcp_front.php on line 284: Undefined index: report_time

        Fatal error: Uncaught exception 'Exception' with message 'DateTime::_construct() [<a href='datetime.--construct'>datetime.--construct</a>]: Failed to parse time string (@) at position 0 (@): Unexpected character' in /var/www/qi/boards/x29/includes/datetime.php:43 Stack trace: #0 /var/www/qi/boards/x29/includes/datetime.php(43): DateTime->construct('@', Object(DateTimeZone)) #1 /var/www/qi/boards/x29/includes/user.php(655): phpbb_datetime->_construct(Object(phpbb_user), '@', Object(DateTimeZone)) #2 /var/www/qi/boards/x29/includes/mcp/mcp_front.php(284): phpbb_user->format_date(NULL) #3 /var/www/qi/boards/x29/includes/mcp/mcp_main.php(142): mcp_front_view('main', 'front', '') #4 /var/www/qi/boards/x29/includes/functions_module.php(535): mcp_main->main('main', 'front') #5 /var/www/qi/boards/x29/mcp.php(236): p_master->load_active() #6

        {main}

        thrown in /var/www/qi/boards/x29/includes/datetime.php on line 43

        Show
        Oleg Oleg [X] (Inactive) added a comment - On my machine this comes with a fatal at the end: [phpBB Debug] PHP Notice: in file [ROOT] /includes/mcp/mcp_front.php on line 260: Undefined index: msg_id [phpBB Debug] PHP Notice: in file [ROOT] /includes/mcp/mcp_front.php on line 261: Undefined index: msg_id [phpBB Debug] PHP Notice: in file [ROOT] /includes/functions_privmsgs.php on line 2154: Undefined index: to_address [phpBB Debug] PHP Notice: in file [ROOT] /includes/functions_privmsgs.php on line 2154: Undefined index: bcc_address [phpBB Debug] PHP Notice: in file [ROOT] /includes/mcp/mcp_front.php on line 271: Undefined index: report_id [phpBB Debug] PHP Notice: in file [ROOT] /includes/mcp/mcp_front.php on line 273: Undefined index: user_id [phpBB Debug] PHP Notice: in file [ROOT] /includes/mcp/mcp_front.php on line 273: Undefined index: username [phpBB Debug] PHP Notice: in file [ROOT] /includes/mcp/mcp_front.php on line 273: Undefined index: user_colour [phpBB Debug] PHP Notice: in file [ROOT] /includes/mcp/mcp_front.php on line 274: Undefined index: user_id [phpBB Debug] PHP Notice: in file [ROOT] /includes/mcp/mcp_front.php on line 274: Undefined index: username [phpBB Debug] PHP Notice: in file [ROOT] /includes/mcp/mcp_front.php on line 274: Undefined index: user_colour [phpBB Debug] PHP Notice: in file [ROOT] /includes/mcp/mcp_front.php on line 275: Undefined index: user_id [phpBB Debug] PHP Notice: in file [ROOT] /includes/mcp/mcp_front.php on line 275: Undefined index: username [phpBB Debug] PHP Notice: in file [ROOT] /includes/mcp/mcp_front.php on line 275: Undefined index: user_colour [phpBB Debug] PHP Notice: in file [ROOT] /includes/mcp/mcp_front.php on line 276: Undefined index: user_id [phpBB Debug] PHP Notice: in file [ROOT] /includes/mcp/mcp_front.php on line 276: Undefined index: username [phpBB Debug] PHP Notice: in file [ROOT] /includes/mcp/mcp_front.php on line 276: Undefined index: user_colour [phpBB Debug] PHP Notice: in file [ROOT] /includes/mcp/mcp_front.php on line 278: Undefined index: author_id [phpBB Debug] PHP Notice: in file [ROOT] /includes/mcp/mcp_front.php on line 278: Undefined index: author_name [phpBB Debug] PHP Notice: in file [ROOT] /includes/mcp/mcp_front.php on line 278: Undefined index: author_colour [phpBB Debug] PHP Notice: in file [ROOT] /includes/mcp/mcp_front.php on line 279: Undefined index: author_id [phpBB Debug] PHP Notice: in file [ROOT] /includes/mcp/mcp_front.php on line 279: Undefined index: author_name [phpBB Debug] PHP Notice: in file [ROOT] /includes/mcp/mcp_front.php on line 279: Undefined index: author_colour [phpBB Debug] PHP Notice: in file [ROOT] /includes/mcp/mcp_front.php on line 280: Undefined index: author_id [phpBB Debug] PHP Notice: in file [ROOT] /includes/mcp/mcp_front.php on line 280: Undefined index: author_name [phpBB Debug] PHP Notice: in file [ROOT] /includes/mcp/mcp_front.php on line 280: Undefined index: author_colour [phpBB Debug] PHP Notice: in file [ROOT] /includes/mcp/mcp_front.php on line 281: Undefined index: author_id [phpBB Debug] PHP Notice: in file [ROOT] /includes/mcp/mcp_front.php on line 281: Undefined index: author_name [phpBB Debug] PHP Notice: in file [ROOT] /includes/mcp/mcp_front.php on line 281: Undefined index: author_colour [phpBB Debug] PHP Notice: in file [ROOT] /includes/mcp/mcp_front.php on line 283: Undefined index: message_subject [phpBB Debug] PHP Notice: in file [ROOT] /includes/mcp/mcp_front.php on line 284: Undefined index: report_time Fatal error: Uncaught exception 'Exception' with message 'DateTime::_ construct() [<a href='datetime.--construct'>datetime.--construct</a>] : Failed to parse time string (@) at position 0 (@): Unexpected character' in /var/www/qi/boards/x29/includes/datetime.php:43 Stack trace: #0 /var/www/qi/boards/x29/includes/datetime.php(43): DateTime-> construct('@', Object(DateTimeZone)) #1 /var/www/qi/boards/x29/includes/user.php(655): phpbb_datetime-> _construct(Object(phpbb_user), '@', Object(DateTimeZone)) #2 /var/www/qi/boards/x29/includes/mcp/mcp_front.php(284): phpbb_user->format_date(NULL) #3 /var/www/qi/boards/x29/includes/mcp/mcp_main.php(142): mcp_front_view('main', 'front', '') #4 /var/www/qi/boards/x29/includes/functions_module.php(535): mcp_main->main('main', 'front') #5 /var/www/qi/boards/x29/mcp.php(236): p_master->load_active() #6 {main} thrown in /var/www/qi/boards/x29/includes/datetime.php on line 43

          People

          • Assignee:
            Oleg Oleg [X] (Inactive)
            Reporter:
            EXreaction EXreaction [X] (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development