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
When trying to install Wallee module version 1.2.47 in a Prestashop 1.7, a fatal error occurs due to an incompatibility with the PHP version used on the server (PHP 7.x). The module’s code uses union types (string|bool), which are only supported in PHP 8.0 and later versions.
Steps to reproduce:
Install the Wallee module version 1.2.47 in a Prestashop 1.7.x instance.
Ensure the server is running PHP 7.x.
The error occurs when attempting to run the module, halting the installation process.
Cause of the issue: The string|bool union type used in the handleResponse function is not supported by PHP versions earlier than 8.0, causing a syntax error on servers running PHP 7.x.
Proposed solution: We recommend modifying the function declaration to be compatible with earlier PHP versions by removing the union types and handling the type checking within the function body.
The text was updated successfully, but these errors were encountered:
When trying to install Wallee module version 1.2.47 in a Prestashop 1.7, a fatal error occurs due to an incompatibility with the PHP version used on the server (PHP 7.x). The module’s code uses union types (string|bool), which are only supported in PHP 8.0 and later versions.
Steps to reproduce:
Install the Wallee module version 1.2.47 in a Prestashop 1.7.x instance.
Ensure the server is running PHP 7.x.
The error occurs when attempting to run the module, halting the installation process.
Error message:
[2024-09-18 11:38:35] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: "Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE)" at /httpdocs/modules/wallee/wallee-sdk/lib/Http/CurlHttpClient.php line 186 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) at /httpdocs/modules/wallee/wallee-sdk/lib/Http/CurlHttpClient.php:186)"}
The problematic line is /modules/wallee/wallee-sdk/lib/Http/CurlHttpClient.php:186:
Cause of the issue: The
string|bool
union type used in the handleResponse function is not supported by PHP versions earlier than 8.0, causing a syntax error on servers running PHP 7.x.Proposed solution: We recommend modifying the function declaration to be compatible with earlier PHP versions by removing the union types and handling the type checking within the function body.
The text was updated successfully, but these errors were encountered: