All Questions
Tagged with google-cloud-platform php
678 questions
1
vote
1
answer
281
views
What credentials do I need for Google reCAPTCHA Enterprise?
I'm using Google reCAPTCHA Enterprise, and I'm on the stage of creating an "assessment" in my server side code (PHP). I'm following the example code from the docs but I get an error:
"...
2
votes
1
answer
116
views
Using the SDK, cloud tasks are always created with default deadline, ignoring setDispatchDeadline
We are creating tasks using the following code with the SDK:
use Google\Cloud\Tasks\V2\Client\CloudTasksClient;
use Google\Cloud\Tasks\V2\HttpMethod;
use Google\Cloud\Tasks\V2\HttpRequest;
use Google\...
0
votes
2
answers
245
views
reCaptcha Enterprises "Permission denied for: recaptchaenterprise.assessments.create"
I'm setting up a reCaptcha for a client with an Enterprise Google Cloud account.
I used an API Key, which is the easiest based on my client files configuration.
Everything works well until I call the ...
0
votes
1
answer
46
views
GCP app sometimes losing session data after post
Starting some time yesterday afternoon, my PHP app hosted on GCP using App Engine sometimes (but not always) loses session data on submit. I'm using the following at the top of each page to handle ...
0
votes
2
answers
204
views
How can I connect Cloud Run to Cloud SQL?
I've been literally working on this for 6 hours without any updates.
It's my first time creating anything aware typical VPS and I'm using GCP to create my platform on Laravel, so, let me explain the ...
2
votes
1
answer
115
views
How to fix av_interleaved_write_frame() broken pipe error in php
I have an issue using ffmpeg to stream audio and parse to google cloud speech to text in PHP.
It returns this output.
I have tried delaying some part of the script, that did not solve it.
I have also ...
-1
votes
1
answer
142
views
Error : Cannot set properties of null when using recaptcha
I have two domains, a.com and b.com, both with reCAPTCHA enabled. I'm using the same codebase for both websites, but the reCAPTCHA implementation works on a.com but not on b.com. Here's the setup:
a....
0
votes
1
answer
246
views
Fatal error: Uncaught Error: Class 'Google\Cloud\DocumentAI\V1\DocumentProcessorServiceClient' not found [closed]
when I run the sample code from the offical Quickstart guide I get
Uncaught Error: Class "Google\Cloud\DocumentAI\V1\DocumentProcessorServiceClient" not found
Running PHP version 8.4.3,
I'm ...
0
votes
2
answers
419
views
Google Cloud SDK request to vertex ai, return error 503
Im implementing the prediction ia services, using php sdk for google Cloud platform,but when im doing the request, service return 503 UNAVAILABLE code 14, but if i use a curl petition to the test the ...
-2
votes
1
answer
162
views
Having issue implementing google recaptcha v3 in my php form
I am trying to use recaptcha to validate authenticity of my user before submitting the form but i am having issue that my page just refreshes when clicked on "book now" button rather than ...
1
vote
1
answer
129
views
SSO Google Failed to retrieve verification certificates
We recently changed servers (from Contabo to one.com VPS). Since then, logging in with Google SSO has not been possible (Microsoft is no problem). The keys didn't change, nothing changed. The domain ...
0
votes
1
answer
361
views
Google Cloud Vertex AI: CONSUMER_INVALID 403 error in WordPress for text summarization
In My WordPress, I am creating a text summarization function using the below function:
function call_vertex_ai($text_to_summarize) {
// Get the access token using the service account
$...
-1
votes
1
answer
99
views
Unable to perform long audio synthesis. Neither the client project number: 863017906842 nor ID: project-219819 matches the resource project: bucket [closed]
I am trying to generate long audio from text with the Google text-to-speech api, using the google/cloud-text-to-speech PHP client.
I have created the Service Account and given it the permissions in ...
0
votes
1
answer
164
views
Laravel session Is not working (Laravel + firestore) on google cloud run
I am facing session issue in laravel firestore project which is deployed on google cloud run. Locally, everything works fine, but it doesn't even running on Google cloud.
This is my middleware
class ...
0
votes
1
answer
61
views
Remove all non alphanumeric and some specific characters from string of Google cloud API, preg_replace doesn't work
I'm getting a string from the API like this:
BLAPFEN L√
I'm trying to get rid of everything except alphanumeric characters, spaces and those characters: öÖäÄüÜß
This is what I'm trying:
$txt = trim(...