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

Installer permission handling on PHP 8.2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.3.11
    • 3.3.10
    • Installation system
    • None

      If the cache is not writable, when running the installer, you will see this error at the top of the screen:

      [phpBB Debug] "mkdir(): Permission denied" in file /var/www/html/phpbb/cache/driver/file.php on line 42 

      and this error at the bottom of the screen:

      Fatal error: Uncaught TypeError: Unsupported operand types: phpbb\request\deactivated_super_global + phpbb\request\deactivated_super_global in /var/www/html/phpbb/request/request.php:79
       
      Stack trace: 
      #0 /var/www/html/install/startup.php(172): phpbb\request\request->__construct(Object(phpbb\request\type_cast_helper)) 
      #1 [internal function]: installer_shutdown_function(1) 
      #2 {main}
      thrown in /var/www/html/phpbb/request/request.php on line 79 

      After tweaking the cache's file.php to do some more checking and not call mkdir(), you then run into this error when the file system checks are being performed:

      Fatal error:  Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource, bool given in /var/www/html/phpbb/install/module/requirements/task/check_filesystem.php:149
      Stack trace:
      #0 /var/www/html/phpbb/install/module/requirements/task/check_filesystem.php(149): fclose(false)
      #1 /var/www/html/phpbb/install/module/requirements/task/check_filesystem.php(112): phpbb\install\module\requirements\task\check_filesystem->check_file('config.php', false)
      #2 /var/www/html/phpbb/install/module/requirements/abstract_requirements_module.php(40): phpbb\install\module\requirements\task\check_filesystem->run()
      #3 /var/www/html/phpbb/install/installer.php(219): phpbb\install\module\requirements\abstract_requirements_module->run()
      #4 /var/www/html/phpbb/install/controller/install.php(133): phpbb\install\installer->run()
      #5 /var/www/html/vendor/symfony/http-foundation/StreamedResponse.php(114): phpbb\install\controller\install->phpbb\install\controller\{closure}()
      #6 /var/www/html/vendor/symfony/http-foundation/Response.php(374): Symfony\Component\HttpFoundation\StreamedResponse->sendContent()
      #7 /var/www/html/install/app.php(62): Symfony\Component\HttpFoundation\Response->send()
      #8 {main}
        thrown in /var/www/html/phpbb/install/module/requirements/task/check_filesystem.php
      on line 149 

            Derky Derky
            Noxwizard Patrick Webster
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: