I work on share host and I can choose between PHP version: 5.4.23 or 5.3.28.
I would like to use latest Zend 2.2.5 but on PHP version 5.4.23 I get error:
Fatal error: Uncaught exception 'Zend\ServiceManager\Exception\InvalidArgumentException' with message '$initializer should be callable.'
in /home/rr197664/public_html/domain.com/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php:366 Stack trace:
...
...
When I swich to PHP 5.3.28 page open but all redirection ( $this->redirect()->toRoute()) stop work.
I tested it on ZendSkeletonApplication.
Any idea what can be done ?
Thanks
edit (replaced server path with ...):
Current PHP version: 5.4.23
Fatal error: Uncaught exception 'Zend\ServiceManager\Exception\InvalidArgumentException' with message '$initializer should be callable.' in .../Zend/ServiceManager/ServiceManager.php:366 Stack trace:
0 .../Zend/Mvc/Service/ServiceManagerConfig.php(142): Zend\ServiceManager\ServiceManager->addInitializer(NULL)
1 /.../Zend/ServiceManager/ServiceManager.php(128): Zend\Mvc\Service\ServiceManagerConfig->configureServiceManager(Object(Zend\ServiceManager\ServiceManager))
2 /.../Zend/Mvc/Application.php(251): Zend\ServiceManager\ServiceManager->__construct(Object(Zend\Mvc\Service\ServiceManagerConfig))
3 /.../public/index.php(19): Zend\Mvc\Application::init( in /.../Zend/ServiceManager/ServiceManager.php on line 366
Go to the last module you edited. Open Module.php
in your function
public function getServiceConfig()
or in
public function getViewHelperConfig()
You have a reference to a factory that cannot be found, or a inline a function that is not properly formed
Related
I have started learning angular2 and created project using YEOMAN which creates all the necessary files and a simple running project.
But when i try to run it using gulp serve on web it throws error like
Potentially unhandled rejection [2] TypeError: Error loading "index" at http://localhost:8000/index.js
Cannot convert object to primitive value
at http://localhost:8000/lib/system.js:1:4824
at Array.<anonymous> (http://localhost:8000/lib/angular2.js:3888:7)
at d (http://localhost:8000/lib/system.js:1:5501)
at d (http://localhost:8000/lib/system.js:1:5364)
at d (http://localhost:8000/lib/system.js:1:5364)
at l (http://localhost:8000/lib/system.js:1:4590)
at Object.$__global.upgradeSystemLoader.e.instantiate.Promise.all.then.execute (http://localhost:8000/lib/system.js:1:8278)
at o (http://localhost:8000/lib/es6-module-loader.js:7:18496)
at p (http://localhost:8000/lib/es6-module-loader.js:7:18868)
at j (http://localhost:8000/lib/es6-module-loader.js:7:16406)
I don't have any idea about this error.
Can anybody help me regarding this to at least it runs.
I have tried with quick 5 min guide from :
https://angular.io/docs/js/latest/quickstart.html
Uncaught TypeError: angular2_1.Componant is not a function
es6-module-loader#0.16.6.src.js:140 Potentially unhandled rejection [2] Error loading "app" at http://localhost:8080/app.js
Error evaluating http://localhost:8080/app.js
Uncaught TypeError: angular2_1.Componant is not a function (WARNING: non-Error used)
While I DoFile:
Lua luaVM = new Lua();
luaVM.DoFile("test.lua");
This is the error I got.
An unhandled exception of type 'LuaInterface.LuaException' occurred in LuaInterface.dll
Additional information: error loading module 'mytestlib' from file '.\mytestlib.dll':
%1 is not a valid Win32 application.
The dll is I made, It works when I call this lua from LFW(lua for Windows).
Do I need something like a environment variables? (I added the lua/5.1 folder to EV)
i am working in zendframework 2 in conjuction with doctrine 2
i am trying to use the orm:validate-schema to validate and generate tables in my database; i.e match the entity class User with a new table.
i followed the tutorial by marco pivetta
http://marco-pivetta.com/doctrine-orm-zf2-tutorial/#/24
however when i try to open the schema in my git i.e
andreea#Andreea-HP /cygdrive/c/users/andreea/zend/testingZend
./vendor/bin/doctrine-module orm:validate-schema
i get the following message:
Could not open input file:
/cygdrive/c/users/endy/zend/testingZend/vendor/doctrine/doctrine-module/bin/doctrine-module
does anyone have an idea why i am unable to open the page
warm regards
Andreea
hi again
followng the advice of foozi i tried the folllowing:
php public/index.php orm:validate-schema
however, i received the following error message:
Undefined index: APPLICATION_ENV in C:\Users\andreea\zend\testingZend\public\index.php on line 19
Call Stack:
0.0002 235176 1. {main}() C:\Users\andreea\zend\testingZend\public\index.php:0
Zend Framework 2.2.5 application
Usage:
Reason for failure: Invalid arguments or no arguments provided
PHP Notice: Undefined index: APPLICATION_ENV in C:\Users\andreea\zend\testingZend\public\index.php on line 19
PHP Stack trace:
PHP 1. {main}() C:\Users\andreea\zend\testingZend\public\index.php:0
i believe that the message is referring to the followng:
/**
* Display all errors when APPLICATION_ENV is development.
*/
if ('development' === $_SERVER['APPLICATION_ENV']) {
error_reporting(E_ALL);
ini_set("display_errors", 1);
}
would be gratful for some advice
Try to use doctrine command line over your application's index instead of directly doctrine-module binaries (actually both of them does same thing)
$ cd /your/zf2/project
$ php public/index.php orm:validate-schema
This is the way which i prefer.
I am trying to use partials in my layout on ZF2.
I tried few methods (including those that are described here, where a user has to include a partial to the rout in the module config). Every time I am getting the same error.
For example, I am following instructions from the ZF2 documentation: http://framework.zend.com/manual/2.2/en/modules/zend.view.helpers.partial.html#zend-view-helpers-initial-partial
partials.phtml is in the same folder as the layout.phtml. The server (and I tried both, apache and building PHP server) throws an error:
[Fri Jun 14 18:40:34 2013] 127.0.0.1:36616 [500]: / - Uncaught exception 'Zend\ServiceManager\Exception\ServiceNotFoundException' with message
'Zend\View\HelperPluginManager::get was unable to fetch or create an instance for partial' in /var/www/frameworks/ZF2/library/Zend/ServiceManager/ServiceManager.php:496
Stack trace:
#0 /var/www/frameworks/ZF2/library/Zend/ServiceManager/AbstractPluginManager.php(103): Zend\ServiceManager\ServiceManager->get('partial', true)
#1 /var/www/frameworks/ZF2/library/Zend/View/Renderer/PhpRenderer.php(378): Zend\ServiceManager\AbstractPluginManager->get('partial', NULL)
#2 /var/www/frameworks/ZF2/library/Zend/View/Renderer/PhpRenderer.php(397): Zend\View\Renderer\PhpRenderer->plugin('partial')
#3 /var/www/html/zf2.tutorial/module/Application/view/layout/layout.phtml(129): Zend\View\Renderer\PhpRenderer->__call('partial', Array)
#4 /var/www/html/zf2.tutorial/module/Application/view/layout/layout.phtml(129): Zend\View\Renderer\PhpRenderer->partial('partial.phtml', Array)
#5 /var/www/frameworks/ZF2/library/Zend/View/Renderer/PhpRenderer. in /var/www/frameworks/ZF2/library/Zend/ServiceManager/ServiceManager.php on line 496
I am using PHP5.5.0RC3, ZF2.2.1 and Apache 2.2.15
Any suggestions would be appreciated.
I created a new module and database in an existing symfony website. My database name is planbook. The following error came up. Please anybody help me.
[23-Mar-2012 01:34:01] Couldn't find class planbook
[23-Mar-2012 01:34:01] PHP Fatal error: Call to a member function evictAll() on a non-object in /home/whatplan/public_html/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection.php on line 1239
[23-Mar-2012 01:35:50] Couldn't find class Planbook
[23-Mar-2012 01:35:50] PHP Fatal error: Call to a member function evictAll() on a non-object in /home/whatplan/public_html/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection.php on line 1239
Have you tried symfony cc?