{"id":60727,"date":"2025-04-26T10:52:18","date_gmt":"2025-04-26T02:52:18","guid":{"rendered":"https:\/\/fwq.ai\/blog\/60727\/"},"modified":"2025-04-26T10:52:18","modified_gmt":"2025-04-26T02:52:18","slug":"%e8%a7%a3%e5%86%b3zencart%e5%9c%a8php5-3%e7%8e%af%e5%a2%83%e4%b8%8b%e9%94%99%e8%af%af%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/60727\/","title":{"rendered":"\u89e3\u51b3zencart\u5728PHP5.3\u73af\u5883\u4e0b\u9519\u8bef\u65b9\u6cd5"},"content":{"rendered":"<h3> \u6709zencart\u9519\u8bef\u6216\u8005\u7a7a\u767d\u5148\u6253\u5f00\u9519\u8bef\u63d0\u793a\uff0cftp\u770bcache\u9519\u8bef\u65e5\u5fd7 \u6216\u8005 \u9762\u677f\u67e5\u770b\u9519\u8bef\u65e5\u5fd7\uff0c\u518d\u5bf9\u6bd4\u6570\u636e\u5e93\u662f\u5426\u6b63\u786e\uff0c\u53ef\u62ff\u811a\u672c\u770b\u662f\u5426\u80fd\u8fde\u63a5<\/h3>\n<p> \\cp -r &nbsp;backipmysql\/nlbarb_007li\/ .<\/p>\n<p> chown -R mysql:mysql &nbsp;nlbarb_007li<\/p>\n<h3> \u5982\u679c\u662f\u524d\u53f0\u9519\u8bef\uff0c\u6253\u5f00\u6587\u4ef6 \\includes\\extra_configures\\enable_error_logging.php<br \/> \u5982\u679c\u662f\u540e\u53f0\u9519\u8bef\uff0c\u6253\u5f00\u6587\u4ef6 \\admin\\includes\\extra_configures\\enable_error_logging.php<\/p>\n<p> \u67e5\u627e @ini_set(&#8216;display_errors&#8217;, 0);<br \/> \u4fee\u6539\u4e3a @ini_set(&#8216;display_errors&#8217;, 1);<\/h3>\n<h3> \u95ee\u98981.\u5de8\u591aDeprecated:\u9519\u8bef\u6216\u9875\u9762\u76f4\u63a5\u7a7a\u767d<\/h3>\n<p> \u89e3\u51b3\u65b9\u6848\uff1a<\/p>\n<p> \/home\/public_html\/includes\/application_top.php<\/p>\n<p> define(\u2018STRICT_ERROR_REPORTING\u2019, true);<\/p>\n<p> if (defined(&#8216;STRICT_ERROR_REPORTING&#8217;) &amp;&amp; STRICT_ERROR_REPORTING == true) {<br \/> @ini_set(&#8216;display_errors&#8217;, &#8216;1&#8217;);<br \/> error_reporting(E_ALL^E_NOTICE^E_DEPRECATED);<br \/> } else {<br \/> error_reporting(0);<br \/> }<\/p>\n<p> &nbsp;<\/p>\n<h3> \u95ee\u98982.Fatal error: Cannot redeclare date_diff() in \/home\/public_html\/includes\/functions\/functions_general.php on line 1479<\/h3>\n<p> \u89e3\u51b3\u65b9\u6848\uff1a<\/p>\n<p> \/home\/public_html\/includes\/functions\/functions_general.php<\/p>\n<p> if(!function_exists(&#8216;date_diff&#8217;)){<br \/> function date_diff($date1, $date2) {<br \/> \/\/$date1 today, or any other day<br \/> \/\/$date2 date to check against<\/p>\n<p> $d1 = explode(&#8220;-&#8220;, $date1);<br \/> $y1 = $d1[0];<br \/> $m1 = $d1[1];<br \/> $d1 = $d1[2];<\/p>\n<p> $d2 = explode(&#8220;-&#8220;, $date2);<br \/> $y2 = $d2[0];<br \/> $m2 = $d2[1];<br \/> $d2 = $d2[2];<\/p>\n<p> $date1_set = mktime(0,0,0, $m1, $d1, $y1);<br \/> $date2_set = mktime(0,0,0, $m2, $d2, $y2);<\/p>\n<p> return(round(($date2_set-$date1_set)\/(60*60*24)));<br \/> }<br \/> }<\/p>\n<p> &nbsp;<\/p>\n<h3> \u95ee\u98983.Fatal error: Multiple access type modifiers are not allowed in \/home\/public_html\/includes\/classes\/ssu\/cores\/parser.php on line 17<\/h3>\n<h3> \u6ce8\u610f\uff1a\u6709\u4e9bzc 1.39\u662f\u6ca1\u6709ssu\/cores\/parser.php\u76ee\u5f55\u7684<\/h3>\n<h3> &nbsp;<\/h3>\n<p> \u89e3\u51b3\u65b9\u6848\uff1a<\/p>\n<p> \/home\/public_html\/includes\/classes\/ssu\/cores\/parser.php<\/p>\n<p> protected static function getClass() {<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6709zencart\u9519\u8bef\u6216\u8005\u7a7a\u767d\u5148\u6253\u5f00\u9519\u8bef\u63d0\u793a\uff0cftp\u770bcache\u9519\u8bef\u65e5\u5fd7 \u6216\u8005 \u9762\u677f\u67e5\u770b\u9519\u8bef\u65e5\u5fd7\uff0c\u518d\u5bf9\u6bd4\u6570\u636e\u5e93\u662f\u5426\u6b63\u786e\uff0c\u53ef\u62ff\u811a\u672c\u770b\u662f\u5426\u80fd\u8fde\u63a5 \\cp -r &nbsp;backipmysql\/nlbarb_007li\/ . chown -R mysql:mysql &nbsp;nlbarb_007li \u5982\u679c\u662f\u524d\u53f0\u9519\u8bef\uff0c\u6253\u5f00\u6587\u4ef6 \\includes\\extra_configures\\enable_error_logging.php \u5982\u679c\u662f\u540e\u53f0\u9519\u8bef\uff0c\u6253\u5f00\u6587\u4ef6 \\admin\\includes\\extra_configures\\enable_error_logging.php \u67e5\u627e @ini_set(&#8216;display_errors&#8217;, 0); \u4fee\u6539\u4e3a @ini_set(&#8216;display_errors&#8217;, 1); \u95ee\u98981.\u5de8\u591aDeprecated:\u9519\u8bef\u6216\u9875\u9762\u76f4\u63a5\u7a7a\u767d \u89e3\u51b3\u65b9\u6848\uff1a \/home\/public_html\/includes\/application_top.php define(\u2018STRICT_ERROR_REPORTING\u2019, true); if (defined(&#8216;STRICT_ERROR_REPORTING&#8217;) &amp;&amp; STRICT_ERROR_REPORTING == true) { @ini_set(&#8216;display_errors&#8217;, &#8216;1&#8217;); error_reporting(E_ALL^E_NOTICE^E_DEPRECATED); } else { error_reporting(0); } &nbsp; \u95ee\u98982.Fatal error: Cannot redeclare date_diff() in \/home\/public_html\/includes\/functions\/functions_general.php on line 1479 \u89e3\u51b3\u65b9\u6848\uff1a \/home\/public_html\/includes\/functions\/functions_general.php if(!function_exists(&#8216;date_diff&#8217;)){ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-60727","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=60727"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60727\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=60727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=60727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=60727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}