Jump to content

Autoload Error.


Recommended Posts


We have a vendor folder in our project root directory.

However, when we try to call the vendor/autoload.php file from the template file, we encounter the following error on the site:

PHP Fatal error:  Cannot declare class ComposerAutoloaderInit9249ca7144adea638e43f1ea4a5d11c5, because the name is already in use in C:\wamp64\www\ticf\site\assets\cache\FileCompiler\vendor\composer\autoload_real.php on line 5

please suggest how to fix this

Link to comment
Share on other sites

If the file vendor/autoload.php exists, it will be called automatically by ProcessWire's index.php. No need to call it manually.

  • Like 2
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...