• Resolved jroberts2244

    (@jroberts2244)


    By error I placed a Google analytics tag onto the theme of the website.
    I now can not log into wp-login and am getting this error:

    Warning: Cannot modify header information – headers already sent by (output started at /home/thi19017/public_html/wp-content/themes/html5blank-master/functions.php:1) in /home/thi19017/public_html/wp-login.php on line 418

    Warning: Cannot modify header information – headers already sent by (output started at /home/thi19017/public_html/wp-content/themes/html5blank-master/functions.php:1) in /home/thi19017/public_html/wp-login.php on line 431

    There is also not a FTP set up for this site. How can I fix this urgantly?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Moderator t-p

    (@t-p)

    your active theme “html5blank-master” seems to be the issue.

    try switching to the unedited default Twenty Fourteen Theme for a moment to rule out any theme-specific issue. When you don’t have access to your admin area, you can switch to the default theme by renaming your current theme’s folder in wp-content/themes and adding “-old” to the end of the folder name using via FTP or SFTP or whatever file management application your host provides.

    Also review this Codex: https://codex.www.ads-software.com/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F

    Thread Starter jroberts2244

    (@jroberts2244)

    Thanks for your reply Tara. So there is no way to edit without accessing the FTP or SFTP? I’m new to the company and we don’t have contact details for the old website manager.

    Moderator t-p

    (@t-p)

    So there is no way to edit without accessing the FTP or SFTP?

    – unless you have access to the dashboard. If don’t then you need to use FTP or SFTP or whatever file management application your host provides.

    – Probably you can also do it via accessing your database in mysql as well, which. But iam sure you need to have login credentials to get in your mysql. Also, I have no idea which table in mysql to tweak.

    Hi,

    just add <?php ob_start(); ?>on the top of wp-login.php page

    Thread Starter jroberts2244

    (@jroberts2244)

    So we no longer have contact to our website designer. His number has been disconnected so i can’t contact with him to get access to the FTP/SFTP or mysql. I’m new to the company and he didn’t pass the information on to anyone when he left!

    Is there anything else I can do?!

    Thanks,

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Your server credentials derive from your hosting providers, have you contacted them?

    Thread Starter jroberts2244

    (@jroberts2244)

    I have no idea who hosted the website – the website designer who set it up didn’t pass on any of the information… Is there a way I can find out who hosts the website?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Yes, put your website in this tool https://who.is/

    Thread Starter jroberts2244

    (@jroberts2244)

    Great – thanks

    Thread Starter jroberts2244

    (@jroberts2244)

    I now have access to ftp. I have added <?php ob_start(); ?> to the top of the login page but it has not work. still seeing the same error

    Thread Starter jroberts2244

    (@jroberts2244)

    Fixed now! I just had to go through and add that to the function.php file.

    thanks!

    By error I placed a Google analytics tag onto the theme

    The error is being caused by the theme.

    First remove this from wherever you placed it: <?php ob_start(); ?>

    Option 1) remove/undo the errant code from the file you placed it in.

    Option 2) replace the file you edited with a fresh version from your backups, or with a fresh version of the file from the original theme source.

    If 1 and 2 aren’t immediately possible, then you can rename just the html5blank-master theme directory (something like html5blank-master.old or html5blank-master.bak should do) then revisit your site at yoursite.com/wp-admin and log in. The default WordPress theme should take over and let you back, then you can focus on repairing the damaged theme.

    [edit] <?php ob_start(); ?> is not actually a fix for the issue with the theme.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Error – Warning: Cannot modify header information no FTP’ is closed to new replies.