• Resolved doug_meyer

    (@doug_meyer)


    This error:

    PHP Fatal error: Call to undefined function add_action() in /home/blkbelly/public_html/wp-content/themes/cele/inc/customizer.php on line 4

    is displayed at the top of every page of the website and also prevents the use of the WP Admin area.

    This problem started Dec 4 2018 as far as I can tell. I found many cases of this error showing up on other websites but can’t find any discussion about what causes it or how to fix it. Any suggestions?

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Theme Author Ben Sibley

    (@bensibley)

    Hi Doug,

    Thanks for using Cele.

    I believe a major hosting provider updated a lot of sites recently to a newer PHP version and this has caused an error with outdated versions of Cele. Please update to the latest version of Cele via the Appearance menu in your dashboard and that should fix the error message.

    Thread Starter doug_meyer

    (@doug_meyer)

    Hi Ben, thanks for the reply. However the error prevents me from logging in to the admin area so I can’t update the theme as you suggest. Can you recommend an easy way to update the theme in this situation?

    By the way, I’m running this website on my own leased server and I have not upgraded the PHP version on it. Is the Cele theme somehow running a segment of PHP on some other server as a part of the startup?

    Thanks,
    Doug

    Theme Author Ben Sibley

    (@bensibley)

    Doug,

    Thanks for the tip. Seems like I may have misdiagnosed the cause. I will look further into what’s happening.

    If you can’t login at all, the way we can get it fixed is by using FTP. Once you connect to your site with an FTP client, you can find the Cele theme on your server in this location:

    wordpress/wp-content/themes/cele

    The “wordpress” folder might be named differently depending on the server configuration, but everything else will be the same.

    You can delete the entire “cele” folder. Your site will automatically switch to another theme and the error message will go away and you will be able to login again. Once you’re logged in, you can search for Cele via the Appearance menu and reinstall it on your site (running the latest version without this bug). You won’t lose any of your settings by deleting and reinstalling Cele in this way.

    Thread Starter doug_meyer

    (@doug_meyer)

    Hi Ben,

    I updated the theme as you suggested and that fixed the problem.

    However now my navigation menu shows a small box instead of the “drop-down” arrow that was shown with the old version. Can you take a look at the website and give me any suggestions on fixing that issue? The strange box is at the right of the menu items with another level (e.g., “About the BBSAI”.) Here’s the home page:

    https://www.blackbellysheep.org/

    Thanks,
    Doug

    Theme Author Ben Sibley

    (@bensibley)

    Glad to hear that helped!

    Cele switched to a new version of FontAwesome recently which is used for those icons. I visited your site and it looks like the old file for FontAwesome is still being loaded.

    Could you try emptying your site’s cache (if you use a caching plugin) and then check if this helps? Also, is there a child theme active on the site? This could be related as well.

    Let me know. Thanks!

    Thread Starter doug_meyer

    (@doug_meyer)

    Hi, I’m not using a caching plugin. I am using the customization features that I think are considered a child theme, since I have to select it in the theme management section of the WordPress admin area. Is there a way to refresh that custom child theme without losing the customizations?

    Thanks,
    Doug

    Theme Author Ben Sibley

    (@bensibley)

    Could you try switching from the child theme to Cele temporarily to check if the icons then display? You can always switch back to the child theme without losing any changes.

    Did another developer create a child theme for your site?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PHP Fatal error: Call to undefined function add_action() cele/inc/customizer.php’ is closed to new replies.