WordPress.org

Ready to get started?Download WordPress

Forums

Fatal error: Call to undefined function add_editor_style() (8 posts)

  1. robolivares
    Member
    Posted 3 years ago #

    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!

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    What version of WordPress are you using?

  3. robolivares
    Member
    Posted 3 years ago #

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

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    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.

  5. robolivares
    Member
    Posted 3 years ago #

    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.

  6. esmi
    Forum Moderator
    Posted 3 years ago #

    No! Rename the f8lite folder to f8lite-xxx

  7. robolivares
    Member
    Posted 3 years ago #

    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!

  8. esmi
    Forum Moderator
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic