Forums

acces to admin denied (9 posts)

  1. egilarntzen
    Member
    Posted 1 year ago #

    I can suddenly not access my admin??
    I am getting an error:
    Warning: Cannot modify header information - headers already sent by (output started at /mnt/webstorage/M/myhreogd/www/wordpress/wp-content/themes/myhreogdahl/functions.php:1) in /mnt/webstorage/M/myhreogd/www/wordpress/wp-includes/pluggable.php on line 890

    It worked fine a week ago! Have I done something wrong?
    Please help!

    http://www.myhreogdahlbygg.no/wordpress/wp-admin/
    http://www.myhreogdahlbygg.no/wordpress/

  2. govpatel
    Member
    Posted 1 year ago #

    Try renaming myhreogdahl to some thing else like myhreogdahl-bak using ftp or server and try to log in.

    This will force wordpress to open in default twenty ten theme to rule out theme related problem.

    let us know it opened.

  3. egilarntzen
    Member
    Posted 1 year ago #

    ah nice one!

    That worked, and a renamed it back to myhreogdahl and it worked.
    Thanks a lot, most appreciated!

  4. govpatel
    Member
    Posted 1 year ago #

    You are welcome I just clicked on your admin url and looks you have problem in functions.php file myhreogdahl theme

  5. egilarntzen
    Member
    Posted 1 year ago #

    Yeah? I have this in my functions.php:
    [Code moderated as per the Forum Rules. Please use the pastebin]

  6. govpatel
    Member
    Posted 1 year ago #

    You have blank line after <?php take it out there shold be no blank line and same before ?>

  7. egilarntzen
    Member
    Posted 1 year ago #

    Ok done.

    but i still get an error clicking "admin"...

  8. govpatel
    Member
    Posted 1 year ago #

    did you just install this theme or was it working before if it was working before did you make any change to the file.

  9. egilarntzen
    Member
    Posted 1 year ago #

    I made this theme(just used parts from another theme). And it has worked fine the whole time. I must have done something (obviously), but don't know what... that is what's so frustrating.

    But there is definitely something wrong in the functions.php.
    I deleted the whole file, and then I didn't get the error any more on "admin".

Topic Closed

This topic has been closed to new replies.

About this Topic