• WordPress.com
  • Forums
  • Plans & Pricing
  • Log In
  • Get Started
  • WordPress Hosting
  • Domain Names
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • Enterprise
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
  • WordPress.com Support
  • News
  • Website Building Tips
  • Business Name Generator
  • Logo Maker
  • Popular Topics
  • Daily Webinars
  • Learn WordPress
Get Started
  • Sign Up
  • Log In
About
  • Plans & Pricing
Products
  • WordPress Hosting
  • Domain Names
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • Enterprise
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • WordPress.com Support
  • News
  • Website Building Tips
  • Business Name Generator
  • Logo Maker
  • Popular Topics
  • Daily Webinars
  • Learn WordPress
en WordPress.com Forums Lost access to my site after modifying “default-constants.php”

Lost access to my site after modifying “default-constants.php”

  • webmasterse3i · Member · Jan 7, 2025 at 12:11 pm
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    Hello,
    Here’s my issue: I wanted to increase the memory allocated to my site (from 40MB to 64MB) by modifying the “default-constants.php” file.
    Since I couldn’t modify it directly, I downloaded a copy of the file, renamed the original one to “.OLD”, and tried to upload the new file. However, by renaming the original file, I unfortunately lost access to my site…

    I have a copy of the unmodified file saved locally, as well as a full backup of my site, but since I can’t access the admin dashboard, I’m unable to do anything.

    How can I proceed, please?

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

  • taiwanbrown · Member · Jan 10, 2025 at 6:54 pm
    • Copy link Copy link

    Hello, this site runs on self-hosted WordPress!

    You will need to ask your question on https://wordpress.org/support/forums/

    More info: WordPress.com vs. WordPress.org

  • taiwanbrown · Member · Jan 10, 2025 at 6:59 pm
    • Copy link Copy link

    Hello,

    Are you still having the issue?

    If so, Can you try it again from an Incognito Window?

    Next I would try to clear the cache and cookies

    Finally, attempt to use another browser.

    You can find out how to this troubleshooting here: https://wordpress.com/support/browser-issues

  • taiwanbrown · Member · Jan 10, 2025 at 7:01 pm
    • Copy link Copy link

    Sorry posted that second message in error.

  • webmasterse3i · Member · Jan 17, 2025 at 2:32 pm
    • Copy link Copy link

    Sorry, my bad. Thanks for your help !

  • taiwanbrown · Member · Jan 17, 2025 at 9:54 pm
    • Copy link Copy link

    You’re welcome!

Reply to Lost access to my site after modifying “default-constants.php”
Log in or get started with WordPress.com to reply Login Sign Up

Tags

  • account
  • Jetpack

About this topic

  • In: Support
  • 2 participants
  • 5 replies
  • Last activity 3 days
  • Latest reply from webmasterse3i
Advertisment

WordPress.com

WordPress.com WordPress.com Logo

Products

  • WordPress Hosting
  • Domain Names
  • Website Builder
  • Create a Blog
  • Professional Email
  • P2: WordPress for Teams
  • Website Design Services
  • Enterprise Solutions

Features

  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps

Resources

  • WordPress.com Support
  • WordPress Forums
  • WordPress News
  • Website Building Tips
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
  • Daily Webinars
  • Learn WordPress
  • Developer Resources

Company

  • About
  • Partners
  • Press
  • Terms of Service
  • Privacy Policy
  • Do Not Sell or Share My Personal Information
  • Privacy Notice for California Users

Language

Mobile Apps

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

Social Media

  • WordPress.com on Twitter Twitter Icon
  • WordPress.com on Facebook Facebook Icon
  • WordPress.com on Instagram Instagram Icon
  • WordPress.com on YouTube Youtube Icon
An Automattic opus
Work With Us
    • WordPress.com Forums
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • Manage subscriptions