Support » Plugin: Ultimate Blocks - Gutenberg Blocks Plugin » Error Trying to access array offset on value of type bool in block.php Line 297

  • Resolved creativetags

    (@creativetags)


    I’m seeing this error in the admin panel. I’ve seen similar errors after upgrading to PHP 7.4

    Notice: Trying to access array offset on value of type bool in /wp-content/plugins/ultimate-blocks/src/blocks/post-grid/block.php on line 297

    That line is

    return $feat_img_array[0];

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Imtiaz Rayhan

    (@imtiazrayhan)

    Hi @creativetags,

    Sorry to hear about that.

    We will look into it right away and hopefully come up with a solution asap.

    I apologize for the inconvenience.

    I will let you know as soon as we have something.

    Regards.

    I am getting a similar message with a different plugin, not in the admin panel but on almost every page of my actual website, unfortunately.

    Notice: Trying to access array offset on value of type bool in /var/www/html/lib_sites/or/main/wp-content/plugins/advanced-custom-fields-pro/includes/api/api-template.php on line 499

    Here is the line of code in api-template.php:
    $name = $field[‘name’];

    The plugin developer said he would look into it, but meanwhile, I would welcome any suggestions.

    FWIW — I appear to have solved my Advanced Custom Fields problem by making this change in advanced-custom-fields-pro/includes/api/api-template.php on line 499:
    Instead of

    $name = $field[‘name’];

    I wrote:

    if( is_array($field) ) {

    $name = $field[‘name’];

    }

    Plugin Contributor Alexis Pandaan

    (@alexius08)

    Hi @creativetags!

    Thanks to @jonathanwiener’s hint, we’ve identified the part that’s causing this error message. We’ll include the fix in the next update.

    Regards.

    Plugin Author Imtiaz Rayhan

    (@imtiazrayhan)

    Hi @jonathanwiener & @creativetags,

    Just wanted to let you all know that we have just released an update today which comes with the fix for these issues.

    Please update the plugin to the latest version.

    Let us know if you come across any issues.

    Regards.

    Hi, @imtiazrayhan
    regarding the fix, i have been experiencing it in 2 different pages

    -PHP Notice: Trying to access array offset on value of type bool in \wp-content\plugins\advanced-custom-fields-pro\includes\api\api-template.php on line 499
    in which version of acf pro is this solved?

    // parent loop
    if( $new_parent_loop ) {

    $field = get_field_object( $selector, $post_id, false );
    $value = acf_extract_var( $field, ‘value’ );
    $name = $field[‘name’];

    -PHP Notice: Trying to access array offset on value of type bool in \wp-admin\includes\template.php on line 1080,1081,1079

    elseif ( ‘sorted’ == $priority ) {
    $title = $wp_meta_boxes[ $page ][ $a_context ][ $a_priority ][ $id ][‘title’];
    $callback = $wp_meta_boxes[ $page ][ $a_context ][ $a_priority ][ $id ][‘callback’];
    $callback_args = $wp_meta_boxes[ $page ][ $a_context ][ $a_priority ][ $id ][‘args’];
    }

    \wp-admin\includes\template.php
    is this fixed too?

    thks.

    mandy semaan

    (@mandy-semaan)

    Hello,

    Facing the same issue:

    -PHP Notice: Trying to access array offset on value of type bool in \wp-admin\includes\template.php on line 1080,1081,1079

    elseif ( ‘sorted’ == $priority ) {
    $title = $wp_meta_boxes[ $page ][ $a_context ][ $a_priority ][ $id ][‘title’];
    $callback = $wp_meta_boxes[ $page ][ $a_context ][ $a_priority ][ $id ][‘callback’];
    $callback_args = $wp_meta_boxes[ $page ][ $a_context ][ $a_priority ][ $id ][‘args’];
    }

    \wp-admin\includes\template.php

    with both php version 7.3 and 7.4…has there been any fix?

    Getting the same error message for wp-includes/meta.php

    Getting same error message
    Error Trying to access array offset on value of type bool in C:\xampp\htdocs\wordpress\wp-content\plugins\ocean-extra\includes\panel\import-export.php on line 181

    Plugin Contributor Alexis Pandaan

    (@alexius08)

    Hey everyone! If you stumbled upon this page while searching for possible solutions for error messages similar to the one at the title, please keep in mind that the fix we provided applies only to Ultimate Blocks users, and a similar fix may or may not work for your situation.

    If the error message is coming from another plugin, please notify the developer of the plugin. If the error message traces back to one of WordPress core files, please refer to this page for more information about filing a ticket for your issue.

    Good day! Now I saw that I had errors. How do I fix them?
    “Warning: Trying to access array offset on value of type bool in /home/users/m/mpinox/domains/mpinox-pasin.com/wp-content/plugins/all-meta-tags/inc/php/functional.php “on line 492.

    Good day! I’m also experiencing this same error for some reason.

    Notice: Trying to access array offset on value of type bool in /home/kompra/public_html/wp-content/plugins/dokan-pro/modules/moip/includes/admin/class-moip-subscription.php on line 45

    Notice: Trying to access array offset on value of type bool in /home/kompra/public_html/wp-content/plugins/dokan-pro/modules/moip/includes/admin/class-moip-subscription.php on line 45

    Notice: Trying to access array offset on value of type bool in /home/kompra/public_html/wp-content/plugins/dokan-pro/modules/moip/includes/admin/class-moip-subscription.php on line 46

    Notice: Trying to access array offset on value of type bool in /home/kompra/public_html/wp-content/plugins/dokan-pro/modules/moip/includes/admin/class-moip-subscription.php on line 46

    Notice: Trying to access array offset on value of type bool in /home/kompra/public_html/wp-content/plugins/dokan-pro/modules/moip/includes/admin/class-moip-subscription.php on line 47

    Notice: Trying to access array offset on value of type bool in /home/kompra/public_html/wp-content/plugins/dokan-pro/modules/moip/module.php on line 101

    Notice: Trying to access array offset on value of type bool in /home/kompra/public_html/wp-content/plugins/dokan-pro/modules/moip/module.php on line 101

    Notice: Trying to access array offset on value of type bool in /home/kompra/public_html/wp-content/plugins/dokan-pro/modules/moip/module.php on line 102

    Notice: Trying to access array offset on value of type bool in /home/kompra/public_html/wp-content/plugins/dokan-pro/modules/moip/module.php on line 102

    Notice: Trying to access array offset on value of type bool in /home/kompra/public_html/wp-content/plugins/dokan-pro/modules/moip/module.php on line 103

    Notice: Trying to access array offset on value of type bool in /home/kompra/public_html/wp-content/plugins/dokan-pro/modules/moip/module.php on line 103

    Notice: Trying to get property ‘ID’ of non-object in /home/kompra/public_html/wp-content/plugins/coupon-referral-program/public/class-coupon-referral-program-public.php on line 279

    Notice: Trying to get property ‘ID’ of non-object in /home/kompra/public_html/wp-content/plugins/coupon-referral-program/public/class-coupon-referral-program-public.php on line 279

    Notice: Trying to get property ‘ID’ of non-object in /home/kompra/public_html/wp-content/plugins/coupon-referral-program/public/class-coupon-referral-program-public.php on line 279

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.