• Plans & Pricing
  • Log in
  • Get started
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress 
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Get started
  • Sign up
  • Log in
About
  • Plans & Pricing
Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress  
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Jetpack App
  • Learn more
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Search
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Forums / Critical Error after editing the Functions.php file of my theme

Critical Error after editing the Functions.php file of my theme

  • Unknown's avatar
    erikrutledge14 · Member · Dec 12, 2024 at 12:54 am
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    Hello all!

    I was attempting to edit the functions.php file inside my active theme to add a custom admin panel, but it seems there was a typo in the code that triggered a critical error. I used the WP File Manager plugin to edit the file because my hosting service (Hostinger) doesn’t seem to be correctly reflecting changes to my live site. The problem is that I am now unable to delete the code I added to the file without access to the admin panel.

    I’ve already tried accessing and editing the file from Hostinger, but the only version available is the pre-edited script. I’m confused as to why the files on Hostinger aren’t the same as the ones present in the WP File Manager plugin. I’ve also tried restoring the site to a previous backup, but I’m still encountering the critical error.

    Any help about why the files aren’t properly synced would be great, but more than anything I’d just like to get the site back up and running. Thanks in advance!

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar
    carmochloe · Member · Dec 12, 2024 at 6:01 pm
    • Copy link Copy link

    This website is not hosted at WordPress.com. This is likely a self-hosted WordPress website. So, you would want to reach out to your hosting provider for advice on how to solve this.

  • Unknown's avatar
    thomasbaum572 · Member · Dec 14, 2024 at 12:37 pm
    • Copy link Copy link

    I once edited functions.php file; however, I never encountered any error yet. I always wonder how difficult it could be to solve a critical error while updating theme or plugin files. Perhaps keeping ourselves in a learning mode might help.

  • The topic ‘Critical Error after editing the Functions.php file of my theme’ is closed to new replies.

Tags

  • account
  • design
  • Jetpack

About this topic

  • In: Support
  • 3 participants
  • 2 replies
  • Last activity 1 year
  • Latest reply from erikrutledge14

Couldn't find what you needed?

Contact us

Contact us

Get answers from our AI assistant, with access to 24/7 expert human support on paid plans.

Browse our guides

Browse our guides

Find step-by-step solutions to common questions in our comprehensive guides.

WordPress.com

Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Professional Email
  • Website Design Services
  • WordPress Studio
  • Enterprise WordPress
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • WordPress.com Blog
  • Business Name Generator
  • Logo Maker
  • WordPress.com Reader
  • Accessibility
  • Remove Subscriptions
Help
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
  • Developer Resources
Company
  • About
  • Press
  • Terms of Service
  • Privacy Policy
  • Do Not Sell or Share My Personal Information
  • Privacy Notice for California Users
DeutschEspañolFrançaisBahasa IndonesiaItalianoNederlandsPortuguês do BrasilSvenskaTürkçeРусскийالعربيةעִבְרִית日本語한국어简体中文繁體中文English

Mobile Apps

  • Download on the App Store
  • Get it on Google Play

Social Media

  • WordPress.com on Facebook
  • WordPress.com on X (Twitter)
  • WordPress.com on Instagram
  • WordPress.com on YouTube

Automattic

Automattic
Work With Us
    • WordPress.com Forums
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • Manage subscriptions