修复 Warning: Array_merge() [function.array-merge]: Argument #1 Is Not An Array... 错误
2011-04-06 18:30
756 查看
如果你的Zen cart网站使用的是php5的服务器空间,或将php升级为php5的话就会出现这个错误,废话不说,解决方法如下:
--------------------------------------------------------
Zen cart Errors After PHP5 Upgrade
After upgrading a Zen cart site to PHP5 the follow errors occurred when using the customer part of the admin section:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /catalog/admin/customers.php on line 782
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /catalog/admin/customers.php on line 784
Warning: reset() [function.reset]: Passed variable is not an array or
object in /catalog/admin/includes/classes/object_info.php on line 17
Warning: Variable passed to each() is not an array or object in /catalog/admin/includes/classes/object_info.php on line 18
解决这几个array_merge() 错误, 只需找到并编辑你的admin/customers.php 文件:
找到这两行:
修改为:
--------------------------------------------------------
Zen cart Errors After PHP5 Upgrade
After upgrading a Zen cart site to PHP5 the follow errors occurred when using the customer part of the admin section:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /catalog/admin/customers.php on line 782
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /catalog/admin/customers.php on line 784
Warning: reset() [function.reset]: Passed variable is not an array or
object in /catalog/admin/includes/classes/object_info.php on line 17
Warning: Variable passed to each() is not an array or object in /catalog/admin/includes/classes/object_info.php on line 18
解决这几个array_merge() 错误, 只需找到并编辑你的admin/customers.php 文件:
找到这两行:
$customer_info = array_merge($country->fields, $info->fields, $reviews->fields); $cInfo_array = array_merge($customers->fields, $customer_info);
修改为:
$customer_info = array_merge((array)$country->fields, (array)$info->fields, (array)$reviews->fields); $cInfo_array = array_merge((array)$customers->fields, (array)$customer_info);
相关文章推荐
- Warning: array_merge() [function.array-merge]: Argument #2 is not an array in e\\class\\functions.php on line 2193
- warning:reset()[function.reset]:passed variable is not an array or object
- Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result reso
- AngularJS--[ng:areq] Argument 'xxCtrl' is not a function, got undefined!错误
- Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result
- Python 出现错误 SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform.
- Warning: mysql_fetch_array(): supplied argument is not a valid MySQL......
- TypeError: url.indexOf is not a function ,使用jquery load()出现错误
- Titanium -- 运行app出现错误: TypeError: argument of type 'NoneType' is not iterable
- warning: the 'gets' function is dangerous and should not be used.的解决办法
- git 出现The current branch is not configured for pull No value for key branch.master.merge found in configuration错误的解决办法
- TypeError: a.replace is not a function 错误
- 关于ExtJS-4.0.2a中在gridpanel中出现column.getEditor is not a function的错误解决方法
- Android studio编程时出现的错误:unspecified on project app resolves to an APK archive which is not supported
- Git hub pull时候的错误 : The current branch is not configured for pull No value for key branch.master.merge found in configuration
- Java错误提示is not an enclosing class
- Ext.this.addEvents is not a function错误
- jquery中Uncaught TypeError: $(...).ajaxUpload is not a function(…)错误解决方法
- warning: unable to bind to property '' on class 'Object' (class is not an IEventDispatcher)
- Warning: readdir(): supplied argument is not a valid Directory resource in /yjdata/www/www/admin/tem