Tagged: 

Viewing 26 posts - 1 through 26 (of 26 total)
  • Author
    Posts
  • #438349

    3.1.3 = ok
    3.1.5 = broken

    #438351
    This reply has been marked as private.
    #438876

    understand a problem in the video?

    #440148

    Hey!

    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,
    Ismael

    #440221

    Hi, 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 disappeared

    sorry for my bad english

    #440227

    Hey!

    Please give us the login details. We would like to check it. You can’t create any custom widget area now?

    Regards,
    Ismael

    #440236

    I create test installation + make screencast + give you access

    #440246
    This reply has been marked as private.
    #440719

    Hey!

    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,
    Ismael

    #440878
    This reply has been marked as private.
    #441445

    Hey!

    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,
    Ismael

    #441446

    I have 710 posts with cyrillic name custom widget area – big problem to edit in latin. login & pass above.

    #441449

    Hey!

    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!
    Ismael

    #441452

    That 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 site

    #441471
    This reply has been marked as private.
    #441845

    Hi!

    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,
    Ismael

    #441926
    This reply has been marked as private.
    #442282

    Hey!

    Please give us access to the database and ftp so that we can check what changes when 3.1.5 is activated.

    Best regards,
    Ismael

    #442287

    Hi, on my hosting it is impossible. You have full database in post #441926. You can install it local and experiment.

    #442349

    Hi!

    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,
    Ismael

    #442363

    Hi.
    No matter what names are custom widget area. important name in Cyrillic
    You can take the title of the post #440221 (step 1-5)

    #442370

    db link in #441926
    see sidebars_widgets.sql & avia_sidebars.sql
    or http://pastebin.com/download.php?i=CbViJ5Y0 & http://pastebin.com/download.php?i=RZfJyp1N

    #442453

    Hi!

    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,
    Ismael

    #442538

    For the meantime, try to edit framework > php > class-sidebar-generator.php, look for this code:

    it works on the test site. thanks

    #442803

    Hi!

    Alright. Please create a backup of the actual site before doing the modifications above, just in case.

    Best regards,
    Ismael

    #442827

    Hi.
    All works. Thanks.

Viewing 26 posts - 1 through 26 (of 26 total)
  • The topic ‘Custom widget area + cyrillic name = broken in enfold 3.1.5’ is closed to new replies.