• Resolved usernameisinuse

    (@usernameisinuse)


    Hi! When I added a saved tab it appears epty, no content. To make it work, I should add it one more time, now it will have content. Then I should delete both new tabs (because I can’t just delete empty one, another will become emty too). And I could finaly add needed sabed tab =)

    So, it works, but I think it should work little more simplear =)

    BTW, this errors I’ve got on edit product tabs page:

    Uncaught TypeError: Cannot read property ‘parse’ of undefined
    at o.setContent (tinymce.min.js?ver=4603-20170530:13)
    at yikes_woo_set_content_for_wysiwyg (repeatable-custom-tabs-shared.min.js?ver=b0ff49:1)
    at yikes_woo_get_wp_editor_foureight (repeatable-custom-tabs-shared.min.js?ver=b0ff49:1)
    at yikes_woo_add_another_tab (repeatable-custom-tabs.min.js?ver=all:1)
    at yikes_woo_apply_resuable_tab (repeatable-custom-tabs.min.js?ver=all:1)
    at Object.success (repeatable-custom-tabs.min.js?ver=all:1)
    at i (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-slider,jquery-tou&load[]=ch-punch,iris,wp-color-picker,jquery-color,jquery-ui-sortable,jquery-ui-position,jquery-ui-menu,wp-a11y,jquery-ui-autocomplete,u&load[]=nderscore,backbone,wp-util,wp-backbone,media-models,plupload,jquery-ui-tabs,jquery-ui-resizable,jquery-ui-button,jquery-ui-dialo&load[]=g,jquery-ui-droppable&ver=4.8.1:2)
    at Object.fireWith [as resolveWith] (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-slider,jquery-tou&load[]=ch-punch,iris,wp-color-picker,jquery-color,jquery-ui-sortable,jquery-ui-position,jquery-ui-menu,wp-a11y,jquery-ui-autocomplete,u&load[]=nderscore,backbone,wp-util,wp-backbone,media-models,plupload,jquery-ui-tabs,jquery-ui-resizable,jquery-ui-button,jquery-ui-dialo&load[]=g,jquery-ui-droppable&ver=4.8.1:2)
    at y (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-slider,jquery-tou&load[]=ch-punch,iris,wp-color-picker,jquery-color,jquery-ui-sortable,jquery-ui-position,jquery-ui-menu,wp-a11y,jquery-ui-autocomplete,u&load[]=nderscore,backbone,wp-util,wp-backbone,media-models,plupload,jquery-ui-tabs,jquery-ui-resizable,jquery-ui-button,jquery-ui-dialo&load[]=g,jquery-ui-droppable&ver=4.8.1:4)
    at XMLHttpRequest.c (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-slider,jquery-tou&load[]=ch-punch,iris,wp-color-picker,jquery-color,jquery-ui-sortable,jquery-ui-position,jquery-ui-menu,wp-a11y,jquery-ui-autocomplete,u&load[]=nderscore,backbone,wp-util,wp-backbone,media-models,plupload,jquery-ui-tabs,jquery-ui-resizable,jquery-ui-button,jquery-ui-dialo&load[]=g,jquery-ui-droppable&ver=4.8.1:4)

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi @usernameisinuse,

    It’s definitely supposed to be simpler – sorry; you’re workaround is quite impressive though.

    The error you’ve pasted is coming from JavaScript and is breaking the whole tabs scripts. Is this error occurring when you try to add the saved tab? Please let me know when the error arises and if there are any other errors.

    Also, the error is related to the editor and this changed with WordPress 4.8. Are you running on the latest version of WordPress?

    Let me know,
    Kevin.

    Thread Starter usernameisinuse

    (@usernameisinuse)

    I use WP 4.8.1
    Error in cosole appear when:
    1. Open product edit
    2. Choose custom tabs tab
    3. Press Add a Saved Tab
    4. Choose saved tab -> error in console.

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Okay so the error is with adding the content into the editor, but it works when you try to add content to the editor a second time?

    By any chance, is your user profile set to Disable the visual editor when writing? We’ve had some bugs in the past with text mode vs. visual mode and they typically create the same error you’re seeing. I’m wondering if this is what’s going on.

    Thread Starter usernameisinuse

    (@usernameisinuse)

    Nope, visual editor is on.

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hmm. I still think it’s related to the editor not being initialized in some way.

    Before adding any tabs, try clicking between the “text” tab and “visual” tab on the Product’s main description editor. It sounds a bit wild, I know, but it will force the editor to initialize. After clicking between the two, try adding a new tab.

    Also, can you add custom tabs? Do you experience any errors with custom tabs? What happens if you add a custom tab and then add a saved tab?

    I’m trying to narrow down the issue as I can’t re-create it on my environment. Sorry that I’m asking you to try all these different scenarios.

    Kevin.

    Thread Starter usernameisinuse

    (@usernameisinuse)

    Error still exist, no matter how many times I svitch editor.

    Custom tabs work great.

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    And if you add custom tabs can you then add saved tabs without an error?

    I am going to review the code to see if there are any differences between the way custom tabs and saved tabs work.

    Thread Starter usernameisinuse

    (@usernameisinuse)

    Problem go bigger. Now, when I saved new custom tab, my old saved tabes on frontend disappeared. Lol =) Go to search for a new plugin.

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

The topic ‘Saved tabs problem’ is closed to new replies.