Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #1094807

    oomphdesigners
    Participant

    Hi there, I’m getting problems editing page content after updating to WordPress 4.5.3
    I can no longer see or edit any page content and this error is thrown in the console:

    Uncaught TypeError: $template.get is not a functionhtml2element @ composer-view.js?ver=4.6.1:146render @ composer-view.js?ver=4.6.1:157appendShortcode @ composer-view.js?ver=4.6.1:535(anonymous function) @ composer-view.js?ver=4.6.1:476(anonymous function) @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,utils,jquery-ui-widget,jquery…:62m.each.m.forEach @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,utils,jquery-ui-
    .. etc

    It seems like the _.template function has changed after updating from underscore version 1.6 to 1.8.3

    I’m currently on X theme 4.0.6

    Will updating my theme to the latest version solve this problem?

    I updated to Cornerstone 1.3.0 but that doesn’t seem to fix anything.

    #1094921

    Christopher
    Moderator

    Hi there,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks.

    #1096498

    oomphdesigners
    Participant
    This reply has been marked as private.
    #1096538

    Rue Nel
    Moderator

    Hello There,

    Thanks for providing the details. It appears that you are using an older version of X and Cornerstone. Please make sure that you are fully updated (Theme and Plugins). Most of the time, out dated theme and plugins will create issues in your site.

    Our latest versions are:
    X Theme: 4.6.0
    Cornerstone: 1.3.0
    Visual Composer: 4.12

    You can find the latest version numbers here: (http://theme.co/changelog/) Then you can compare them to what’s installed on your site.

    If you find anything to be out of date, you can review our update guide.

    #1097989

    oomphdesigners
    Participant
    This reply has been marked as private.
    #1097990

    oomphdesigners
    Participant
    This reply has been marked as private.
    #1098252

    Rad
    Moderator

    Hi there,

    The error is originating from visual composer which is also dependent to older underscore. The issue will stay even updating the theme. The fix should be added directly to the plugin.

    I also checked visual composer’s changelog and it doesn’t mention about underscore, we’ll going to wait for their update too. For the meantime, please downgrade your underscore.

    Thanks!

    #1227932

    oomphdesigners
    Participant

    hi guys did you end up releasing a patch because I’ve downgraded to 1.6.0 only to receive a different problem. I guess downgrading is just not enough.. Here is the javascript error thrown:

    load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,utils,jquery-ui-widget,jquery…:62 Uncaught TypeError: Cannot use ‘in’ operator to search for ‘model’ in undefined(anonymous function) @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,utils,jquery-ui-widget,jquery…:62j.each.j.forEach @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,utils,jquery-ui-widget,jquery…:62j.pick @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,utils,jquery-ui-widget,jquery…:62e.View @ load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,wp-ajax-response,jquery-color,wp-lists,hea…:15constructor @ load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,wp-ajax-response,jquery-color,wp-lists,hea…:18constructor @ load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,wp-ajax-response,jquery-color,wp-lists,hea…:54n @ load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,wp-ajax-response,jquery-color,wp-lists,hea…:15init @ load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,wp-ajax-response,jquery-color,wp-lists,hea…:55i @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,utils,jquery-ui-widget,jquery…:2fireWith @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,utils,jquery-ui-widget,jquery…:2ready @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,utils,jquery-ui-widget,jquery…:2K @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,utils,jquery-ui-widget,jquery…:2

    #1227985

    Rad
    Moderator

    Hi there,

    Even with the older version, we’re not having this issue or even on the latest one. This error is new and not related to Underscore library anymore.

    Please try updating your visual composer and your WordPress too, they are still old and other software are already updated.

    Then let us know when done, or please allow us to do changes and updates so we could check them directly. But make sure you have a backup of your site. This is probably related to WordPress core, I switched to TwentyEleven theme and disabled all the plugins at the same time and that error still persists. You may try that 🙂

    Thanks!

    #1229017

    oomphdesigners
    Participant

    Thanks for that info
    Could you please advise what versions of Visual Composer, X theme, Cornerstone and WordPress is required in order to have the content editable?

    We’ve tried two combinations are they both don’t work:

    combo #1:
    Wordpress 4.6.1
    Visual Composer 4.3.5
    Cornerstone 1.3.0
    X-theme 4.0.6

    combo #2:
    Wordpress 4.6.1
    Visual Composer 4.6.1.
    Cornerstone 1.3.3
    X-theme 4.6.4

    #1229258

    oomphdesigners
    Participant

    Hi i noticed x-shortcodes is deactivated and cornerstone is activated
    Which one should be used?

    #1229405

    Friech
    Moderator

    Hi There,

    Please refer to this page https://community.theme.co/kb/version-compatibility/ for the latest compatible version to the latest X|Theme.

    Since you’re on the latest WordPress (4.6.1), please update X|theme (4.6.4), Cornerstone (1.3.3), Visual Composer (4.12.1), and other plugins as well to the latest version to avoid any compatibility issue.

    Cornerstone is taking over for X – Shortcodes, which you can read much more about here in detail. Please delete the X – Shortcode.

    Remember to clear all caches after updating so that the code from the latest release is always in use. This will help you to avoid any potential errors.

    Thanks.

    #1230636

    oomphdesigners
    Participant

    Thanks I think I’ve got the problem under control. Cheers for the help

    #1230905

    Prasant Rai
    Moderator

    Happy to hear that. Feel free to ask us again. Have a great day! 🙂