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

MCP Banning: Max execution time exceeded

    Details

      Description

      Fatal error: Maximum execution time of 30 seconds exceeded in area51-phpbb3/phpBB/phpbb/template/context.php on line 193
      Call Stack

      1. Time Memory Function Location
        1 0.0017 1051368 {main}

        ( ) ../mcp.php:0
        2 0.7600 26055640 p_master->load_active( ) ../mcp.php:237
        3 0.7608 26149744 mcp_ban->main( ) ../functions_module.php:604
        4 0.7689 27554424 acp_ban::display_ban_options( ) ../mcp_ban.php:136
        5 33.4993 32624360 phpbb\template\base->assign_block_vars( ) ../acp_ban.php:224
        6 33.4993 32624360 phpbb\template\context->assign_block_vars( ) ../base.php:108

        Issue Links

          Activity

          Hide
          prototech prototech added a comment -

          This is still not quite fixed. While the max execution time is no longer reached, the page still takes far too long to load (~9s for 3819 rows). The issue continues being the foreach loop used to assign S_NUM_ROWS. Possible solution and improvement is to assign S_NUM_ROWS, S_FIRST_ROW, S_LAST_ROW, S_ROW_COUNT, and S_NUM_ROW when display() or assign_display() are called instead of every time a row is added.

          Show
          prototech prototech added a comment - This is still not quite fixed. While the max execution time is no longer reached, the page still takes far too long to load (~9s for 3819 rows). The issue continues being the foreach loop used to assign S_NUM_ROWS. Possible solution and improvement is to assign S_NUM_ROWS, S_FIRST_ROW, S_LAST_ROW, S_ROW_COUNT, and S_NUM_ROW when display() or assign_display() are called instead of every time a row is added.
          Hide
          nickvergessen Joas Schilling added a comment -
          Show
          nickvergessen Joas Schilling added a comment - prototech fixed the issue in https://tracker.phpbb.com/browse/PHPBB3-12892

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development