请稍候...
  • 企业级 VPS主机
  • Windows VPS 主机
  • Unmanaged VPS 主机
  • 通配符证书,部署全网SSL证书必备神器
  • 高速稳定独立主机High quality stable server

zencart版本1.38 在PHP5.3环境下错误及解决方案

发布时间:2012-04-13 11:59:01 来源: 亚狐科技YAHUHOST

问题1.巨多Deprecated:错误或页面直接空白

解决方案:

/home/public_html/includes/application_top.php

define(‘STRICT_ERROR_REPORTING’, true);

if (defined('STRICT_ERROR_REPORTING') && STRICT_ERROR_REPORTING == true) {
  @ini_set('display_errors', '1');
  error_reporting(E_ALL^E_NOTICE^E_DEPRECATED);
} else {
  error_reporting(0);
}

 

问题2.Fatal error: Cannot redeclare date_diff() in /home/public_html/includes/functions/functions_general.php on line 1479

解决方案:

 /home/public_html/includes/functions/functions_general.php

 if(!function_exists('date_diff')){
  function date_diff($date1, $date2) {
  //$date1  today, or any other day
  //$date2  date to check against

    $d1 = explode("-", $date1);
    $y1 = $d1[0];
    $m1 = $d1[1];
    $d1 = $d1[2];

    $d2 = explode("-", $date2);
    $y2 = $d2[0];
    $m2 = $d2[1];
    $d2 = $d2[2];

    $date1_set = mktime(0,0,0, $m1, $d1, $y1);
    $date2_set = mktime(0,0,0, $m2, $d2, $y2);

    return(round(($date2_set-$date1_set)/(60*60*24)));
  }
  }

 

问题3.Fatal error: Multiple access type modifiers are not allowed in /home/public_html/includes/classes/ssu/cores/parser.php on line 17

解决方案:

/home/public_html/includes/classes/ssu/cores/parser.php 

 protected static function getClass() {

上一页1下一页
【责任编辑:亚狐科技 (Top) 返回页面顶端