WordPress.org

Ready to get started?Download WordPress

Forums

Widget logic error with Stars theme (4 posts)

  1. trinasc
    Member
    Posted 5 years ago #

    Hi everyone! I am having an issue with Widget Logic and The Stars theme. I get the following error:

    Warning: Illegal offset type in (dev server)/wp-content/plugins/widget-logic/widget_logic.php on line 125

    Warning: Illegal offset type in (dev server)/wp-content/plugins/widget-logic/widget_logic.php on line 128

    Warning: Illegal offset type in (dev server)/wp-content/plugins/widget-logic/widget_logic.php on line 125

    Warning: Illegal offset type in (dev server)/wp-content/plugins/widget-logic/widget_logic.php on line 128

    The site link is:http://dev.gamingangels.com/
    Not sure if you can see the error without being logged in.

    This is the section of code in widget_logic that it seems to be breaking on:
    function widget_logic_redirect_callback()
    { global $wp_registered_widgets;
    foreach ( $wp_registered_widgets as $id => $widget )
    { array_push($wp_registered_widgets[$id]['params'],$id);
    $wp_registered_widgets[$id]['callback_wl_redirect']=$wp_registered_widgets[$id]['callback'];
    $wp_registered_widgets[$id]['callback']='widget_logic_redirected_callback';
    }
    }

    Any ideas of things to try/check? I've read all the widget logic posts and can't find anything.

    Thank you for your help,
    Trina

  2. trinasc
    Member
    Posted 5 years ago #

    I'm sorry but I'm still having problems with this module. While I don't get the errors above anymore, the widget logic does not appear to be working.

    I have checked the 'use widget-content filter' and on the widgets in the side I tried any conditional statement like is_home() and the widgets still appear in all the sidebars.

    I guess it's the Stars theme, but do you have any ideas of what I should look for?

  3. murrayac
    Member
    Posted 5 years ago #

    I also get this error, did you end up finding a soloution. Muz!

    Warning: Illegal offset type in (dev server)/wp-content/plugins/widget-logic/widget_logic.php on line 128

  4. alanft
    Member
    Posted 5 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic