You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following error is displayed:
SYSTEM ERROR - [16384] text_styles is deprecated. Fatal error on line 307 in file /shared/libs/vendor/google/cloud-document-ai/src/V1/Document.php
Expected Behavior
The text_styles deprecation should ideally trigger a deprecation warning without causing a fatal error, or a recommended alternative should be provided.
Actual Behavior
The method triggers a fatal error, halting the application. Additionally, commenting out trigger_error() results in another error:
SYSTEM EXCEPTION - Uncaught Exception: Call to undefined function Google\Protobuf\Internal\bccomp() in /shared/api.myjourneymaker.au-www/libs/vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php on line 939
I encountered a fatal error due to the deprecation of text_styles while working with Google Cloud Document AI on my PHP application.
System Information
Library Version: 2.1.0
PHP Version: PHP 8.3.12 (cli) (built: Sep 27 2024 04:03:16) (NTS)
Environment:Debian GNU/Linux 11 (bullseye)
Steps to Reproduce
Initialize the Google Cloud Document AI library.
im calling
The following error is displayed:
SYSTEM ERROR - [16384] text_styles is deprecated. Fatal error on line 307 in file /shared/libs/vendor/google/cloud-document-ai/src/V1/Document.php
Expected Behavior
The text_styles deprecation should ideally trigger a deprecation warning without causing a fatal error, or a recommended alternative should be provided.
Actual Behavior
The method triggers a fatal error, halting the application. Additionally, commenting out trigger_error() results in another error:
SYSTEM EXCEPTION - Uncaught Exception: Call to undefined function Google\Protobuf\Internal\bccomp() in /shared/api.myjourneymaker.au-www/libs/vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php on line 939
stack trace:
The text was updated successfully, but these errors were encountered: