• Resolved JS

    (@jsylvia90)


    Hello,

    I have had to deactivate this plugin. When I try to go to a page edit screen I received this error:

    Error thrown
    Call to undefined function AdvancedGutenbergBlocks\WP\wp_set_script_translations()

    When I deactivated all the plugins except Gutenberg and your plug in I received this error.

    Fatal error: Uncaught Error: Call to undefined function AdvancedGutenbergBlocks\WP\wp_set_script_translations() in /home2/jnplabsc/public_html/jnp_labs_laboratory_installation_services/wp-content/plugins/advanced-gutenberg-blocks/classes/WP/Gutenberg.php:49 Stack trace: #0 /home2/jnplabsc/public_html/jnp_labs_laboratory_installation_services/wp-includes/class-wp-hook.php(286): AdvancedGutenbergBlocks\WP\Gutenberg->editor_assets(”) #1 /home2/jnplabsc/public_html/jnp_labs_laboratory_installation_services/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #2 /home2/jnplabsc/public_html/jnp_labs_laboratory_installation_services/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /home2/jnplabsc/public_html/jnp_labs_laboratory_installation_services/wp-content/plugins/gutenberg/lib/client-assets.php(1388): do_action(‘enqueue_block_e…’) #4 /home2/jnplabsc/public_html/jnp_labs_laboratory_installation_services/wp-includes/class-wp-hook.php(286): gutenberg_editor_scripts_and_styles(‘post.php’) #5 /home2/

    This occured even when I switched themes with all but gutenberg and this plugin active.

    Thats all the time I have to troubleshoot so let me know if you get it sorted out.

    Thanks.
    JA

Viewing 10 replies - 1 through 10 (of 10 total)
  • Same thing!
    I was about to make a post as well.
    I had to manually delete the plugin via my FTP after the latest update.

    I reinstalled it and got the following error when I tried to activate it :

    Parse error: syntax error, unexpected ‘LIST’ (T_LIST), expecting identifier (T_STRING) in /srv/data/web/vhosts/www.beijadventures.com/htdocs/wp-content/plugins/advanced-gutenberg-blocks/classes/Helpers/Dashicons.php on line 23

    Thierry

    (@theremingenieur)

    That’s normal. The v1.4.3 of the plugin uses a new function which is only available from WP5.0 which is scheduled for today. Everything will work fine after you’ll have installed the WP update.

    Hi,

    I just installed the WP5.0 update and the plugin still doesn’t work.

    I again had to manually remove it, and when I try to install and activate it again I get the same error:
    Parse error: syntax error, unexpected ‘LIST’ (T_LIST), expecting identifier (T_STRING) in /srv/data/web/vhosts/www.beijadventures.com/htdocs/wp-content/plugins/advanced-gutenberg-blocks/classes/Helpers/Dashicons.php on line 23

    Thierry

    (@theremingenieur)

    Made me curious. Checked the php syntax in wp-content/plugins/advanced-gutenberg-blocks/classes/Helpers/Dashicons.php

    Everything is fine, I have no error thrown. Such php errors would normally happen if in a previous line, a string or the line itself wasn’t correctly terminated. But none of these happen here. This are simple svg definitions for some dash icons, neither rocket science nor music theory.

    So, I have no idea why your server throws that error in that place. Which PHP version are you running?

    I hope the plugin author will jump in.

    I looked into the file as well and couldn’t find any error on line 23 either.
    Thought there might be a typo, but no.

    I run PHP version: 5.6.30

    SOLVED IT.
    It seems that List is a restricted PHP word.
    So I simply renamed LIST by MYLIST in files
    advanced-gutenberg-blocks/classes/Helpers/Dashicons.php on line 23
    and
    advanced-gutenberg-blocks/classes/Services/Blocks.php on line 160

    seems to be working so far. Hopefully I didn’t forget to modify the name anywhere else

    Thierry

    (@theremingenieur)

    That would mean that there was a perhaps conflict with another plugin or theme file which also defines LIST as a constant. Great you found a workaround!
    Since I don’t see that problem on PHP 7.2, I don’t think that it’s conflicting directly with php.

    • This reply was modified 5 years, 11 months ago by Thierry.

    Same problem here on site with PHP 5.6.x, and changing to 7.1.x fixed the issue.

    Thierry

    (@theremingenieur)

    Good to know, thank you! In ever case, PHP5.6 is already deprecated and will become obsolete in a few days, on January first, 2019.

    Thread Starter JS

    (@jsylvia90)

    Okay. WordPress 5.0 installed today and I upgraded my PHP to PHP Version 7.0.31. Now working fine. Thanks.

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