Support » Plugin: Jetpack - WP Security, Backup, Speed, & Growth » Blog token is missing

  • Resolved Basil Hendroff

    (@basilh)


    Hello! First-time poster in the Jetpack forum.

    WordPress php files are being served by a self-hosted Caddy webserver. Installation is successful with no site health issues. However, site health issues arise when I install and activate Jetpack. Please refer to this Caddy forum thread for complete details Jetpack plugin for WordPress

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Using the Jetpack debug tool, I get a debug ‘Unknown error’ for site https://udance.com.au.

    I have the ‘Server error code 500’ listed on What do these error messages mean?

    I see ‘XML-RPC server accepts POST requests only.’ at the URL https://udance.com.au/xmlrpc.php.

    The mystery is solved! The forum thread 500 Internal Server Error when activating Jetpack plugin led me to the solution.

    Once I enabled the verbose debugging suggested by @jherve, this is what I saw in the debug log:

    root@wordpress:/usr/local/www/wordpress/wp-content # cat debug.log
    [12-Sep-2020 09:11:44 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function Automattic\Jetpack\Connection\ctype_digit() in /usr/local/www/wordpress/wp-content/plugins/jetpack/vendor/automattic/jetpack-connection/src/class-manager.php:1657
    Stack trace:
    #0 /usr/local/www/wordpress/wp-content/plugins/jetpack/vendor/automattic/jetpack-connection/src/class-manager.php(1581): Automattic\Jetpack\Connection\Manager->verify_secrets()
    #1 /usr/local/www/wordpress/wp-content/plugins/jetpack/vendor/automattic/jetpack-connection/src/class-xmlrpc-connector.php(57): Automattic\Jetpack\Connection\Manager->handle_registration()
    #2 /usr/local/www/wordpress/wp-includes/IXR/class-IXR-server.php(121): Automattic\Jetpack\Connection\XMLRPC_Connector->verify_registration()
    #3 /usr/local/www/wordpress/wp-includes/IXR/class-IXR-server.php(59): IXR_Server->call()
    #4 /usr/local/www/wordpress/wp-includes/IXR/class-IXR-server.php(27): IXR_Server->serve()
    #5 /usr/local/www/wordpress/wp-includes/IXR/class-IXR-server.php(35): IXR_Server->__construct()
    #6 /usr/local/www/wordpress/wp-includes/class-wp-xmlrpc-server.php(191): IXR_Server->IXR_Server()
    #7 /usr/local/www/wordpress/xmlrpc.php(87): wp_xmlrpc_server->serve_request()
    #8 {main}
      thrown in /usr/local/www/wordpress/wp-content/plugins/jetpack/vendor/automattic/jetpack-connection/src/class-manager.php on line 1657
    [12-Sep-2020 09:11:45 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function Automattic\Jetpack\Connection\ctype_digit() in /usr/local/www/wordpress/wp-content/plugins/jetpack/vendor/automattic/jetpack-connection/src/class-manager.php:1657
    Stack trace:
    #0 /usr/local/www/wordpress/wp-content/plugins/jetpack/vendor/automattic/jetpack-connection/src/class-manager.php(1581): Automattic\Jetpack\Connection\Manager->verify_secrets()
    #1 /usr/local/www/wordpress/wp-content/plugins/jetpack/vendor/automattic/jetpack-connection/src/class-rest-connector.php(125): Automattic\Jetpack\Connection\Manager->handle_registration()
    #2 /usr/local/www/wordpress/wp-includes/rest-api/class-wp-rest-server.php(1050): Automattic\Jetpack\Connection\REST_Connector->verify_registration()
    #3 /usr/local/www/wordpress/wp-includes/rest-api/class-wp-rest-server.php(376): WP_REST_Server->dispatch()
    #4 /usr/local/www/wordpress/wp-includes/rest-api.php(339): WP_REST_Server->serve_request()
    #5 /usr/local/www/wordpress/wp-includes/class-wp-hook.php(287): rest_api_loaded()
    #6 /usr/local/www/wordpress/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
    #7 /usr/local/www/wordpress/wp-includes/plugin.php(544): WP_Hook->do_action()
    #8 /usr/local/www/wordpress/wp-includes/class-wp.php(388): do_action_ref_array()
    #9 /usr/local/www/wordpress/wp-includes/class-wp.php(745): WP->parse_request()
    #10 /usr/local/www/wordpress/wp-includes/functions.php(1285): WP->main()
    #11 /usr/local/www/wordpress/wp-blog-header.php(16): wp()
    #12 /usr/local/www/wordpress/index.php(17): require('/usr/local/www/...')
    #13 {main}
      thrown in /usr/local/www/wordpress/wp-content/plugins/jetpack/vendor/automattic/jetpack-connection/src/class-manager.php on line 1657
    [12-Sep-2020 09:11:46 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function Automattic\Jetpack\Connection\ctype_digit() in /usr/local/www/wordpress/wp-content/plugins/jetpack/vendor/automattic/jetpack-connection/src/class-manager.php:1657
    Stack trace:
    #0 /usr/local/www/wordpress/wp-content/plugins/jetpack/vendor/automattic/jetpack-connection/src/class-manager.php(1581): Automattic\Jetpack\Connection\Manager->verify_secrets()
    #1 /usr/local/www/wordpress/wp-content/plugins/jetpack/vendor/automattic/jetpack-connection/src/class-xmlrpc-connector.php(57): Automattic\Jetpack\Connection\Manager->handle_registration()
    #2 /usr/local/www/wordpress/wp-includes/IXR/class-IXR-server.php(121): Automattic\Jetpack\Connection\XMLRPC_Connector->verify_registration()
    #3 /usr/local/www/wordpress/wp-includes/IXR/class-IXR-server.php(59): IXR_Server->call()
    #4 /usr/local/www/wordpress/wp-includes/IXR/class-IXR-server.php(27): IXR_Server->serve()
    #5 /usr/local/www/wordpress/wp-includes/IXR/class-IXR-server.php(35): IXR_Server->__construct()
    #6 /usr/local/www/wordpress/wp-includes/class-wp-xmlrpc-server.php(191): IXR_Server->IXR_Server()
    #7 /usr/local/www/wordpress/xmlrpc.php(87): wp_xmlrpc_server->serve_request()
    #8 {main}
      thrown in /usr/local/www/wordpress/wp-content/plugins/jetpack/vendor/automattic/jetpack-connection/src/class-manager.php on line 1657
    [12-Sep-2020 09:11:47 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function Automattic\Jetpack\Connection\ctype_digit() in /usr/local/www/wordpress/wp-content/plugins/jetpack/vendor/automattic/jetpack-connection/src/class-manager.php:1657
    Stack trace:
    #0 /usr/local/www/wordpress/wp-content/plugins/jetpack/vendor/automattic/jetpack-connection/src/class-manager.php(1581): Automattic\Jetpack\Connection\Manager->verify_secrets()
    #1 /usr/local/www/wordpress/wp-content/plugins/jetpack/vendor/automattic/jetpack-connection/src/class-rest-connector.php(125): Automattic\Jetpack\Connection\Manager->handle_registration()
    #2 /usr/local/www/wordpress/wp-includes/rest-api/class-wp-rest-server.php(1050): Automattic\Jetpack\Connection\REST_Connector->verify_registration()
    #3 /usr/local/www/wordpress/wp-includes/rest-api/class-wp-rest-server.php(376): WP_REST_Server->dispatch()
    #4 /usr/local/www/wordpress/wp-includes/rest-api.php(339): WP_REST_Server->serve_request()
    #5 /usr/local/www/wordpress/wp-includes/class-wp-hook.php(287): rest_api_loaded()
    #6 /usr/local/www/wordpress/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
    #7 /usr/local/www/wordpress/wp-includes/plugin.php(544): WP_Hook->do_action()
    #8 /usr/local/www/wordpress/wp-includes/class-wp.php(388): do_action_ref_array()
    #9 /usr/local/www/wordpress/wp-includes/class-wp.php(745): WP->parse_request()
    #10 /usr/local/www/wordpress/wp-includes/functions.php(1285): WP->main()
    #11 /usr/local/www/wordpress/wp-blog-header.php(16): wp()
    #12 /usr/local/www/wordpress/index.php(17): require('/usr/local/www/...')
    #13 {main}
      thrown in /usr/local/www/wordpress/wp-content/plugins/jetpack/vendor/automattic/jetpack-connection/src/class-manager.php on line 1657

    There are a whole bunch of ctype errors. While the WordPress PHP hosting requirements are specified at Server Environment, Jetpack also requires PHP extensions xmlrpc (indirectly documented) and ctype (undocumented). Once I installed php74-ctype in the server environment, the missing blog token issue disappeared and I was then able to set up Jetpack.

    Both xmlrpc and ctype php extensions are not included in the recommended server environment described in the WordPress hosting handbook Server Environment.

    Is this an oversight for the WordPress hosting handbook, or are these dependencies of Jetpack that need to be articulated somewhere?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.