php - Fatal Error, ArrayObject::offsetGet() must be compatible with that ArrayAccess:offsetGet() with Zend framework 2.3 on Linux Debian 2.6.32-46 -


Hello I have a problem with ZF2,

When trying to access public / index from the browser I got this fatal error from the server:

  PHP Fatal Error: the announcement of the Zendi \\ Stdlib \\ ArrayObject :: offsetGet () should be compatible with ArrayAccess :: offsetGet () / var In /www/semvirtualhost/vendor/zendframework/zendframework/library/Zend/Stdlib/ArrayObject.php on line 23  

I already composer.json update:

  {"name": "zendframework / skeleton-application", "description": "Skeletal Application for ZF2", "La Sense ":" BSD-3-segment "," keyword ": [" frame "," zf2 "]," homepage ":" http://framework.zend.com/ "," requirement ": {" php " : "Zendframework / zendframework": "2.3. *"}} ":" "Name": "zendframework / skeleton-application", "description": "Skeleton app for Z2 "," License ":" BSD-3-section "," keyword ": [" frame "," zf2 "]," homepage ":" http://framework.zend.com/ "," require ": { "Php": "& Gt; = 5.3.3 "," zendframework / zendframework ":" 2.2. * "}}  

Also I have added these lines to init_autoloader.php:

  $ zf2Path is required '/ Zend / Stdlib / compatibility /autoload.php '; $ Zf2Path is required' /Zend/Session/compatibility/autoload.php ';  

and how it looks like init_autoloader:

  if ($ zf2Path) {if (isset ($ loader)) {$ loader-> add ('zend', $ zf2Path); $ loader- & gt; add ('ZendXml', $ zf2Path); } And include ($ zf2 path '/Zend/Loader/AutoloaderFactory.php'; Zend \ Loader \ AutoloaderFactory :: factory (array ('jade \ loader \ standardautoloder' = & gt; array ('autoregister_zf' = & gt; True))); Fail to PHP 5.3.3 Requires $ zf2Path for '/Zend/Stdlib/compatibility/autoload.php'; $ Zf2Path is required '/Zend/Session/compatibility/autoload.php';}}  
< P> In addition to all the above mentioned changes, I still get the same error as it is my PHP version:

  PHP 5.3.3-7 + Squeeze with Suhosin-Patch (cli) 19 (Created: February 18 2014 13:59:15) Copyright (C) 1997-2009 PHP Group Z Engine v2.3.0, Copyright (C) 1998-2010 Zend Technologies, Copyright (C) 2007 with Sudan v 0.9.32.1 -2010, SectionsoftGmbH  
  Fatal error: Zend \ Stdlib declaration 

ArrayObject :: offsetGet () should be compatible with ArrayAccess :: offsetGet () /path/application/vendor/zendframework/zendframework/library/Zend/Stdlib/ArrayObject.php on line 22

< P> Change from 2.3 to 2.2 composer.json edit

  "zendframework / zendframework": "2.2. * ",  

then php composer.phar update


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -