TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,994
  • Total Topics: 21,325
  • Online today: 777
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 126
  • Total: 126

error message

Started by darkangel, May 20, 2012, 03:41:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

darkangel

after finally getting rid of that stupid mysql error with the "fix" that was reported to do at smf forums...I am cursed with this one now.

I have included both the error message as well as the lines involved with the actual ones in red. How to get rid of it, is it something that needs fixing or can just ignore totally. BTW, it is all themes, 2.0 smf

[19-May-2012 05:33:05] PHP Warning:  Cannot modify header information - headers already sent by (output started at /Sources/TPdlmanager.php:1864) in /Sources/Errors.php on line 350
/Sources/Errors.php on line 351
/Sources/Errors.php on line 352
/Sources/Errors.php on line 355
/Sources/Errors.php on line 356
/Sources/Errors.php on line 357

// Show an error message for the connection problems.
function show_db_error($loadavg = false)
{
   global $sourcedir, $mbname, $maintenance, $mtitle, $mmessage, $modSettings;
   global $db_connection, $webmaster_email, $db_last_error, $db_error_send, $smcFunc;

   // Just check we're not in any buffers, just in case.
   for ($i = ob_get_level(); $i > 0; $i--)
      @ob_end_clean();
      
   // Don't cache this page!
   header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
   header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
   header('Cache-Control: no-cache');


   // Send the right error codes.
   header('HTTP/1.1 503 Service Temporarily Unavailable');
   header('Status: 503 Service Temporarily Unavailable');
   header('Retry-After: 3600');


   if ($loadavg == false)
   {
      // For our purposes, we're gonna want this on if at all possible.
      $modSettings['cache_enable'] = '1';

      if (($temp = cache_get_data('db_last_error', 600)) !== null)
         $db_last_error = max($db_last_error, $temp);

      if ($db_last_error < time() - 3600 * 24 * 3 && empty($maintenance) && !empty($db_error_send))
      {
         require_once($sourcedir . '/Subs-Admin.php');
   

This website is proudly hosted on Crocweb Cloud Website Hosting.