vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Site hack, now Unable to add cookies, header already sent error message (https://vborg.vbsupport.ru/showthread.php?t=303165)

keress 10-09-2013 11:56 AM

Site hack, now Unable to add cookies, header already sent error message
 
My site was hacked. We restored to an earlier backup and now there's a "Unable to add cookies, header already sent." message when we try to enter the forum. I tried cleaning up the config.php file.

I tried re-uploading everything, but overwrote the config.php in the process. How many config files are there in 4.2.1? Just the one in the Includes? I was intending to try again to upload all the files, unless there's something better I should try.

kh99 10-09-2013 12:18 PM

In the config.php make sure <?php is the very first thing (no blank lines or spaces before it). If you've uploaded all the original files and you still have the problem, try temporarily disabling all plugins by putting:
Code:

define('DISABLE_HOOKS', 1);
in your config.php (somewhere under the <?php at the top).

keress 10-09-2013 01:00 PM

Thanks for replying.

Yes, I've cleaned up the config.php and made sure there was no space in front of the first line, I went ahead and deleted all empty lines as well, but still the same error message. I have not yet re-uploaded everything since I wanted to verify that there is only one config.php which is in the includes folder. Is there anything else I need to not store over?

kh99 10-09-2013 01:34 PM

The distribution only contains includes/config.php.new, so it won't overwrite config.php (but if you're restoring your own backup you'll have a config.php of course).

You can also use Maintenance > Diagnostics > Suspect File Versions to see if any files have changed from the originals, or if you have any files that aren't part of vbulletin.

nerbert 10-09-2013 02:10 PM

Somewhere some file is echo-ing something, maybe just echo ' '; Is there a gap at the top of the page? Which file it would be is hard to guess; if it's every page it could be in global.php.


All times are GMT. The time now is 10:05 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01007 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete