• Resolved mookie4a4

    (@mookie4a4)


    [Wed Nov 28 14:32:22.280386 2018] [proxy_fcgi:error] [pid 22795:tid 139969679054592] [client *.*.*.*:40632] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to a member function current_user_can_access_publicize_data() on null in /wp-content/plugins/jetpack/_inc/lib/core-api/wpcom-fields/post-fields-publicize-connections.php:118\nStack trace:\n#0 /wp-content/plugins/jetpack/_inc/lib/core-api/wpcom-fields/post-fields-publicize-connections.php(136): WPCOM_REST_API_V2_Post_Publicize_Connections_Field->permission_check(170)\n#1 /wp-content/plugins/jetpack/_inc/lib/core-api/class-wpcom-rest-field-controller.php(116): WPCOM_REST_API_V2_Post_Publicize_Connections_Field->get_permission_check(Array, Object(WP_REST_Request))\n#2 /wp-includes/rest-api/endpoints/class-wp-rest-controller.php(394): WPCOM_REST_API_V2_Field_Controller->get_for_response(Array, ‘jetpack_publici…’, Object(WP_REST_Request), ‘product’)\n#3 /wp-content/plugins/woocommerce/includes/api/v2/class-wc-rest-…\n’

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Thanks for the report, and sorry about the issue!

    We’ve had 2 other reports of the problem but have not been able to reproduce yet.

    Could you tell me more about your site setup, version of WordPress, version of WooCommerce, the plugins you have installed on your site?

    You should be able to solve the issue by installing the Classic Editor plugin on your site.

    Another alternative could be to try to remove the Publicize block from your site, and see if it helps. You can do so by adding the following code snippet to your site:

    function jeherve_remove_publicize_block( $blocks ) {
    
    	$index = array_search( 'publicize', $blocks );
    	if ( false !== $index ) {
    		unset( $blocks[ $index ] );
    	}
    
    	return $blocks;
    }
    add_filter( 'jetpack_set_available_blocks', 'jeherve_remove_publicize_block', 99 );

    Let me know if it helps!

    Thread Starter mookie4a4

    (@mookie4a4)

    Hello

    Just tried that but still the same issue. I only see the error via the woocommerce API.

    Fatal error: Uncaught Error: Call to a member function current_user_can_access_publicize_data() on null in /wp-content/plugins/jetpack/_inc/lib/core-api/wpcom-fields/post-fields-publicize-connections.php:118

    PHP Version: 7.2
    Woocommerce lastest version with x-store template

    Can I send you more details over email?

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    I only see the error via the woocommerce API.

    I’d love to know more about this. If you prefer, you can email me via this contact form and mention this thread.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Fatal Error’ is closed to new replies.