Closed
Description
We are using OpenMage 20.0.12 with PHP 8.0.9 with Sentry.
There are a huge of errors like this:
include(): Failed opening 'Phpseclib\Crypt\Blowfish.php' for inclusion (include_path=
'/var/www/website/shop/web/app/code/local:/var/www/website/shop/web/app/code/community:
/var/www/website/shop/web/app/code/core:/var/www/website/shop/web/lib:.:/usr/share/php')
We have added a quick fix some months ago in lib/Varien/Autoload.php
:
public function autoload($class)
{
//return @include str_replace(' ', DIRECTORY_SEPARATOR, ucwords(str_replace('_', ' ', $class))) . '.php';
return @include str_replace(' ', DIRECTORY_SEPARATOR, ucwords(str_replace(['_', '\\'], [' ', DIRECTORY_SEPARATOR], $class))) . '.php';
}
And we have created a link from Phpseclib to phpseclib in lib.
Error is triggered for example in System / Configuration, in all sections with an obscure
field. To display the error on browser, remove the @
in lib/Varien/Autoload.php
.
Is this include failed is specific to our installation? And because there is a @
nobody saw it?