• Resolved Robin

    (@cinghaman)


    Hi

    I had a PHP fatal error after updating to version 3.0.0

    PHP Fatal error: Uncaught Error: Call to undefined function has_block() in /dom23256/wp-content/plugins/scriptless-social-sharing/includes/output/class-scriptlesssocialsharing-output.php:53
    Stack trace:
    #0 /dom23256/wp-content/plugins/scriptless-social-sharing/includes/output/class-scriptlesssocialsharing-output.php(38): ScriptlessSocialSharingOutput->check_singular_post(true)
    #1 /dom23256/wp-content/plugins/scriptless-social-sharing/includes/output/class-scriptlesssocialsharing-output-buttons.php(55): ScriptlessSocialSharingOutput->can_do_buttons()
    #2 /wordpress-4.9.10/wp-includes/class-wp-hook.php(286): ScriptlessSocialSharingOutputButtons->load_styles(”)
    #3 /wordpress-4.9.10/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #4 /wordpress-4.9.10/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #5 /wordpress-4.9.10/wp-includes/script-loader.php(1447): do_action(‘wp_enqueue_scri…’)
    #6 /wordpress-4.9.10/wp-includes/class-wp-hook.php(286): wp_enqueue_scripts(”)
    #7 /wordpress-4.9.10/wp-includes/cl in /dom23256/wp-content/plugins/scriptless-social-sharing/includes/output/class-scriptlesssocialsharing-output.php on line 53

    PS: Cache flushed
    WP version: 5.1.1
    PHP version: 7.2

    Thanks,
    Robin

Viewing 1 replies (of 1 total)
  • Plugin Author Robin Cornett

    (@littlerchicken)

    The has_block function was added to WordPress in 5.0, so I’m not sure why you are seeing that error in 5.1. However, it is definitely a mistake on my part to not check for that. I’m in the process of pushing version 3.0.1 which should resolve the issue for WordPress versions prior to 5.0 and checks for the existence of that function. I’m sorry for the inconvenience and thank you for letting me know!

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