Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @bureauit,

    Looking at your screenshot, I see some products with tab data and some without. When I look at the frontend of your site, it looks like the markup for those tabs is not being echoed. That can be caused by a number of issues, but if you deleted the plugin and reinstalled it, the tab data is likely no longer there. Most plugins clean up their database entries when deleted, and our plugin does as well.

    Can you check once again on your post meta table and see if the entries remain?

    Thanks,
    Jon

    Thread Starter bureauit

    (@bureauit)

    how to restore tabs?

    Thread Starter bureauit

    (@bureauit)

    I found the problem:

    for example meta_value for one product tabs in database:
    a:1:{i:0;a:3:{s:5:”title”;s:14:”Брошюры”;s:2:”id”;s:14:”брошюры”;s:7:”content”;s:104:”ГХ 2014 (пдф)“;}}

    and its not correct in this “s:104”, “s” have to be s:106.

    Thread Starter bureauit

    (@bureauit)

    I found the problem:

    for example meta_value for one product tabs in database:

    a:1:{i:0;a:3:{s:5:”title”;s:14:”Брошюры”;s:2:”id”;s:14:”брошюры”;s:7:”content”;s:104:”<a href="https://interanalyt.ru/wp-content/uploads/2021/05/gc-2014-flyer-03.18.pdf" rel="nofollow ugc">ГХ 2014 (пдф)</a>“;}}

    and its not correct in this “s:104”, “s” have to be s:106.

    Hi @bureauit,

    So an issue like that almost certainly means that database entries have been modified without correctly unserializing and re-serializing the data. This is generally due to manual editing of database entries or performing activities like a search and replace with tools that don’t handle serialized data.

    If I take the array of information out of that serialized data and build the data correctly like this:

    array(
    	array(
    		'title' => 'Брошюры',
    		'id' => 'брошюры',
    		'content' => '<a href="https://interanalyt.ru/wp-content/uploads/2021/05/gc-2014-flyer-03.18.pdf" rel="nofollow ugc">ГХ 2014 (пдф)</a>'
    	)
    )

    And I run that through the serialize function I get this:

    a:1:{i:0;a:3:{s:5:"title";s:14:"Брошюры";s:2:"id";s:14:"брошюры";s:7:"content";s:125:"<a href="https://interanalyt.ru/wp-content/uploads/2021/05/gc-2014-flyer-03.18.pdf" rel="nofollow ugc">ГХ 2014 (пдф)</a>";}}

    Serialized data is labeled sort of like this: type:length:"content". If you make changes to the data (such as through a search and replace) but don’t change the length property, the data will no longer be valid.

    Let me know if that helps,
    Jon

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘tabs disappeared’ is closed to new replies.