PHP Fatal error: Call to undefined function add_action()

This topic is: Resolved

This is a PRIVATE forum for verified users only, to view the replies/answers, you must be logged in!

This topic contains 3 replies, has 2 voices, and was last updated by  razvantoma 1 year, 7 months ago.

  • Author
    Posts
  • #11815

    razvantoma
    Member
    Post count: 14

    Hello,

    Some days ago I have received an email from Themeforest saying that I must update Visual Composer to the latest version because there are security issues with the Sparkle theme I am using.

    Now I have updated both Visual Composer and Sparkle but I get the following error on top of my screen:

    [16-Oct-2015 02:27:51 UTC] PHP Fatal error: Call to undefined function add_action() in /home/razvantoma/public_html/urbanieri.com/wp-content/plugins/js_composer/include/autoload/vendors/woocommerce.php on line 19

    And I am not even able to login to the Admin area of WordPress. This is the error I receive when trying to access the /wp-admin section:

    [16-Oct-2015 02:27:51 UTC] PHP Fatal error: Call to undefined function add_action() in /home/razvantoma/public_html/urbanieri.com/wp-content/plugins/js_composer/include/autoload/vendors/woocommerce.php on line 19
    Warning: Cannot modify header information – headers already sent by (output started at /home/razvantoma/public_html/urbanieri.com/wp-content/plugins/js_composer/include/autoload/vendors/error_log:2) in /home/razvantoma/public_html/urbanieri.com/wp-includes/pluggable.php on line 1207

    Would you please let me know what can I do to solve these issues?

    Many thanks.
    Razvan

  • #11832

    Jacob
    Staff
    Post count: 2420

    Hey there, You must be logged in to view this reply!

    Login | Register | Forgot Password?

  • #11833

    Jacob
    Staff
    Post count: 2420

    Hey there, You must be logged in to view this reply!

    Login | Register | Forgot Password?

  • #11836

    razvantoma
    Member
    Post count: 14

    Great. It worked.
    Many thanks Jacob.

You must be logged in to reply to this topic.

This is a PRIVATE forum for verified users only, to view the replies/answers, you must be logged in!