Fatal PHP error when installing laravel on the server - php

When I want to install my Laravel app on a webserver, I get this error:
Uncaught TypeError: Return value of Symfony\Component\HttpFoundation\Response::setStatusCode() must be an instance of Symfony\Component\HttpFoundation\object, instance of Symfony\Component\HttpFoundation\Response returned in /home/yannickw/public_html/phomtec_api/vendor/symfony/http-foundation/Response.php:475
Does anyone have an idea how to fix this?

Related

Stripe Portal PHP error - Class Not Found

Trying to integrate Stripe Portal to my PHP website and this error keeps showing.
Fatal error: Uncaught Error: Class 'Stripe_Util_Set' not found in
The Stripe_Util_Set class name is not used since stripe
/stripe-php v2.0.0.
Since you are using version ^7.67, please update your code with a newer example reference. This class, for example, should be referenced as \Stripe\Util\Set.

How to Bulk Delete in PHP-OpenCloud/OpenStack

I've got a problem iam currently building a php backend with connect to an OVH object storage
and I would like to make a bulk delete using the php-opencloud sdk
According to the documentation there is a function named batchDelete() or bulkDelete() which does exactly what i am searching for but when I call it, php throw an error saying the called method does not exist (I have seen in the GitHub that batchDelete is deprecated and we should use instead bulkDelete but none of them work)
$openstack
->objectStoreV1()
->batchDelete($list);
Fatal error: Uncaught RuntimeException: OpenStack\ObjectStore\v1\Service::batchDelete is not defined
OR
$openstack
->objectStoreV1()
->bulkDelete($list);
Fatal error: Uncaught RuntimeException: OpenStack\ObjectStore\v1\Service::bulkDelete is not defined
Could someone help me please ?

PHP Fatal Error with Userfrosting now server always shows Error 500

I was managing my server and after a composer update I receive this message:
PHP Fatal error: Uncaught TypeError: Argument 1 passed to UserFrosting\System\Facade::setFacadeContainer() must be an instance of Interop\Container\ContainerInterface, instance of Slim\Container given, called in /home/arteller/www/userfrosting/app/system/UserFrosting.php on line 53 and defined in /home/arteller/www/userfrosting/app/system/Facade.php:210
After this, I receive only 500 Internal Error from my server.
The error persists every time I also try to use the command "php bakery bake" or something related to bakery.
Anyone can help?
You need to update to UserFrosting 4.3.3 or later, and run composer update again. This issue was introduced by Slim, which introduced a breaking change recently.

Fatal error while executing cron job in Google AppEngine

I want to execute a cron job in GAE but i got this error.I want to use app engine services without logging in to my email.
PHP Fatal error: Uncaught exception 'Google_AuthException' with message 'Could not json decode the token' in /base/data/home/apps/s~gcdc2013-cloud-daybook/1.371004284914522718/google-api-php-client/src/auth/Google_OAuth2.php:162
Stack trace:
#0 /base/data/home/apps/s~gcdc2013-cloud-daybook/1.371004284914522718/google-api-php-client/src/Google_Client.php(170): Google_OAuth2->setAccessToken(NULL)
Does it work when you're not running it from cron?
It looks like your either missing the service account key, or you're not loading it properly.

cakephp error Uncaught exception 'LogicException'

I'm new to cakePHP and I've been having real difficulty getting it working on my free aws account. I first tried setting up LAMP on my own, but gave up and am now trying to use the bitnami LAMP stack:
https://aws.amazon.com/amis/bitnami-lapp-stack-5-4-13-1-64-bit-ubuntu-12-04
Anyways, that seemed to work, and I was following the cakePHP Blogs tutorial:
http://book.cakephp.org/2.0/en/getting-started.html
I got the mySQL database and tables all set up, and just to test I went to the cakePHP dir:
http://[my amazon instance].compute-1.amazonaws.com/cakephp/
Page loads up with no problems.
But if I reload that page, I get an error:
PHP Fatal error: Uncaught exception 'LogicException' with message 'Passed array does not specify an existing static method (class 'App' does not have a method 'load')' in /opt/bitnami/frameworks/cakephp/lib/Cake/bootstrap.php:133\nStack trace:\n#0 /opt/bitnami/frameworks/cakephp/lib/Cake/bootstrap.php(133): spl_autoload_register(Array)\n#1 /opt/bitnami/frameworks/cakephp/app/webroot/index.php(77): include('/opt/bitnami/fr...')\n#2 {main}\n thrown in /opt/bitnami/frameworks/cakephp/lib/Cake/bootstrap.php on line 133
At that point, nothing to do but restart apache. Once again the page shows up one time, then reload and it errors as above.
Halp!

Categories