• I hadn’t logged into my wpress dashboard for a few weeks and now when i do there is a “404” in the top right corner followed by this message under it which stays on top of the page when I scroll:

    Warning: Cannot modify header information – headers already sent by (output started at /home4/xxxxxxxxx/public_html/wp-content/themes/customizr-child/functions.php:1) in /home4/xxxxxxxxx/public_html/wp-includes/option.php on line 747

    then directly beneath it is the same msg ending with “line 748”

    The “404” also remains on each of my web pages whilst I am logged into my account but not when I sign out. Otherwise the public view of the website seems to be functioning normally. Any suggestions whats causing this error and how to fix it? Or is it a general wpress issue?

    My function.php file only has the text “404” not sure if it used to have something else(i never made a copy of my files!)
    Also there is no file called “option.php” in the directory shown in the error msg

Viewing 6 replies - 1 through 6 (of 6 total)
  • Your functions.php file in your customizr-child directory is in error somehow. Can you paste it into pastebin and link it here?

    Thread Starter riley454

    (@riley454)

    My functions.php for some reason only contains “404” on the first line(without quotes). I know I made a number of changes to my site using my child theme but nothing is in that file anymore. Apart from functions and style files there is also a file called stcchatcc.php which seems to contain mostly garbage.

    Its modified content is posted here:
    https://pastebin.com/YdVjn6Fp

    There is also a mailout.php file which I guess has something to do with a contact form on the site and there doesn’t seem to be anything unusual in there. As far as I know I only created the functions and style files and don’t know how the other files were created.

    Updating my first post I cannot now login to my wp-admin and “404” appears at the top of every page on my site

    That file you linked looks extremely sketchy and some Googling turned out some suspicious results, as well. I would suggest running a virus scan as soon as possible (you may need to have your hosting provider assist you) and I would also check out FAQ: My site got hacked and some of the links at the bottom just in case the worst has happened.

    Thread Starter riley454

    (@riley454)

    I’m assuming you are right. One thing that confuses me though is how functions.php has had everything removed and replaced with 404 but all the formatting etc that I had placed there seems to still be working ok on my site.

    I’ve thouroughly checked and there doesn’t appear to be anything different about the site except for the 404 at the top of each page. No unexpected links or changes to content or anything!

    My PC is well protected and recently scanned, so I’ll check with my host as you suggest. Also I’ll read through your link when I get some time(it looks like heavy reading). Thanks for the help any other advice will be appreciated.

    Theme Author presscustomizr

    (@nikeo)

    Hi @riley454, looking at your code, I see that you are using the short php opening tag syntax <? ?>. This works only if your server is configured for it.
    It is usually safer to use regular tags like <?php ?>

    Hope this helps!

    Thread Starter riley454

    (@riley454)

    Hi @nikeo. Love your theme.

    I assume you are referring to the code I pasted. That was from the stcchatcc.php file (that I did not create) which is in my child theme folder on my host server. The contents of MY OWN functions.php file have somehow been erased and replaced with “404” only. No tags or coding etc.

    I lodged a report with Hostgator 24 hours ago but haven’t had a response yet. Hopefully they can shed some light on my problem.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Help with error message’ is closed to new replies.