How to Bulk Delete in PHP-OpenCloud/OpenStack - php

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 ?

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.

Fatal PHP error when installing laravel on the server

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?

neo4j graphaware php-client: class not found

When I tray to access my neo4j-DB via Graphaware's php-client using http-protocol, I get the following error message:
Fatal error: Class 'GraphAware\Common\Result\AbstractRecordCursor' not found in ...
On the other hand when I'm using the bolt-protocol t says:
Fatal error: Uncaught Error: Call to undefined method GraphAware\Bolt\Result\Result::getResult() in...
At the beginning of my code I have used
require_once 'vendor/autoload.php';
use GraphAware\Neo4j\Client\ClientBuilder;
so I thought the classes should be autoloaded which is obviously not the case.
What's wrong?
I have solved this issue by replacing the respective syntax for queries of the example-files by one out of the README.

Fatal error: Uncaught exception 'DocuSign\eSign\ApiException' with message '[401] when trying to go live

I am trying to move my docusign implementation from the demo account to the production one, but when I try to make a login request I receive the following error:
Fatal error: Uncaught exception 'DocuSign\eSign\ApiException' with message '[401] Error connecting to the API (https://www.docusign.net/restapi/v2/accounts/8159635/envelopes)' in ......
I haven't experienced any problems with the developer account and I my implementation was approved by dicusign and the integration key was assigned to the official account.
I'm using the following PHP implementation - https://github.com/docusign/docusign-php-client
I changed the host in the code from "https://demo.docusign.net/restapi" to "https://www.docusign.net/restapi"
Any help will be really appreciated! Thank you in advance!
Looks like you're calling the wrong endpoint; try na3.docusign.net/restapi/v2/...

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