• Multisite
    WP Version 4.9.8
    Jetpack Version 6.8
    Gutenberg Version 4.5.1

    Custom post type portfolio is active.
    But when I try to edit or create a new portfolio project,
    I get the following error:

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

    This error is not present if I select the classic editor.

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

    (@jeherve)

    Jetpack Mechanic 🚀

    Thanks for the report!

    Could you let me know if you have any code snippets or additional plugins installed on your site that may impact Gutenberg?

    Thread Starter Carolina Nymark

    (@poena)

    I removed https://wordpress.org/plugins/block-unit-test/ and WooCommerce,
    and switched themes to Twenty Seventeen, but the error is the same.
    (Testimonials work fine though)

    PHP 7.0.32

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Thanks for the extra details! We’ll take a closer look at the problem and let you know as soon as this gets fixed.

    You can follow our progress on this here:
    https://github.com/Automattic/jetpack/issues/10727

    I got the same error message, when I tried to edit any of my existing Jetpack portfolio projects after updating to WordPress 5.0. (where the Gutenberg editor is introduced)

    I use the latest version of Jetpack 6.8.1.

    In my case I could fix the problem bei adding this funtion to my functions.php file like @jeherve proposed:

    function rm_jetpack_publicize_portfolio() {
        remove_post_type_support( 'jetpack-portfolio', 'publicize' );
    }
     
    add_action( 'init', 'rm_jetpack_publicize_portfolio' );
    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    The problem should be fixed in Jetpack 6.8.1. If the fix did not work for you, could you contact us via this form so we can take a closer look at your site with you?

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Gutenberg, portfolio and publicize causes PHP error’ is closed to new replies.