• 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 / Urgent: Please Remove Custom Script Causing HTTP ERROR 500 from functions.php

Urgent: Please Remove Custom Script Causing HTTP ERROR 500 from functions.php

  • Unknown's avatar
    harshdudhat0 · Member · Jul 16, 2025 at 7:28 pm
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    Hi Team,

    I recently attempted to add a custom script to the functions.php file of my WordPress site to hide a specific Gravity Form on the homepage. Unfortunately, this has resulted in an HTTP ERROR 500, and the site is now down.

    Here is the script that was added at the bottom of the functions.php file:

    It seems this caused a fatal error, likely because tags are not meant to be used directly inside functions.php.

    Can you please remove this code from the functions.php file immediately so the site can come back online?

    Let me know once it’s done or if you need FTP or cPanel access to make the fix.

    Thank you for your quick help on this. Please ASAP

    Best regards,
    Sean

    WP.com: Yes
    Jetpack: No
    Correct account: No

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

  • Unknown's avatar
    staartmees · Member · Jul 17, 2025 at 6:34 am
    • Copy link Copy link

    We can’t help as that site isn’t running on the wordpress;com platform – https://wordpress.com/site-profiler/http://beaumontandco.ca

    As you have a selfhosted site, you must take a look at https://wordpress.org/documentation/ to find out how to solve this problem yourself.

  • The topic ‘Urgent: Please Remove Custom Script Causing HTTP ERROR 500 from functions.php’ is closed to new replies.

Tags

  • account
  • Jetpack
  • wpcomhelp

About this topic

  • In: Support
  • 2 participants
  • 1 reply
  • Last activity 6 months
  • Latest reply from harshdudhat0

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