after upgrade to 23.09.1: can't reach dashboard page
-
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 -
-
It should:
[23.09.1-RELEASE][admin@6100.stevew.lan]/root: find / -name "*autoload.php*" /usr/local/pfSense/include/vendor/autoload.php
-
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
-
[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