Tagged: widget area
-
AuthorPosts
-
May 2, 2015 at 10:24 am #438349
3.1.3 = ok
3.1.5 = brokenMay 2, 2015 at 10:52 am #438351This reply has been marked as private.May 4, 2015 at 1:57 pm #438876understand a problem in the video?
May 6, 2015 at 7:20 am #440148Hey!
Thank you for using Enfold.
The video helps but I don’t fully understand the implications. The id changed or has been added when you recreate the custom sidebar and the deleted widget areas come back when the page is refreshed? I guess this is due to the WP 4.2 update which now requires the id attribute when you register the sidebar (https://codex.wordpress.org/Function_Reference/register_sidebar). The theme applies a custom id to the widget areas so you don’t have to do anything when you update the theme however Kriesi stated the following:
In rare cases it might be necessary to check if the widgets are still correctly placed, especially when the user uses plugins to create sidebars. The worst thing that can happen is that a widget is moved to the “inactive widgets” area and needs to be placed in the appropriate widget area.
I noticed in the video that you placed widgets in the “Inactive Widgets” section. This widgets will no longer work unfortunately. This is just a wild guess because I don’t really see what’s happening inside the widget panel nor I fully understand cyrillic characters. I think the next step is to recreate the custom widget area from scratch.
Best regards,
IsmaelMay 6, 2015 at 10:44 am #440221Hi, Ismael.
follow steps on 3.1.3:
1) add custom widget area “Похожие записи + поделиться”
2) add custom widget area “Поделиться в соцсетях”
3) add custom widget area “Теги для записи”
4) add custom widget area “Реклама Google (верх страницы)”
5) add custom widget area “Реклама Яндекс (низ страницы)”
with content in custom area
6) upgrade to 3.1.5
after the upgrade: 1-5 present in database & missing in widgets & site
will only 4) & 5) without content
content in the “Inactive Widgets” section
7) add content from “Inactive Widgets” section in 4 or 5
8) add custom widget area “Похожие записи + поделиться”
obtain: “Похожие записи + поделиться1” & lose 4
9) add next custom widget area with cyrillic name
10) repeat step 9 again and again..
11) if you delete cyrillic custom widget area and update the page then will the previous one, which disappearedsorry for my bad english
May 6, 2015 at 10:48 am #440227Hey!
Please give us the login details. We would like to check it. You can’t create any custom widget area now?
Regards,
IsmaelMay 6, 2015 at 10:53 am #440236I create test installation + make screencast + give you access
May 6, 2015 at 11:17 am #440246This reply has been marked as private.May 7, 2015 at 4:06 am #440719Hey!
Is it OK if reset the widgets to factory settings or default? Please delete all widgets inside the widget areas including the ones in the Inactive Section then add this in the functions.php file:
update_option( 'sidebars_widgets', $null );
Refresh the widget page then remove the code. Don’t forget to remove the code after the first refresh. Based on: http://justintadlock.com/archives/2009/03/03/widgets-reset-wordpress-plugin
Regards,
IsmaelMay 7, 2015 at 11:26 am #440878This reply has been marked as private.May 8, 2015 at 9:04 am #441445Hey!
Hmm.. Please post the link to the installation with the cyrillic custom widget area. We would like to check it. If possible, provide the login details as well. I’ll ask Kriesi to take a look.
Best regards,
IsmaelMay 8, 2015 at 9:06 am #441446I have 710 posts with cyrillic name custom widget area – big problem to edit in latin. login & pass above.
May 8, 2015 at 9:11 am #441449Hey!
I thought you have an installation with cyrillic custom widget areas? We would like to check that. I check the test site but there is only 1 post.
Cheers!
IsmaelMay 8, 2015 at 9:18 am #441452That site runs on 3.1.3. 6000+ visitors per day
No matter how many records on the test site
I will create a copy of the siteMay 8, 2015 at 10:22 am #441471This reply has been marked as private.May 9, 2015 at 4:21 am #441845Hi!
Alright. Thank you for the test site. Activating 3.1.5 removes or hides the custom widget areas but when you switch back to 3.1.3, the widget areas return back to normal. Unfortunately, the widgets are transferred inside the Inactive section so you will have to place it back to the correct widget areas.
Please give us access to the test site’s phpMyadmin panel. Or access the database. Go to the Search panel, input the keyword “sidebar”, select all tables. In the result list, click wp_options then look for the option_name “sidebar_widgets” and “avia_sidebars”. Please post the option_value on pastebin.com. We would like to check it.
Regards,
IsmaelMay 9, 2015 at 10:34 am #441926This reply has been marked as private.May 11, 2015 at 9:16 am #442282Hey!
Please give us access to the database and ftp so that we can check what changes when 3.1.5 is activated.
Best regards,
IsmaelMay 11, 2015 at 9:25 am #442287Hi, on my hosting it is impossible. You have full database in post #441926. You can install it local and experiment.
May 11, 2015 at 11:02 am #442349Hi!
Alright. Please separate the value of the sidebar_widgets and the avia_sidebar. Create a separate paste for them on pastebin.com. We’ll test it on our installation.
Best regards,
IsmaelMay 11, 2015 at 11:36 am #442363Hi.
No matter what names are custom widget area. important name in Cyrillic
You can take the title of the post #440221 (step 1-5)May 11, 2015 at 11:47 am #442370db link in #441926
see sidebars_widgets.sql & avia_sidebars.sql
or http://pastebin.com/download.php?i=CbViJ5Y0 & http://pastebin.com/download.php?i=RZfJyp1NMay 11, 2015 at 2:24 pm #442453Hi!
I found out that you can’t modify the sidebar_widgets in the database manually. Looks like custom widget areas with cyrillic characters are not being registered properly in the sidebar_widgets. Let’s wait for Kriesi to respond.
For the meantime, try to edit framework > php > class-sidebar-generator.php, look for this code:
$args['id'] = avia_backend_safe_string($sidebar,'-');
Replace it with:
$args['id'] = $sidebar;
You need to register the custom widget areas again then place the inactive widgets accordingly.
Regards,
IsmaelMay 11, 2015 at 4:36 pm #442538For the meantime, try to edit framework > php > class-sidebar-generator.php, look for this code:
it works on the test site. thanks
May 12, 2015 at 6:37 am #442803Hi!
Alright. Please create a backup of the actual site before doing the modifications above, just in case.
Best regards,
IsmaelMay 12, 2015 at 8:07 am #442827Hi.
All works. Thanks. -
AuthorPosts
- The topic ‘Custom widget area + cyrillic name = broken in enfold 3.1.5’ is closed to new replies.