Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include(): Failed opening 'Phpseclib\Crypt\Blowfish.php' #1780

Closed
luigifab opened this issue Aug 12, 2021 · 0 comments · Fixed by #2300
Closed

include(): Failed opening 'Phpseclib\Crypt\Blowfish.php' #1780

luigifab opened this issue Aug 12, 2021 · 0 comments · Fixed by #2300

Comments

@luigifab
Copy link
Contributor

luigifab commented Aug 12, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants