• Hi,

    I recently updated Kadence to Version 3.1.26 and I am getting thrown this error when I try to edit a block.

    ErrorException: Attempt to read property "base" on null in file /wp-content/plugins/kadence-blocks/includes/class-kadence-blocks-image-picker.php on line 73

    Is there a known issue with this one?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Gilbert Hernandez

    (@ghernkadence)

    Hello @relozo,

    I haven’t found any other similar reports. The error you posted appears to be related to the Pexels image picker that Kadence provides. The error says that the get_current_screen() function on line 73 returns null.

    Can you provide more details on how the error is generated so we can try to recreate it? Can you list the steps you took to trigger the error?

    Thread Starter Erick Toma

    (@relozo)

    Hi, thanks for replying.

    I did more testing and it seems like it happened after updating another plugin – Advanced custom fields pro to the latest 6.2.4.

    Does the plugin support that compatibility?

    Thread Starter Erick Toma

    (@relozo)

    I modified the code on line 73 and it seems to have fixed the issue in my case temporarily. I found that the problem is not related to ACF, but it started on Kadence version 3.1.16 with the introduction of Pexels. I’ve already disabled the option in wp-config, but the issue persisted.

    // $current_screen = is_admin() && function_exists( 'get_current_screen' ) ? get_current_screen()->base : '';

    $current_screen = is_admin() && function_exists( 'get_current_screen' ) ? get_current_screen() : null;

    $current_screen_base = is_object( $current_screen ) ? $current_screen->base : '';

    if ( $this->image_picker_has_access() && $is_option_enabled && 'upload' !== $current_screen_base ) {

    Plugin Support Gilbert Hernandez

    (@ghernkadence)

    Hello @relozo,

    Do the errors only appear when you use the ACF Pro plugin v6.2.4? You mentioned the problem occurred after you updated ACF pro. Can you confirm the problem doesn’t occur on 6.2.3?

    Unfortunately, ACF Pro isn’t a plugin I have access to for testing. I’ll mention this thread to the developers for them to review.

    Thread Starter Erick Toma

    (@relozo)

    Hi, I did more testing and the issue occurred even at 6.2.3

    No worries at all. I am just hoping that the solution I did is a workaround for the error I am encountering.

    Plugin Support Gilbert Hernandez

    (@ghernkadence)

    Hello @relozo,

    I received word from the developer. A fix will be released in the next update. Thank you for reporting the problem and providing your feedback.

    Same for me : the following error :
    Warning: Attempt to read property “base” on null in /home/xxxxxxx/www/wp-content/plugins/kadence-blocks/includes/class-kadence-blocks-image-picker.php on line 73
    is there for many month already, it’s just an annoying warning i get on the backoffice. I use Astra theme, Custom Post Type UI among others if it can help…
    Thanks

    Plugin Support Gilbert Hernandez

    (@ghernkadence)

    Hello @phillt,

    The fix hasn’t been released to the WP repository. Currently, Kadence Blocks 3.2 is in beta status and available for pre-release testing at Kadencewp.com.

    I just updated from 3.1.22 to 3.2.19 and the warnings have stopped in my PHP Error Log.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Error after plugin update’ is closed to new replies.