Jump to content

System Error Log after upgrade from 6.08 to 6.09


jpayam

Recommended Posts

today i see lot of System Error Log after upgrade from 6.08 to 6.09:

    Today, 01:55    [Notice] /home/mystore/domains/mystore.com/public_html/admin/sources/settings.errorlog.inc.php:61 - Undefined variable: smarty_data
    Today, 01:55    [Notice] /home/mystore/domains/mystore.com/public_html/classes/user.class.php:926 - Undefined index: customer_id
    Today, 01:55    [Notice] /home/mystore/domains/mystore.com/public_html/classes/user.class.php:929 - Undefined index: customer_id
    Today, 01:54    [Notice] /home/mystore/domains/mystore.com/public_html/classes/user.class.php:926 - Undefined index: customer_id
    Today, 01:54    [Notice] /home/mystore/domains/mystore.com/public_html/classes/user.class.php:929 - Undefined index: customer_id
    Today, 01:54    [Notice] /home/mystore/domains/mystore.com/public_html/classes/user.class.php:926 - Undefined index: customer_id
    Today, 01:54    [Notice] /home/mystore/domains/mystore.com/public_html/classes/user.class.php:929 - Undefined index: customer_id
    Today, 01:54    [Notice] /home/mystore/domains/mystore.com/public_html/admin/sources/statistics.index.inc.php:268 - Undefined index: search_terms
    Today, 01:53    [Notice] /home/mystore/domains/mystore.com/public_html/admin/sources/settings.errorlog.inc.php:61 - Undefined variable: smarty_data
    Today, 01:53    [Notice] /home/mystore/domains/mystore.com/public_html/includes/functions.inc.php:522 - Undefined index: X-Forwarded-For
    Today, 01:53    [Notice] /home/mystore/domains/mystore.com/public_html/includes/functions.inc.php:522 - Undefined index: X-Forwarded-For
    Today, 01:53    [Notice] /home/mystore/domains/mystore.com/public_html/includes/functions.inc.php:522 - Undefined index: X-Forwarded-For
    Today, 01:53    [Warning] /home/mystore/domains/mystore.com/public_html/classes/cache/cache.class.php:158 - unlink(/home/mystore/domains/mystore.com/public_html/cache/skin) [function.unlink.php]: Is a directory
    Today, 01:53    [Notice] /home/mystore/domains/mystore.com/public_html/includes/functions.inc.php:522 - Undefined index: X-Forwarded-For
    Today, 01:53    [Notice] /home/mystore/domains/mystore.com/public_html/includes/functions.inc.php:522 - Undefined index: X-Forwarded-For
    Today, 01:53    [Notice] /home/mystore/domains/mystore.com/public_html/includes/functions.inc.php:522 - Undefined index: X-Forwarded-For
    Today, 01:53    [Notice] /home/mystore/domains/mystore.com/public_html/includes/functions.inc.php:522 - Undefined index: X-Forwarded-For
    Today, 01:53    [Notice] /home/mystore/domains/mystore.com/public_html/includes/functions.inc.php:522 - Undefined index: X-Forwarded-For
    Today, 01:53    [Notice] /home/mystore/domains/mystore.com/public_html/classes/user.class.php:926 - Undefined index: customer_id
    Today, 01:53    [Notice] /home/mystore/domains/mystore.com/public_html/classes/user.class.php:929 - Undefined index: customer_id
    Today, 01:53    [Notice] /home/mystore/domains/mystore.com/public_html/admin/sources/maintenance.index.inc.php:551 - Undefined variable: existing_backups

Link to comment
Share on other sites

The edits I recommend in CC608's Debug class are:

Near line 438:
From:

 if ($log) {
   $this->_writeErrorLog($error);
 }

To:

 if ($log) {
   $this->_writeErrorLog($error, $type);
 }

Near line 452:
From:

    $this->_errors[] = $message;
    $this->_writeErrorLog($message);

To:

    $this->_errors[] = $message;
    $this->_writeErrorLog($message, 'Exception');

Near line 602:
From:

  private function _writeErrorLog($message) {
    Database::getInstance()->insert('CubeCart_system_error_log', array('message' => $message, 'time' => time()));
  }

To:

  private function _writeErrorLog($message, $type) {
    if(isset($GLOBALS['db']) && $GLOBALS['db']->connected) {
      $GLOBALS['db']->insert('CubeCart_system_error_log', array('message' => $message, 'time' => time()));
    } elseif($type == 'Exception' || $type == E_PARSE) {
      echo $message;
    }
  }

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...