Okay
  Public Ticket #810981
Visual Composer - $template.get is not a function
Closed

Comments

  • Chris started the conversation

    I inherited a WP site (version 4.5) that uses the Salient theme and we're having some problems with the Visual Composer.

    For each of the below issues, I see a Chrome console error of:

    $template.get is not a function.

    1) If I open an existing Page in the dashboard editor, I get the twirling "Please wait..." icon and it hangs. If I click the Classic Editor button, then I just see all shortcodes. If I switch back to Visual Composer, it hangs again. 

    2) Also, if I open a new Page and try to insert something via Visual Composer, the grid of options opens correctly, but if I click or double-click one, like Text Block, nothing happens. I don't see a submit button either. If I git the X button and go back to the editor, nothing is in the content box. 

    Perhaps these are the same problem given the console error message above?

    Could you please help?

  •  8,994
    Tahir replied

    Hey ,

    The issue can be fixed with any of the following approach, please follow them one by one:

    1) At first Increase the AutoSave Interval by adding the line in define( 'AUTOSAVE_INTERVAL', 160 ); // Seconds into wp-config.php file of your WordPress Directory, just above the /* That's all, stop editing! Happy blogging. */ line. Use 240, 300 etc if 160 doesn’t work.

    Reference: http://codex.wordpress.org/Editing_wp-config.php#Modify_AutoSave_Interval

    2)Increase the PHP Memory limit:

    a) Edit your wp-config.php file and enter the following:

    define('WP_MEMORY_LIMIT', '96M');

    WordPress memory can be different to the server – you need to set this regardless of server memory settings

    http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

    b) If you have access to your PHP.ini file, change the line in PHP.ini If your line shows 32M try 64M:

    memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)

    c) If you don’t have access to PHP.ini try adding this to an .htaccess file:

    php_value memory_limit 64M
    d) If none of the above works then talk to your host & ask them to increase it.

    Best.


    ThemeNectar Support Team