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

Unknown named parameter $log_data in phpbb/log/log.php

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.3.2, 3.3.3, 3.3.4
    • 3.3.5-RC1
    • None
    • Debian Bullseye
      Apache v2.4.46
      PHP v8.0.3 - v8.0.7
      MariaDB v10.5.9

    Description

      When opening the user logs in ACP, I get a 500 server error and a related PHP error:

      PHP Fatal error: Uncaught Error: Unknown named parameter $log_data in /var/www/phpbb/phpbb/log/log.php:698
      Stack trace:
      #0 /var/www/phpbb/phpbb/log/log.php(698): call_user_func_array()
      #1 /var/www/phpbb/includes/functions_admin.php(2620): phpbb\\log
      log->get_logs()
      #2 /var/www/phpbb/includes/acp/acp_logs.php(132): view_log()
      #3 /var/www/phpbb/includes/functions_module.php(676): acp_logs->main()
      #4 /var/www/phpbb/adm/index.php(81): p_master->load_active()
      #5

      {main}

      thrown in /var/www/phpbb/phpbb/log/log.php on line 698

      I'm not sure when exactly this appeared, probably with one of the latest PHP8 patch versions. I couldn't fine a definite bug in the code either. It's assured that the log_data field exists: https://github.com/phpbb/phpbb/blob/master/phpBB/phpbb/log/log.php#L668
      Adding another isset() does not help. I assured that caches were cleared. Probably it's also a bug in PHP, but you guys might have better insights and ideas how do debug.

      Only user logs are affected, moderator, admin and errors logs show up well. Maybe also the size is relevant? MariaDB and the webserver do not throw further errors.

      Attachments

        Activity

          People

            Marc Marc
            MichaIng MichaIng [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: