Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    after upgrade to 23.09.1: can't reach dashboard page

    Problems Installing or Upgrading pfSense Software
    3
    5
    563
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      j96
      last edited by j96

      After the upgrade to 23.09.1 on pfsense+ the dashboard page is unreachable showing the error below. All the other pages are working fine.

      PHP ERROR: Type: 1, File: /usr/local/www/widgets/include/disks.inc, Line: 22, Message: Uncaught Error: Failed opening required 'vendor/autoload.php' (include_path='.:/etc/inc:/usr/local/pfSense/include:/usr/local/pfSense/include/www:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg:/usr/local/www/classes:/usr/local/www/classes/Form:/usr/local/share/pear:/usr/local/share/openssl_x509_crl/') in /usr/local/www/widgets/include/disks.inc:22
      Stack trace:
      #0 /usr/local/www/index.php(83): include_once()
      #1 {main}
      thrown @ 2023-12-08 21:52:11

      J 1 Reply Last reply Reply Quote 0
      • J
        jrey @j96
        last edited by

        @j96

        does the file actually exist ?

        /usr/local/pfSense/include/vendor/autoload.php

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          It should:

          [23.09.1-RELEASE][admin@6100.stevew.lan]/root: find / -name "*autoload.php*"
          /usr/local/pfSense/include/vendor/autoload.php
          
          1 Reply Last reply Reply Quote 0
          • J
            j96
            last edited by j96

            Thank you!

            There is the file "autoload.php.pkgsave" – It appears the file got renamed during the upgrade process.

            Contents of autoload.php.pkgsave:

            <?php
            
            // autoload.php @generated by Composer
            
            if (PHP_VERSION_ID < 50600) {
                if (!headers_sent()) {
                    header('HTTP/1.1 500 Internal Server Error');
                }
                $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
                if (!ini_get('display_errors')) {
                    if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
                        fwrite(STDERR, $err);
                    } elseif (!headers_sent()) {
                        echo $err;
                    }
                }
                trigger_error(
                    $err,
                    E_USER_ERROR
                );
            }
            
            require_once __DIR__ . '/composer/autoload_real.php';
            
            return ComposerAutoloaderInit9f2b1b35e4bfd825a2d7b1f0b2820b93::getLoader();
            

            but if I add the file autoload.php with the same content in the same directory the dashboard is still unreachable showing following error:

            Fatal error: Uncaught Error: Failed opening required '/usr/local/pfSense/include/vendor/composer/autoload_real.php' (include_path='.:/etc/inc:/usr/local/pfSense/include:/usr/local/pfSense/include/www:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg:/usr/local/www/classes:/usr/local/www/classes/Form:/usr/local/share/pear:/usr/local/share/openssl_x509_crl/') in /usr/local/pfSense/include/vendor/autoload.php:23 Stack trace: #0 /usr/local/www/widgets/include/disks.inc(22): require_once() #1 /usr/local/www/index.php(83): include_once('/usr/local/www/...') #2 {main} thrown in /usr/local/pfSense/include/vendor/autoload.php on line 23 PHP ERROR: Type: 1, File: /usr/local/pfSense/include/vendor/autoload.php, Line: 23, Message: Uncaught Error: Failed opening required '/usr/local/pfSense/include/vendor/composer/autoload_real.php' (include_path='.:/etc/inc:/usr/local/pfSense/include:/usr/local/pfSense/include/www:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg:/usr/local/www/classes:/usr/local/www/classes/Form:/usr/local/share/pear:/usr/local/share/openssl_x509_crl/') in /usr/local/pfSense/include/vendor/autoload.php:23 Stack trace: #0 /usr/local/www/widgets/include/disks.inc(22): require_once() #1 /usr/local/www/index.php(83): include_once('/usr/local/www/...') #2 {main} thrown

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              [23.09.1-RELEASE][admin@6100.stevew.lan]/root: pkg which /usr/local/pfSense/include/vendor/autoload.php
              /usr/local/pfSense/include/vendor/autoload.php was installed by package pfSense-composer-deps-0.1
              [23.09.1-RELEASE][admin@6100.stevew.lan]/root: pkg which /usr/local/pfSense/include/vendor/composer/autoload_real.php
              /usr/local/pfSense/include/vendor/composer/autoload_real.php was installed by package pfSense-composer-deps-0.1
              

              So try installing or reinstalling pfSense-composer-deps-0.1:

              pkg-static install -f pfSense-composer-deps-0.1

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.