Jump to content

PrestaShop 1.7.8 Migration Errors


MariuszS

Recommended Posts

After migrating the store to a new server, nothing is working.

I enabled debug mode and encountered the following errors:

Quote

Warning: require(/vendor/composer/../markbaker/matrix/classes/src/Functions/adjoint.php): Failed to open stream: No such file or directory in /vendor/composer/autoload_real.php on line 45 Warning: require(/vendor/composer/../markbaker/matrix/classes/src/Functions/adjoint.php): Failed to open stream: No such file or directory in /vendor/composer/autoload_real.php on line 45 Fatal error: Uncaught Error: Failed opening required '/vendor/composer/../markbaker/matrix/classes/src/Functions/adjoint.php' (include_path='/vendor/pear/pear_exception:/vendor/pear/console_getopt:/vendor/pear/pear-core-minimal/src:/vendor/pear/archive_tar:.:/usr/local/share/pear') in /vendor/composer/autoload_real.php:45 Stack trace: #0 /vendor/composer/autoload_real.php(49): {closure}('3af723442581d6c...', '/usr/home/serwe...') #1 /vendor/autoload.php(25): ComposerAutoloaderInite611b55ee3df4836a87c1b9dc1f89454::getLoader() #2 /config/autoload.php(26): require_once('/usr/home/serwe...') #3 /config/config.inc.php(38): require_once('/usr/home/serwe...') #4 /back-office/index.php(40): require('/usr/home/serwe...') #5 {main} thrown in /vendor/composer/autoload_real.php on line 45

The `var/cache` folder has been cleared.

Link to comment
Share on other sites

Composer is trying to load markbaker/matrix file adjoint.php, but that file is not on the server.”

So after the migration, your /vendor directory is incomplete or mismatched with the rest of the shop.

 

Re-upload from your backup (most common)

  1. On your old server backup (or local copy), locate the shop root and the vendor folder.
  2. On your computer, ZIP or tar only the vendor directory so you don’t miss anything.
  3. Upload that ZIP to the new server (SFTP/FTP, or via your hosting file manager).
  4. Unzip it into the shop root, so you end up with:
  • /vendor/composer/...
  • /vendor/markbaker/matrix/classes/src/Functions/adjoint.php

After that, clear cache manually on the new server:

Delete everything inside /var/cache/ (keep the cache folder itself).

Then reload the back office/front office and see if the error disappears.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...