• I was using the Custom File Editor piece of my Backbone theme and selected the custom_functions.php file to edit. At the direction of an app developer I accidentally pasted the below and saved (this should have been in a wp_config file)

    define(‘WP_MEMORY_LIMIT’, ‘128M’);

    This “define” line is now all over my site and i can’t make any changes to any PHP file without it pulling up a whitescreen with this line.

    I went into my FTP to edit the file and the custom_functions.php is blank – this line is not in there.

    I don’t know how to find it to remove but at the moment cannot add any content to my site (or log in on IE) without this white screen coming up.

    Can someone please help?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try to restore the original of the PHP file that you edited using FTP (from the theme ZIP file).

    Or, one way to at least regain access to the backend dashboard is to go in via FTP and rename the Backbone theme directory to anything else (e.g., “backbone-bad”). Then try to log in to wp-admin. This will force WP to load a different theme.

    Thread Starter PTBNation

    (@ptbnation)

    I was able to find the real custom_functions.php where the define line was housed and was able to delete it.

    That resulted in the line going away on my page and wp-admin but now all of my php inputs give me a white screen whenever I try to navigate in the admin. Nothing is submitting or working – post.php , etc.

    Can anyone assist?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom_Functions.php change has crashed my admin – can't find code to remove’ is closed to new replies.