Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #19796

    Menu work ok, but when I add items as sub-menu items for a mega menu it displays this error on the front end, right before the menu:

    Notice: Undefined variable: last in /var/www/ <my path> /wp-content/themes/replete/includes/helper-responsive-megamenu.php on line 109

    Line 109 is:

    $output = str_replace("{current_row_".$row."}", "avia_mega_menu_columns_".$columns." ".$this->grid_array[1].$last, $output);

    #105084

    Hey seanjohnson,

    First try disabling any active plugins you have running (except for WooCommerce). See if that removes the error from happening.

    Also, can you tell us the version of Replete, WordPress and WooCommerce you are using ?

    Regards,

    Devin

    #105085

    Hi,

    I got the same when in wp_debug

    replete 1.3.1

    woo 2.0.2

    wp 3.5.1

    #105086

    Hi gsTom,

    Are you getting the error when not debugging? Is the actual functionality impaired at all?

    Regards,

    Devin

    #105087

    No, no impact on functionality and no error displayed with debug off.

    Was just wondering about that.

    However, I configured to write an phperrorlog and I find huge numbers of this one there, which looks like coming from replete, but there are no further hints why it is in error log:

    [13-Mar-2013 13:57:52 UTC] Array

    (

    [color_set] => Array

    (

    [header_color] => Array

    (

    [bg] => #ffffff

    [bg2] => #f8f8f8

    [primary] => #333333

    [secondary] => #444444

    [color] => #333333

    [border] => #e1e1e1

    [heading] => #000000

    [meta] => #808080

    )

    [slideshow_color] => Array

    (

    [bg] => #041424

    [bg2] => #0c1d2e

    [primary] => #2d5c88

    [secondary] => #3d71a1

    [color] => #ffffff

    [border] => #ebebeb

    [heading] => #ffffff

    [meta] => #828A92

    )

    [main_color] => Array

    (

    [bg] => #f8f8f8

    [bg2] => #ffffff

    [primary] => #2d5c88

    [secondary] => #3d71a1

    [color] => #666666

    [border] => #e1e1e1

    [heading] => #222222

    [meta] => #8D8D8D

    )

    [alternate_color] => Array

    (

    [bg] => #ffffff

    [bg2] => #f8f8f8

    [primary] => #2d5c88

    [secondary] => #3d71a1

    [color] => #666666

    [border] => #e1e1e1

    [heading] => #222222

    [meta] => #919191

    )

    [footer_color] => Array

    (

    [bg] => #041424

    [bg2] => #222222

    [primary] => #2d5c88

    [secondary] => #e4e7eb

    [color] => #e4e7eb

    [border] => #0a2138

    [heading] => #f8fbff

    [meta] => #7E8892

    )

    [socket_color] => Array

    (

    [bg] => #02080f

    [bg2] => #000000

    [primary] => #ffffff

    [secondary] => #eeeeee

    [color] => #eeeeee

    [border] => #0a2138

    [heading] => #ffffff

    [meta] => #818487

    )

    )

    [style] => Array

    (

    [body_style] => stretched

    [body_color] => #041424

    [body_fontcolor] => #ffffff

    [body_img] =>

    [body_customimage] =>

    [body_pos] => top center

    [body_repeat] => repeat

    [body_attach] => scroll

    [body_background] => #041424 top center repeat scroll

    )

    )

    any idea?

    I’m running on all new versions WP351, replete 131, woo 203

    Danke

    Tom

    #105088

    Try following – open up wp-contentthemesrepleteincludesadminregister-dynamic-styles.php and replace following code:

    error_log(print_r($avia_config['backend_colors'], true));

    with:

    //error_log(print_r($avia_config['backend_colors'], true));

    #105089

    @seanjohnson please deactivate the debug mode (you need to edit wp-config.php: http://codex.wordpress.org/Editing_wp-config.php#Debug ). We’ll fix the php warning/notice with the next theme update however it’s not a good idea to turn on the debug mode on production systems.

    If you want to fix the error yourself please open up wp-contentthemesrepleteincludeshelper-responsive-megamenu.php and replace:

    $output = str_replace("{current_row_".$row."}", "avia_mega_menu_columns_".$columns." ".$this->grid_array[1].$last, $output);

    with:

    $output = str_replace("{current_row_".$row."}", "avia_mega_menu_columns_".$columns." ".$this->grid_array[1], $output);

    #105090

    Hi Dude,

    I suggest, the two solutions, one for me and one for seanjohnson are for the same issue.

    commenting //error_log… does of course avoid crowding my error-log-file.

    in debug the originating error still comes up, however, I will not go productive with debug mode on, just want to be sure, that I can go live with it as is, or should I also do the second change in helper-responsive-megamenu.php before?

    Thanks

    Tom

    PS: so far, my WP351, replete 131, woo 203 seems to be quite ok now – I only experience poor backend performance since upgrades for now!

    #105091

    Hi Tom,

    Yes, go ahead and make the same change if you’d like and of course turning off the error log for now. There are a number of bug fixes coming in the next update so this will be one of those.

    Regards,

    Devin

    #105092

    Hey!

    both fixes will be in the next updates, thanks for your help :)

    Regards,

    Kriesi

Viewing 10 posts - 1 through 10 (of 10 total)

The topic ‘Error on Mega Menu’ is closed to new replies.