Undefined constant ERROR_TYPE_REST
-
Hello,
Apparently, the recent update to Jetpack 16.1 introduced an error that results in a large number of WordPress emails reporting a technical problem with the site. A cron job I’m running via WP-CLI also throws essentially the same error.
The error appears to be caused by a reference to a constant that is not defined:
Ein Fehler vom Typ E_ERROR wurde in der Zeile 57 der Datei [path]/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-connection/src/class-client.php verursacht. Fehlermeldung: Uncaught Error: Undefined constant Automattic\Jetpack\Connection\Error_Handler::ERROR_TYPE_REST in [path]/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-connection/src/class-client.php:57
Stack trace:
#0 [path]/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-connection/src/class-client.php(488): Automattic\Jetpack\Connection\Client::remote_request()
#1 [path]/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-connection/src/traits/trait-wpcom-rest-api-proxy-request.php(106): Automattic\Jetpack\Connection\Client::wpcom_json_api_request_as_blog()
#2 [path]/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-connection/src/traits/trait-wpcom-rest-api-proxy-request.php(149): Automattic\Jetpack\Publicize\REST_API\Proxy_Requests->proxy_request_to_wpcom()
#3 [path]/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-publicize/src/class-connections.php(159): Automattic\Jetpack\Publicize\REST_API\Proxy_Requests->proxy_request_to_wpcom_as_blog()
#4 [path]/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-publicize/src/class-connections.php(129): Automattic\Jetpack\Publicize\Connections::fetch_site_connections()
#5 [path]/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-publicize/src/class-connections.php(40): Automattic\Jetpack\Publicize\Connections::fetch_and_cache_connections()
#6 [path]/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-publicize/src/class-connections.php(77): Automattic\Jetpack\Publicize\Connections::get_all()
#7 [path]/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-publicize/src/class-publicize-base.php(1347): Automattic\Jetpack\Publicize\Connections::get_all_for_user()
#8 [path]/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-publicize/src/class-publicize-base.php(1290): Automattic\Jetpack\Publicize\Publicize_Base->any_connection_has_custom_template()
#9 [path]/wp-includes/class-wp-hook.php(341): Automattic\Jetpack\Publicize\Publicize_Base->register_post_meta()
#10 [path]/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters()
#11 [path]/wp-includes/plugin.php(522): WP_Hook->do_action()
#12 [path]/wp-settings.php(771): do_action()
#13 [path]/wp-config.php(48): require_once('...')
#14 [path]/wp-load.php(50): require_once('...')
#15 [path]/wp-login.php(12): require('...')
#16 {main}
thrownSome information about the environment:
WordPress-Version 7.0.3
Aktive Theme: My theme (Version )
Current Plugin: Jetpack (Version 16.1)
PHP-Version 8.3.33I’m seeing this on multiple websites.
Thank you for looking into this!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.