composer: Undefined function Composer\Autoload\includeFile()
As of aef0483cc92d982c10050f12b226abd485c5c008, I get the following error when loading my application. I’m running PHP 5.4.4.
PHP Fatal error: Call to undefined function Composer\\Autoload\\includeFile() in /var/www/workbench/foo/bar/vendor/composer/autoload_real.php on line 48
About this issue
- Original URL
- State: closed
- Created 13 years ago
- Comments: 17 (11 by maintainers)
Actually… I think I’ve solved it in my case. I’m running Laravel and the problematic file was in a workbench, which Laravel manually loads.
I ran
composer updateon the workbench but not on the Laravel install. The ClassLoader in Laravel was pre- aef0483cc92d982c10050f12b226abd485c5c008 so the function didn’t exist (because of the way workbench files are loaded).The fix was to
composer updatethe Laravel install. (I hadn’t originally done this because it’s on a production environment)