Hello Ernesto

thanks for your response. I have also seen this difference. But i think 
this is a error in the documentation. If you look in the vendor directory 
there is no path named /vendor/*google*/cloud/.

In the meantime, however, I have found several solutions.

1. it's documented in this documentation 
<https://github.com/GoogleCloudPlatform/php-docs-samples/tree/6609166f71b1049f45360480963c2327b00b7959/appengine/standard/errorreporting>.
  If 
you cannot modify your php.ini, the prepend.php file can be manually 
included to register the error handler:
    require_once __DIR__ . 
'/vendor/google/cloud-error-reporting/src/prepend.php';
    found by another at stackoverflow 
<https://stackoverflow.com/a/73432314/10990093>.

2. worked for me, if i use the relative Path  *./vendor/.../...*

Sincerely

Ernesto Contreras Pinon schrieb am Montag, 22. August 2022 um 17:41:13 
UTC+2:

> From the documentation 
> <https://cloud.google.com/error-reporting/docs/setup/php?hl=en#installing_the_client_library>,
>  
> the path to the *prepend.php* file should be as follows: 
> /<WORKSPACE>/vendor/google/cloud/cloud-error-reporting/src/prepend.php. 
> The path you included in your *php.ini* is a bit different, have you 
> previously tried with the exact path shown in the documentation?
>
> On Thursday, August 18, 2022 at 3:49:59 AM UTC-5 sirk...@talk-point.de 
> wrote:
>
>> I have an App (PHP 7.4) running on Google AppEngine Standard and deploy 
>> works fine. Now i have created a new Project inside CloudConsole 
>> <https://console.cloud.google.com/> with same settings and want to 
>> deploy this App to the new generated Project for testreason.
>>
>> *gcloud app deploy app.yaml --project=testapp-2022-08-14*
>>
>> *But i am getting this error:*
>> Fatal error: Unknown: Failed opening required 
>> '/srv/vendor/google/cloud-error-reporting/src/prepend.php' 
>> (include_path='.:/layers/google.php.runtime/php/lib/php') in Unknown on 
>> line 0
>>
>> To activate the Cloud-Error-Reporting i followed this Documentation: 
>> CloudErrorrEPORTING 
>> <https://cloud.google.com/error-reporting/docs/setup/php?hl=de#enabling_the_library>
>>
>> *my php.ini*
>>
>> auto_prepend_file = 
>> '/srv/vendor/google/cloud-error-reporting/src/prepend.php' 
>> session.gc_maxlifetime = 259200 opcache.memory_consumption = 128
>>
>> *my app.yaml*
>>
>> runtime: php74
>> instance_class: F1
>> entrypoint: serve bootstrap.php
>> handlers:
>>   ...
>> env_variables:
>>   ...
>> runtime_config:
>>   document_root: .
>> automatic_scaling:
>>   max_instances: 20
>>
>> Can anyone help?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/b3e29c94-b085-4dd5-87a2-5b39d2421699n%40googlegroups.com.

Reply via email to