Comments (7)
Yes the same for me
from zendskeletonapplication.
This problem has issue, i've modified my composer.json and it's work.
"zendframework/zendframework": "2.1.x-dev",
from zendskeletonapplication.
The solution posted by mtcocktail only works for applications that have the framework installed via composer in the vendor folder. If you have the framework elsewhere it won't work. The solution I found is to put the following lines:
$libDir = getenv('ZF2_PATH');
require $libDir . '/Zend/Stdlib/compatibility/autoload.php';
require $libDir . '/Zend/Session/compatibility/autoload.php';
after the include 'init_autoloader.php';
line in the index.php file
from zendskeletonapplication.
In my case, it was a problem in the "Zend/Stdlib/compatibility/autoload.php" and the "Zend/Session/compatibilty/autoload.php". The release-2.1.1 contains "if (version_compare(PHP_VERSION, '5.3.3', 'le')) {" instead of "if (version_compare(PHP_VERSION, '5.3.4', 'lt')) {", which excludes strangly versioned PHP 5.3.3 packages of debian and ubuntu from loading some needed classes.
It's solved in the master branch of zf2.
from zendskeletonapplication.
@GordonSchmidt I changed thoese two files, and am still getting this error. Any idea what else to check? Thanks!
from zendskeletonapplication.
@misilot you're sure, you are getting the same error?
instead of patching release-2.1.1 you could use the master branch (with composer use "2.@dev" instead of "2."). The version_compare's are fixed there.
from zendskeletonapplication.
Hii,
I am also getting following error,
Fatal error: Declaration of Zend\Stdlib\ArrayObject::offsetGet() must be compatible with that of ArrayAccess::offsetGet() in /var/www/vendor/zendframework/zendframework/library/Zend/Stdlib/ArrayObject.php on line 25.
from zendskeletonapplication.
Related Issues (20)
- Zend Version HOT 5
- How to prevent auto clearing cache? HOT 7
- getting error with new while enable cache HOT 1
- can not set controller as parameter in module.config.php in zf3 HOT 4
- I followed the tutorial and added a new album module besides application module, however 500 error HOT 6
- a question about zf3 tutorial album perform in zend studio 13.6.1 IDE HOT 8
- Another problem when I follow the tutorial, it says SQLSTATE[HY000]: General error: 14 unable to open database file HOT 7
- Zend\I18n does not get injected in modules.config.php HOT 1
- support zend-stratigility 3? HOT 1
- do you use plugin in zf2 and use middleware in zf3 when inject auth logic acl over module in one place? HOT 3
- is there a place to learn how to config at application level or module level? HOT 2
- Cannot launch Controller Tests HOT 2
- Faulty link on homepage HOT 2
- Zend\Form\Form::bindValues(array $values = Array) must be compatible with Zend\Form\Fieldset::bindValues(array $values = Array, ?array $validationGroup = NULL) HOT 4
- ZF issue tracker broken link HOT 2
- Application module, IndexControllerTest is not working HOT 1
- Many prompts missing since the very first install HOT 1
- Compatibility issues with php 7.3? HOT 13
- composer scripts is not compatible with windows HOT 5
- Could an .editorconfig file be added to this? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zendskeletonapplication.