I'm trying to move my ZF2 project to web server. I copied following from my local computer: /config, /data, /module, /public, /vendor and init_autoloader.php. Apache Virtual Host is setup to pointing on /public folder. When I try to run application, browser return error
Fatal error: Uncaught exception 'Zend\Loader\Exception\InvalidArgumentException' with message 'Autoloader class Zend\Loader\StandardAutoloader must implement Zend\Loader\SplAutoloader' in /var/www/vhosts/.../vendor/zendframework/zendframework/library/Zend/Loader/AutoloaderFactory.php:91 Stack trace: #0 /var/www/vhosts/.../vendor/zendframework/zendframework/library/Zend/ModuleManager/Listener/AutoloaderListener.php(34): Zend\Loader\AutoloaderFactory::factory(Array) #1 [internal function]: Zend\ModuleManager\Listener\AutoloaderListener->__invoke(Object(Zend\ModuleManager\ModuleEvent)) #2 /var/www/vhosts/.../vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(468): call_user_func(Object(Zend\ModuleManager\Listener\AutoloaderListener), Object(Zend\ModuleManager\ModuleEvent)) #3 /var/www/vhosts/.../vendor/zendframework/zendframework/library/Zend/EventManag in /var/www/vhosts/.../vendor/zendframework/zendframework/library/Zend/Loader/AutoloaderFactory.php on line 91
Any suggestions? Thanks.