I'm trying to take your ZF2 Project web server I have created the following copy from your local computer: / config , / data, / module, / public, / Know and init_autoloader.php Apache Virtual host / try public folder to point to the setup when I run the application I, the browser will return an error
Fatal Error: Unknown error 'Zend \ Loader \ Exception \ InvalidArgumentException' message Areas with 'Autoloader class Zend \ Loader \ StandardAutoloader Zend \ Loader \ /var/www/vhosts/.../vendor/zendframework/zendframework/library/Zend/Loader/AutoloaderFactory.php:91 stack SplAutoloader' 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)) /var/www/vhosts/.../ in /var/www/vhosts/.../ # 3 Vendor / zendframework / zen dframework / library / Zend / EventManag Seller / zendframework / zendframework / library / Zend / Loader / AutoloaderFactory.php line 91
Any suggestions? Thank you.
This error is due to the old PHP version on your server. 5.3.3 Not enough You should be aware of the limitations: You can use Z Framework 2.2.10 at php5.3.3. Edit your code Then run
2.3.0 requires php> = 5.3.23 2.4.0 php> = 5.3.23
< / Pre> application / composer.json
"need": {"php": "> = 5.3.3", "zendframework / zendframework "Edit:" ~ 2.2 "}
php composer.phar install
, it will restore your structure: < Code> & gt; Installing the Composer Store Loading dependencies with information of php composer fire installation package (including required-Dev) - Removing zendframework / zendframework (2.4.0) - Installing zendframework / zendframework (2.2.10) Downloading: Prepare 100% write lock file autoload files
No comments:
Post a Comment