I’m trying to implement google analytics 4 composer package. It’s throwing an invalid certificate location error while making curl request :
wp-includes/certificates/ca-bundle.crt
Although I have proper certificate is in the location. Basically, it’s trying to find it from default Wordpress setup location. How can set ca-bundle.crt path as per roots bedrock file structure?
Hi @Rajan_Dangi ,
Which package are you using?
The package should be using the following constants to derive the location of the CA bundle:
ABSPATH . WPINC . '/certificates/ca-bundle.crt'
If those are set correctly (ie. Bedrock isn’t broken), it should work.
It sounds like the package you are using has hardcoded paths, which is incorrect.
Hi @talss89
Thanks for your response.
I’m using this: ```
google/analytics-data
Package.
Here is the url for that,
https://cloud.google.com/php/docs/reference/analytics-data/latest