Shape 5

Wordpress Club Themes => Traction - Club => : brelandr September 11, 2014, 08:21:20 PM



: Error after upgrading to wp 4.0 on Traction Theme / accordion menu
: brelandr September 11, 2014, 08:21:20 PM
after upgrading to the latest wordpress version I am getting an error this site
http://randybreland.com/corvette/club-info/

Menu still shows up, but only after showing this error message

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/content/r/a/n/randybreland/html/corvette/wp-content/plugins/s5-accordion-menu/accordion_menu_walker.php on line 30

Warning: extract() expects parameter 1 to be array, null given in /home/content/r/a/n/randybreland/html/corvette/wp-content/plugins/s5-accordion-menu/accordion_menu_walker.php on line 30

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/content/r/a/n/randybreland/html/corvette/wp-content/plugins/s5-accordion-menu/accordion_menu_walker.php on line 75

Warning: extract() expects parameter 1 to be array, null given in /home/content/r/a/n/randybreland/html/corvette/wp-content/plugins/s5-accordion-menu/accordion_menu_walker.php on line 75


: Re: Error after upgrading to wp 4.0 on Traction Theme / accordion menu
: Tristan Rineer September 12, 2014, 10:53:10 AM
Thanks for letting me know about the problem; I'm hoping to have a fix ready in the next few days.


: Re: Error after upgrading to wp 4.0 on Traction Theme / accordion menu
: Tristan Rineer September 15, 2014, 06:43:34 AM
I'll be uploading an updated version of the plugin in the next few days; until then, here's a fix:

In the "accordion_menu_walker.php" file in the plugin folder, find the following code:

:
class Accordion_Menu_Walker extends Walker_Nav_Menu{

function display_element ($element, &$children_elements, $max_depth, $depth = 0, $args, &$output){

And change it to:

:
class Accordion_Menu_Walker extends Walker_Nav_Menu{

var $options;

function display_element ($element, &$children_elements, $max_depth, $depth = 0, $args, &$output){


That should fix all the errors.  Let me know ASAP if there are any other issues with the plugin, as I will only be working on updating it today and tomorrow.

If you don't want to add that single line of code, you can wait until Wednesday and just grab the latest download of the plugin, as I plan to have the download updated by then.


: Re: Error after upgrading to wp 4.0 on Traction Theme / accordion menu
: brelandr September 15, 2014, 08:10:44 AM
Thanks. That has resolved the issue.  It appears this affected a more than just this theme though. looks like other themes were broken as well including the september theme.


: Re: Error after upgrading to wp 4.0 on Traction Theme / accordion menu
: Tristan Rineer September 15, 2014, 12:01:03 PM
I'm not sure what you mean about other themes having the issue; as shown by the fix, the problem was in the plugin, not the theme.  Or was there some other problem you're referring to?


: Re: Error after upgrading to wp 4.0 on Traction Theme / accordion menu
: brelandr September 15, 2014, 01:41:28 PM
was basically referring to the other themes using this plug in had the same issue.  I added the change to my other themes (plug ins) and it resolve the issue there as well