This topic has 10 replies, 3 voices, and was last updated 9 years by Abe.

  • Author
  • #75713
     playism
    Participant

    Hello, after updating to kleo 3.0.7, it also force updated Visual Composer to 4.6.2. At this point, for product add page, VC started giving javascript error (Uncaught TypeError: Cannot read property ‘getRelatedTab’ of undefined) and because of it product details tabs cant be selected. Disabling VC for products or disabling wpml or downgrading VC to the earlier version fix the problem (neither we prefer). I think the new tabs of VC causes the conflict. Any suggestions for a fix?

    #75834
     Andrei
    Moderator

    Well, you should enable VC for products only if you’re using in there. I think this issue should be reported to the VC plugin author, so you can try to do that. Also, an update of our theme will be released shortly which will include update to VC 4.7, maybe that will fix your issue.

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #75982
     playism
    Participant

    thanks for the quick response,
    we also contacted both WPML and VC authors since it seems to be related to WPML also (without WPML, it works normal)

    In WPML support forums, there is another case such as this and they also told us it is a known issue and they contacted VC for it. However there is no status update on it.

    https://wpml.org/forums/topic/i-cant-switch-to-another-tab-in-product-data-of-product-edit-page/

    In VC support, the author told us, they have no known issue such as this and asked us to contact theme author.

    Since the javascript error seems to be related to new tabs feature introduced in 4.6 (it works fine when we downgrade to previous version), is there a way to disable tabs of VC, or how to actually debug this error?

    #76085
     Andrei
    Moderator

    We’ll release an update with VC 4.7 this days so I’ll ask you kindly to wait for it and see if the issue is still present.

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #76164
     playism
    Participant

    So as a workaround/temporary-fix I added a null check to caller object in assets/lib/vc_tabs/vc-tabs.js line 293 (it was somehow null in the above case) and bypassed changeHandler if it is null. I have no idea what side-effects it may have but since the javascript error is gone, product edit page functionality is back to normal.

    #76310
     Andrei
    Moderator

    I understand, you can report this fix to the VC authors as well if it works fine for you.
    Thanks for letting us know how you managed to fix it.
    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #76526
     playism
    Participant

    Hello, I already contacted them but they responded as they don’t have such problem although WPML authors also contacted them with the same issue. Anyway, probably I can bypass this bug same way if it happens to continue on 4.7.

    However I have another bug related to VC which VC developers cant duplicate too. They advised me to upgrade to 4.7. Is there a release plan for new Kleo update which includes 4.7 soon?

    The bug is, in the backend editor, when i add css animation right-to-left, it doesnt add the css_animation=”right-to-left” part to the shortcode (i check in classic view) so the animation doesnt work. it adds the parameter so it works for left-to-right and other animation types.

    if I add css_animation=”right-to-left” part manually in classic-view it works and there is no problem. i tried this in a clean setup for text block and single image.

    I couldnt find the part where it creates shortcode in the backend editor yet so I have no fix for this yet.

    #76619
     Andrei
    Moderator

    Hi,

    An update which will include VC 4.7 will be released in a couple of days.
    Can you please let me know to what VC element did you tried to add that animation ?
    You can as well make a test by switching to the default wordpress theme and deactivate the K-Elements plugin and see if the issue is still present, If in this case it’s still present then it’s not related to our theme and it is indeed a bug from VC.

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #76662
     playism
    Participant

    hello, yes you were right, i just checked with default theme, disabled all plugins except VC and there is no problem.

    When I enable k-elements, there is a new option in css animation (animate when visible/animate when almost visible) and also animation type right-to-left doesnt get added to the shortcode parameters. I guess k-elements cause the conflict.

    Any suggestions for a fix?
    Thank you very much.

    #76679
     Andrei
    Moderator

    Thanks for testing and letting us know about this issue, we’ll put it to test as well and if there is any issues with it we’ll address them in the next update.

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #77972
     Abe
    Keymaster

    Please test with 3.0.8 and let us know if you encounter problems

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

Viewing 11 posts - 1 through 11 (of 11 total)

The forum ‘Plugins questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?