WordPress.org

Support

Support » Themes and Templates » Fatal error: Call to undefined function add_editor_style()

Fatal error: Call to undefined function add_editor_style()

  • robolivares
    Member

    @robolivares

    Hello:
    I tried to change the wordpress theme to f8lite. When I applied those changes, the website, and all its admin capabilities went down and the only thing that shows up in the screen is:

    Fatal error: Call to undefined function add_editor_style() in /home/website/public_html/wp-content/themes/f8-lite/functions.php on line 15

    I’ve seen some similar errors doing an online search, but haven’t been able to fix it. Essentially, I would like to revert to the old theme I had.

    I’m a noob at wordpress, but by looking at the code, I know somewhere there’s an environment variable set to call the f8lite php scripts. Could someone please help me out in looking this up?

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • esmi
    Forum Moderator

    @esmi

    What version of WordPress are you using?

    robolivares
    Member

    @robolivares

    esmi:
    I am not entirely sure as I cannot even access the wp-admin site. Do you know if there are version compatibility issues?

    esmi
    Forum Moderator

    @esmi

    It sounds like a version issue. Pretty sure that add_editor_style() was only introduced in WP 3.0. Perhaps you have WP 2.9 or below? Try switching to the default theme by renaming your current theme’s folder in wp-content/themes using FTP or whatever file management application your host provides.

    robolivares
    Member

    @robolivares

    esmi:
    I’m pretty sure it’s below WP 2.9.
    So what you suggest is to change the folder name from f8lite to default?
    I’ll give it a shot.

    esmi
    Forum Moderator

    @esmi

    No! Rename the f8lite folder to f8lite-xxx

    robolivares
    Member

    @robolivares

    So, if it can’t find the f8lite file, it reverts to the default?
    Is there a way to just call the default?

    Thanks for all the help, esmi!

    esmi
    Forum Moderator

    @esmi

    So, if it can’t find the f8lite file, it reverts to the default?

    Yes

    Is there a way to just call the default?

    This is by far the simplest method. The alternative would mean editing your database – which is always far more risky.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Fatal error: Call to undefined function add_editor_style()’ is closed to new replies.