Forum Replies Created
-
AuthorPosts
-
Okay, thanks again everyone for all the replies!
So I can reliably re-create this issue: On our sandbox site, I currently have all of the widget areas empty. I drag a few custom menus into a few widget areas, navigate to a different page and come back to make sure that the custom menus stayed in their widgets (they did), and then I delete one of the custom widget areas I had created in the past. I click ‘OK’ on the prompt, and then the widget area gets deleted. I leave the widgets page, come back, and at that point, all of the custom menus have jumped out of their widget areas.
Recreating a custom widget area does not cause the menus to jump back in (Wasn’t hopeful it would, but thought I’d try).
I can add and modify as many widget areas as I want, but a soon as I delete just one of them, all the custom menus jump out.
On our sandbox site as of right now we’re running WordPress 4.3.1, and it was upgraded from the previous version as soon as 4.3.1 was available. On our production site we’re currently running 4.2.3.
@ismael: Based on the info I just provided above, are you saying that there’s no way to prevent this and/or make the menus jump back inside their correct widgets? I know you said that there’s no way to fix the widgets if I upgraded from a version older than 4.2, but we upgraded from the last available version.Any other thoughts/suggestions anyone? At the very least, we know exactly what not to do now.
Thanks!
-Jake
Thanks again for the replies! Unfortunately I can’t grant any kind of access, because it’s on our company INTRAnet. As far as plug-ins go, I haven’t deactivated them and tried again, however I’m a little skeptical, as we only have two or three plug-ins running, and they’re major, well-known and tested plugins. Will try it out though. Meanwhile, can anyone think of any other things that might be occurring??
Also, forgot to mention that this also happened on our Sandbox site (which is about a 90% exact copy of our production site) yesterday in the same manner. I created a new widget area, and next thing I knew, all of the menus had jumped out and over to the inactive section.
Also, the widget areas that don’t have ‘x’s on them… they seem as if they’re part of the theme by default, however these are definitely not widget areas that are included out-of-the-box with Enfold. For example, on my own site I use Enfold, and when I check it out right now, the only widget areas that do not have ‘x’s on them are Footer – Column 1, Footer – Column 2, Footer – Column 3, and Footer – Column 4, and from there on, any widget areas that I create have ‘x’s on them. However on our prod/sandbox sites, nearly all of them are without ‘x’s, as if they’ve been made a default part of Enfold.
Could you point me in the right direction for poking around in the code maybe?
Thanks
-Jake
Hey Rickard, thanks for the reply.
Unfortunately no, as far as I can tell, it happened either right after I deleted and re-created one of the custom widget areas, or right after I modified the contents of an existing custom widget area… I actually don’t even have the ability to upgrade WordPress without coordinating downtime with our server guys.
So to actually fix the error and not just hide it by turning the debugging feature off, navigate to the register-widget-area.php file (wp-content/themes/enfold/includes/admin/register-widget-area.php) and add this line of code to each sidebar array, starting with the first one at ‘sidebar-1’, the second one at ‘sidebar-2’, and so on.
‘id’ => ‘sidebar-2’,
So for example, before the array looked like:
foreach ($sidebars_to_show as $sidebar)
{
register_sidebar(array(
‘name’ => ‘Displayed Everywhere’,
‘before_widget’ => ‘<section id=”%1$s” class=”widget clearfix %2$s”>’,
‘after_widget’ => ‘<span class=”seperator extralight-border”></span></section>’,
‘before_title’ => ‘<h3 class=”widgettitle”>’,
‘after_title’ => ‘</h3>’,
));
}And now it looks like:
foreach ($sidebars_to_show as $sidebar)
{
register_sidebar(array(
‘id’ => ‘sidebar-1’,
‘name’ => ‘Displayed Everywhere’,
‘before_widget’ => ‘<section id=”%1$s” class=”widget clearfix %2$s”>’,
‘after_widget’ => ‘<span class=”seperator extralight-border”></span></section>’,
‘before_title’ => ‘<h3 class=”widgettitle”>’,
‘after_title’ => ‘</h3>’,
));
}That should take care of almost all the error messages, however I’m still looking for a ‘Social Media Links’ Sidebar somewhere in the code…
-
AuthorPosts