Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-17480

PHP fatal error in version check failure

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.3.15
    • 3.3.14, 3.3.15-RC1
    • Version control
    • None

      If version check fails, PHP fatal error is being thrown:

      Fatal error: Uncaught Error: Call to undefined method RuntimeException::get_parameters() in /phpBB3/includes/acp/acp_main.php:490 Stack trace: #0 /phpBB3/includes/functions_module.php(684): acp_main->main('main', 'main') #1 /phpBB3/adm/index.php(81): p_master->load_active() #2 {main} thrown in /phpBB3/includes/acp/acp_main.php on line 490
      Fatal error: Uncaught Error: Call to undefined method RuntimeException::get_parameters() in ./includes/acp/acp_main.php:463
      

      For the reference:
      https://www.phpbb.com/community/viewtopic.php?p=16040440#p16040440
      https://www.phpbb.com/community/viewtopic.php?p=16055032#p16055032

      The cause is that PHP RuntimeException class does not have get_parameters() method called in acp_main.php here https://github.com/phpbb/phpbb/blob/66650cb0e2cfbb81b119a4019b086e69335339b2/phpBB/includes/acp/acp_main.php#L490C100-L490C116 which belongs to \phpbb\exception\runtime_exception class.

            Marc Marc
            rxu rxu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: