Prestashop 1.7 - Error 503 - Service Unavailable - php

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

Related

Shopware Giving error on local envirnoment and Run fine on staging

I have downloaded the shopware from staging server and integrated there code and DB but when run the backend URL get below error with shopware version 4.3.0
Fatal error: Uncaught TypeError: Argument 1 passed to Shopware_Plugins_Core_HttpCache_Bootstrap::onPreDispatch() must be an instance of Enlight_Controller_EventArgs, instance of Enlight_Controller_ActionEventArgs given, called in /home/verve/projects/shop/engine/Library/Enlight/Event/Handler/Plugin.php on line 149 and defined in /home/verve/projects/shop/engine/Shopware/Plugins/Default/Core/HttpCache/Bootstrap.php:323 Stack trace: #0 /home/verve/projects/shop/engine/Library/Enlight/Event/Handler/Plugin.php(149): Shopware_Plugins_Core_HttpCache_Bootstrap->onPreDispatch(Object(Enlight_Controller_ActionEventArgs)) #1 /home/verve/projects/shop/engine/Library/Enlight/Event/EventManager.php(211): Enlight_Event_Handler_Plugin->execute(Object(Enlight_Controller_ActionEventArgs)) #2 /home/verve/projects/shop/engine/Library/Enlight/Controller/Action.php(137): Enlight_Event_EventManager->notify('Enlight_Control...', Object(Enlight_Controller_ActionEventArgs)) #3 /home/verve/projects/shop/engine/Library/Enlight/Controller/Dispatcher/ in /home/verve/projects/shop/engine/Shopware/Plugins/Default/Core/HttpCache/Bootstrap.php on line 323
503 Service Unavailable

Laravel Cannot declare class Symfony\Component\HttpFoundation\AcceptHeader, because the name is already in use

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.

Joomla & PHP 7 : Fatal error: Argument 1 passed to JErrorPage::render()

Got the following error when I try to update a Joomla 3.9 website on a PHP7.2 environement.
Fatal error: Uncaught TypeError: Argument 1 passed to JErrorPage::render() must be an instance of Exception, instance of Error given in /var/www/xxxxx/libraries/cms/error/page.php:28 Stack trace: #0 [internal function]: JErrorPage::render(Object(Error)) #1 {main} thrown in /var/www/xxxxx/libraries/cms/error/page.php on line 28
Any idea what could cause this?
Website works fine on PHP 5.6 but I can't switch to PHP 7.2

Magento 2 Installation fails at 27%

I have this exception when running the installation for Magento 2. Couldn't find further information on how to fix this anywhere, error thrown was not very clear either. Anyone has any ideas? This happens after it says 'Running schema recurring...'
Module 'Magento_Amqp':
[ERROR] LogicException: Request schema definition for topic "shared.catalog.product.price.updated" should reference existing service class. Given "Magento\AsynchronousOperations\Api\Data\OperationInterface" in /var/www/tpb.com/html/vendor/magento/framework/Communication/Config/Validator.php:71
Stack trace:
#0 /var/www/tpb.com/html/vendor/magento/framework/Communication/Config/Reader/XmlReader/Converter.php(204): Magento\Framework\Communication\Config\Validator->validateRequestSchemaType('Magento\\Asynchr...', 'shared.catalog....')
#1 /var/www/tpb.com/html/vendor/magento/framework/Communication/Config/Reader/XmlReader/Converter.php(111): Magento\Framework\Communication\Config\Reader\XmlReader\Converter->extractTopicRequestSchema(Object(DOMElement))
#2 /var/www/tpb.com/html/vendor/magento/framework/Communication/Config/Reader/XmlReader/Converter.php(84): Magento\Framework\Communication\Config\Reader\XmlReader\Converter->extractTopics(Object(DOMDocument))
#3 /var/www/tpb.com/html/vendor/magento/framework/Config/Reader/Filesystem.php(171): Magento\Framework\Communication\Config\Reader\XmlReader\Converter->convert(Object(DOMDocument))
...

Uncaught exception 'CacheException' with message 'Cache engine "_cake_core_" is not properly configured cakephp AWS

I am getting following error: using cakephp, aws.
Warning: _cake_core_ cache was unable to write 'cake_dev_en-gb' to
File cache in /var/www/html/myApp/lib/Cake/Cache/Cache.php on line 328
Warning: /var/www/html/myApp/app/tmp/cache/persistent/ is not writable
in /var/www/html/myApp/lib/Cake/Cache/Engine/FileEngine.php on line
385
Fatal error: Uncaught exception 'CacheException' with message 'Cache
engine "_cake_core_" is not properly configured. Ensure required
extensions are installed, and credentials/permissions are correct' in
/var/www/html/myApp/lib/Cake/Cache/Cache.php:186 Stack trace: #0
/var/www/html/myApp/lib/Cake/Cache/Cache.php(151):
Cache::_buildEngine('_cake_core_') #1
/var/www/html/myApp/app/Config/core.php(383):
Cache::config('_cake_core_', Array) #2
/var/www/html/myApp/lib/Cake/Core/Configure.php(72):
include('/var/www/html/i...') #3
/var/www/html/myApp/lib/Cake/bootstrap.php(431):
Configure::bootstrap(true) #4
/var/www/html/myApp/app/webroot/index.php(95):
include('/var/www/html/i...') #5 {main} thrown in
/var/www/html/myApp/lib/Cake/Cache/Cache.php on line 186
NOTE : tmp folders have full permission(777), yet getting the same error, please advise?
I have gone through
https://groups.google.com/forum/#!topic/cake-php/gKFJf6mK6qk
also.
Please check with server configuration, Firewall should be disable on the server to access 777 folder by anonymous users.

Categories