Forum Support

Shape 5
March 28, 2024, 01:31:09 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Error after upgrading to wp 4.0 on Traction Theme / accordion menu  (Read 1161 times)
brelandr
Jr. Member
**
Offline Offline

Posts: 27



« on: 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
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #1 on: 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.
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #2 on: 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:

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:

Code:
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.
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
brelandr
Jr. Member
**
Offline Offline

Posts: 27



« Reply #3 on: 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.
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #4 on: 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?
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
brelandr
Jr. Member
**
Offline Offline

Posts: 27



« Reply #5 on: 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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.