Today, using composer, i was updated my application.
My application use zfcUser / BjyAuthorize / Doctrine 2 modules.
And now, after updating, i catch this error:
PHP Fatal error: Uncaught exception 'Zend\\ServiceManager\\Exception\\ServiceNotFoundException' with message 'Zend\\ServiceManager\\ServiceManager::get was unable to fetch or create an instance for doctrine.entity_manager.orm_default' in /var/www/zf/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php:518\nStack trace:\n#0 /var/www/zf/vendor/bjyoungblood/bjy-authorize/src/BjyAuthorize/Service/ObjectRepositoryRoleProviderFactory.php(50): Zend\\ServiceManager\\ServiceManager->get('doctrine.entity...')\n#1 [internal function]: BjyAuthorize\\Service\\ObjectRepositoryRoleProviderFactory->createService(Object(Zend\\ServiceManager\\ServiceManager), 'bjyauthorizepro...', 'BjyAuthorize\\Pr...')\n#2 /var/www/zf/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php(897): call_user_func(Array, Object(Zend\\ServiceManager\\ServiceManager), 'bjyauthorizepro...', 'BjyAuthorize\\Pr...')\n#3 /var/www/zf/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php(1027): Zend\\ServiceMan in /var/www/zf/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php on line 518
Сode was not changed.
Plz, help =)
Try changing the following line in your bjyauthorize configuration:
'object_manager' => 'doctrine.entity_manager.orm_default'to
'object_manager' => 'doctrine.entitymanager.orm_default'
Related
We started to have an issue on our prestashop backoffice. First, everything was super slow and now it isn´t even possible to access administration because of error 503.
I tried to delete the cache, checked all resources in cpanel (everything good). I found something in error_log, but have no idea if this can be cause by this.
[04-Feb-2023 23:03:03 US/Central] PHP Fatal error: Uncaught InvalidArgumentException: Invalid resource type: array in /home/plexrgvc/public_html/modules/ps_eventbus/vendor/guzzlehttp/psr7/src/Utils.php:337
//UPDATED:
Stack trace: #0 /home/plexrgvc/public_html/modules/ps_eventbus/vendor/guzzlehttp/psr7/src/Request.php(57): GuzzleHttp\Psr7\Utils::streamFor(Array)
#1 /home/plexrgvc/public_html/modules/ps_eventbus/src/Api/GenericClient.php(178): GuzzleHttp\Psr7\Request->__construct('POST', Object(GuzzleHttp\Psr7\Uri), Array, Array)
#2 /home/plexrgvc/public_html/modules/ps_eventbus/src/Api/EventBusProxyClient.php(138): PrestaShop\Module\PsEventbus\Api\GenericClient->post(Array)
#3 /home/plexrgvc/public_html/modules/ps_eventbus/src/Service/ProxyService.php(76): PrestaShop\Module\PsEventbus\Api\EventBusProxyClient->uploadDelete('repeat:9740b8b0...', '{"collection":"...')
#4 /home/plexrgvc/public_html/modules/ps_eventbus/src/Service/DeletedObjectsService.php(51): PrestaShop\Module\PsEventbus\Service\ProxyService->delete('repeat:9740b8b0...', Array)
#5 /home/plexrgvc/public_html in /home/plexrgvc/public_html/modules/ps_eventbus/vendor/guzzlehttp/psr7/src/Utils.php on line 337
[04-Feb-2023 23:03:04 US/Central] PHP Fatal error: Uncaught InvalidArgumentException: Invalid resource type: array in /home/plexrgvc/public_html/modules/ps_eventbus/vendor/guzzlehttp/psr7/src/Utils.php:337
I tried to manually disable this module in phpmyadmin, but didn´t work. Any idea? Thanks
I just took a project from a couple of months ago which was made in Laravel. This project also utilizes Laravel Voyager - the admin panel package.
After browsing to http://example.com/admin, I got this weird error which came out of nowhere and I'm also unsure how to debug it. It looks like this:
Fatal error: Cannot declare class Symfony\Component\HttpFoundation\AcceptHeader, because the name is already in use in /c/Users/User/Code/example-website/vendor/symfony/http-foundation/AcceptHeader.php on line 22
Fatal error: Uncaught Error: Class 'Symfony\Component\HttpFoundation\AcceptHeaderItem' not found in /c/Users/User/Code/example-website/vendor/symfony/http-foundation/AcceptHeader.php:61 Stack trace: #0 [internal function]: Symfony\Component\HttpFoundation\AcceptHeader::Symfony\Component\HttpFoundation\{closure}(Array) #1 /c/Users/User/Code/example-website/vendor/symfony/http-foundation/AcceptHeader.php(57): array_map(Object(Closure), Array) #2 /c/Users/User/Code/example-website/vendor/symfony/http-foundation/Request.php(1664): Symfony\Component\HttpFoundation\AcceptHeader::fromString('text/html,appli...') #3 /c/Users/User/Code/example-website/vendor/laravel/framework/src/Illuminate/Http/Concerns/InteractsWithContentTypes.php(54): Symfony\Component\HttpFoundation\Request->getAcceptableContentTypes() #4 /c/Users/User/Code/example-website/vendor/laravel/framework/src/Illuminate/Http/Concerns/InteractsWithContentTypes.php(44): Illuminate\Http\Request->wantsJson() #5 /c/Users/User/Code/example-website/vendor/laravel/framework/src/Illumina in /c/Users/User/Code/example-website/vendor/symfony/http-foundation/AcceptHeader.php on line 61
This error is very expected and I've never seen it before in my project (or anywhere else for that matter).
How can I debug this issue?
As a sanity check, delete the vendor directory and then run composer install to re-fetch your dependencies and see if the error is resolved. If not, then attempt composer update to fetch the latest versions of your dependencies in which this issue may have been resolved.
i'm using zend framework 3 with doctrine 2 and it giving me this error i dnt know why
Fatal error: Uncaught exception
'Zend\ServiceManager\Exception\ServiceNotFoundException' with message
'Unable to resolve service "Router" to a factory; are you certain you
provided it during configuration?' in
C:\xampp\htdocs\zendf\vendor\zendframework\zend-servicemanager\src\ServiceManager.php:681
Stack trace: #0
C:\xampp\htdocs\zendf\vendor\zendframework\zend-servicemanager\src\ServiceManager.php(757):
Zend\ServiceManager\ServiceManager->getFactory('Router') #1
C:\xampp\htdocs\zendf\vendor\zendframework\zend-servicemanager\src\ServiceManager.php(200):
Zend\ServiceManager\ServiceManager->doCreate('Router') #2
C:\xampp\htdocs\zendf\vendor\zendframework\zend-mvc\src\Application.php(158):
Zend\ServiceManager\ServiceManager->get('Router') #3
C:\xampp\htdocs\zendf\vendor\zendframework\zend-mvc\src\Application.php(273):
Zend\Mvc\Application->bootstrap(Array) #4
C:\xampp\htdocs\zendf\public\index.php(40):
Zend\Mvc\Application::init(Array) #5 {main} thrown in
C:\xampp\htdocs\zendf\vendor\zendframework\zend-servicemanager\src\ServiceManager.php
on line 681
I got the same problem while upgrading an app from zf2 to zf3.
I solved the problem by loading the module Zend\Router. There are some more modules coming with ZF3, so I ended up using this in the modules.config.php:
return [
'Zend\Cache',
'Zend\Form',
'Zend\Hydrator',
'Zend\InputFilter',
'Zend\Paginator',
'Zend\I18n',
'Zend\Filter',
'Zend\Router',
'Zend\Validator',
'Zend\Navigation',
...
];
I got the modules.config.php and the new application.config.php from the zf3 skeleton application.
I am using Lumen for API development and uses Windows box to develop them, while trying to deploy it for testing on a CentOS 7 box I am getting following error:
> Lumen (5.2.5) (Laravel Components 5.2.*) Fatal error: Uncaught
> exception 'ErrorException' with message 'Unknown:
> open(/tmp/sess_256709456767027352b0afedbc9bd91b, O_RDWR) failed:
> Permission denied (13)' in Unknown:0 Stack trace: #0 [internal
> function]:
> Laravel\Lumen\Application->Laravel\Lumen\Concerns\{closure}(2,
> 'Unknown: open(/...', 'Unknown', 0, Array) #1 {main} thrown in Unknown
> on line 0
Lumen by default do not come with config/session.php, so I tried giving custom path by creating a file but no luck so far.
Got it! I will have to load the session config by making an entry into the bootstrap/app.php by adding following line:
$app->configure('session');
This would read path I setup in config/session.php, which I changed to /storage/framework/session
I hope this is reliable enough.
I am working using laravel5 php framework on ubuntu and I have 2 problems
1- when I try to use the composer to require anything .. it doesnt work
2- when i tried to make some changes to illuminate/Html .. it doesn't work too
so after that when i tried to use the artisan to serve my project I got that error
PHP Fatal error: Class 'Illuminate\Html\HtmlServiceProvider' not found in /home/shaimaa/Sites/Laravel5/eoswdt/storage/framework/compiled.php on line 5617
exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Class 'Illuminate\Html\HtmlServiceProvider' not found' in /home/shaimaa/Sites/Laravel5/eoswdt/storage/framework/compiled.php:5617
Stack trace:
#0 /home/shaimaa/Sites/Laravel5/eoswdt/storage/framework/compiled.php(1500): Illuminate\Foundation\Bootstrap\HandleExceptions->fatalExceptionFromError(Array)
#1 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleShutdown()
#2 {main}
Just run the following in your composer
composer require "illuminate/html":"5.0.*"
Inside your config/app.php add the following codes inside it
In the 'providers' => [ ..]
'Illuminate\Html\HtmlServiceProvider',
And in the
'aliases' => [ ..]
'Form'=> 'Illuminate\Html\FormFacade',
'HTML'=> 'Illuminate\Html\HtmlFacade',
And then refresh the page you should find that it should be working.