Giter VIP home page Giter VIP logo

Comments (7)

mtcocktail avatar mtcocktail commented on August 15, 2024

Yes the same for me

from zendskeletonapplication.

mtcocktail avatar mtcocktail commented on August 15, 2024

This problem has issue, i've modified my composer.json and it's work.

"zendframework/zendframework": "2.1.x-dev",

from zendskeletonapplication.

brian978 avatar brian978 commented on August 15, 2024

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.

GordonSchmidt avatar GordonSchmidt commented on August 15, 2024

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.

misilot avatar misilot commented on August 15, 2024

@GordonSchmidt I changed thoese two files, and am still getting this error. Any idea what else to check? Thanks!

from zendskeletonapplication.

GordonSchmidt avatar GordonSchmidt commented on August 15, 2024

@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.

asmitamahamuni avatar asmitamahamuni commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.