• Resolved awijasa

    (@awijasa)


    I have been getting 500 errors whenever I visit wp-admin on my site. In my log, I’m getting an error saying that Advanced Gutenberg is calling a function that does not exist: get_block_categories.

    After looking into the Gutenberg plugin and seeing that the function probably has been renamed to gutenberg_get_block_categories, I added gutenberg_ to get_block_categories in Advanced Gutenberg. This change fixes the problem for me.

    Thanks,

    Adrian

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thanks, this fixed the issue for me as well.

    Hi,

    Thanks for your feedback.
    Yes you’re right it seems that they changed this function just few days ago.

    The update is available now available.

    Best regards

    Steven

    (@shazahm1hotmailcom)

    fyi, on WP 5.0-rc1 the plugin throws a fatal PHP error:

    PHP Fatal error: Uncaught Error: Call to undefined function gutenberg_get_block_categories() in /wp-content/plugins/advanced-gutenberg/incl/advanced-gutenberg-main.php:345

    • This reply was modified 5 years, 12 months ago by Steven. Reason: Remove server path

    Hi,

    Thanks for the feedback.
    Yes WordPress 5 uses an old Gutenberg version.
    You can install Gutenberg plugin on top of your WP 5 install, it should fix it.

    We are waiting to the final WP release version to see if they are going to update Gutenberg or if we have to maintain our plugin with the old Gutenberg version…

    Best regards

    Steven

    (@shazahm1hotmailcom)

    @joomunited

    Yep, I understand the issues. I’ve started adding blocks to my own plugin, coded against WP 5.0-rc1 but fails to run on with the plugin because of functions which exist in 5.0-rc1 which do not in the plugin. So, I made the choice of not supporting the plugin because I am not going to code out the blocks twice ??

    ps. For me its the wp_set_script_translations() function so I can add a textdomain to the _() calls within the JS for the blocks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘get_block_categories function no longer exists in Gutenberg 4.1.0’ is closed to new replies.