• Hi,

    I get this error:

    Warning: Cannot modify header information - headers already sent by (output started at /home/designst/public_html/wp-content/themes/generatepress_child/functions.php:1) in /home/designst/public_html/wp-includes/pluggable.php on line 1296

    Even if I clear out all custom code in functions.php and leave it ’empty’ with the standard intro as provided

    <?php
    /**
     * GeneratePress child theme functions and definitions.
     *
     * Add your custom PHP in this file.
     * Only edit this file if you have direct access to it on your server (to fix errors if they happen).
     */

    I’m still locked out of wp-admin. I need to delete functions.php to get access…

    What’s the fix for this? I have som custom code I’d like to add, and would prefer not doing it with a plugin.

Viewing 1 replies (of 1 total)
  • Hi there,

    first trying accessing your site using FTP or whatever file explorer your server provides and removing the content of the functions.php.

    If the error still persists then it is most likely related to a plugin. If you still cannot access the admin of your site, once again use FTP/file explorer to temporarily disable or remove any other plugins. Disabling plugins can be done by simply changing their folder name.

Viewing 1 replies (of 1 total)
  • The topic ‘/wp-admin not accessible’ is closed to new replies.