Closed JanThiel closed 3 years ago
Removing the trace from the json encoding solved the issue.
/**
* Format an exception.
*
* @since 0.4.0
*
* @param Exception $e Exception.
* @return string
*/
protected function format_exception( Exception $e ): string {
return wp_json_encode(
[
'message' => $e->getMessage(),
'code' => $e->getCode(),
'file' => $e->getFile(),
'line' => $e->getLine(),
],
\JSON_UNESCAPED_SLASHES
);
}
WP 5.7.1 SatisPress 1.0.1 PHP 7.4.16 WP-CLI 2.4.0
Tried to install a Plugin (update) via WP-CLI:
wp plugin install --force https://yoast.com/app/uploads/2021/04/wordpress-seo-premium-16.1.zip
This error comes up: