Okay
  Public Ticket #161694
Theme Error: wp-content/themes/salient/functions.php on line 328
Closed

Comments

  • John started the conversation
    Hi! I'm getting a PHP error when installing the theme: Fatal error: Call to a member function init() on a non-object in /home4/colette1/public_html/wp-content/themes/salient/functions.php on line 328 The site is a fresh, updated WP 3.8.1 install. I've checked file permissions on that file, it is 644. This theme is currently unusable until we get this fixed and the site is down, so it is quite urgent. Thanks!
  •  1,069
    ThemeNectar replied

    Hey John!

    try opening your js_composer.php file located in wpbakery/js_composer and changing this line:

    if (!defined('VC_THEME_DIR')) define('VC_THEME_DIR', get_theme_root());

    to this:

    if (!defined('VC_THEME_DIR')) define('VC_THEME_DIR', mb_strcut(get_theme_root(), 1));

    Cheers :)