Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #866686

    Hi Guys

    We have updated our WordPress and it keeps throwing out our website. Having tried everything with no success I contacted our hosting provider who provided the error message and said it is due to our theme. We were told: This error is relating to the theme child-enfold, this is calling a function that as already being declared/granted.

    So we restored a backup of our site. I ran the Enfold theme update to version 4.1.2. Then running the WordPress update we had the same problem with the site going down.

    Error: Fatal error: Cannot redeclare grant_super_admin

    Can you please let me know what we can do with the theme to allow us to update WordPress?

    Thanks
    Dee

    #866688
    This reply has been marked as private.
    #866735

    The site works if I remove the child theme. I was able to successfully do the WordPress update. The minute I add the child them back it throws the site out again.
    As soon as I remove the child theme it comes back online. Any ideas?

    Thanks
    Dee

    #866743

    Hey!

    You seem to have a function with a name “grant_super_admin” in your child themes functions.php file. Please search “grant_super_admin” in your functions.php file and change them to “av_grant_super_admin” and that should solve the issue :)
    Best regards,
    Yigit

    #866845
    This reply has been marked as private.
    #867942

    Hi,

    Please make sure that there are no functions with the same name. Please look for this line.

    do_action( ‘av_grant_super_admin’, $user_id );
    

    Replace it with:

    do_action( 'grant_super_admin', $user_id );
    

    Best regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.