Opencart的注意:试图让非对象的属性 [英] opencart Notice: Trying to get property of non-object in
问题描述
我在服务器托管安装Opencart的。但是,该网站显示下面给出的线条。
我的网站是 http://fruitsclubbd.com/
I installed opencart in my server hosting. But the site shows the lines given below. My site is http://fruitsclubbd.com/
是不是服务器或Opencart的问题?
Is it problem of server or opencart?
注意:试图让非对象的属性/home8/fruitscl/public_html/index.php在线52
Notice: Trying to get property of non-object in /home8/fruitscl/public_html/index.php on line 52
注意:试图让非对象的属性/home8/fruitscl/public_html/index.php在线61
Notice: Trying to get property of non-object in /home8/fruitscl/public_html/index.php on line 61
警告:/home8/fruitscl/public_html/index.php为的foreach()提供在线61无效参数
Warning: Invalid argument supplied for foreach() in /home8/fruitscl/public_html/index.php on line 61
注意:试图让非对象的属性/home8/fruitscl/public_html/index.php在线69
Notice: Trying to get property of non-object in /home8/fruitscl/public_html/index.php on line 69
下面是index.php文件的形式行线40至70。
Here is the lines of index.php form line 40 to 70.
//应用程序类
require_once(DIR_SYSTEM'库/ customer.php');
require_once(DIR_SYSTEM . 'library/customer.php');
require_once(DIR_SYSTEM'库/ affiliate.php');
require_once(DIR_SYSTEM . 'library/affiliate.php');
require_once(DIR_SYSTEM'库/ currency.php');
require_once(DIR_SYSTEM . 'library/currency.php');
require_once(DIR_SYSTEM'库/ tax.php');
require_once(DIR_SYSTEM . 'library/tax.php');
require_once(DIR_SYSTEM'库/ weight.php');
require_once(DIR_SYSTEM . 'library/weight.php');
require_once(DIR_SYSTEM'库/ length.php');
require_once(DIR_SYSTEM . 'library/length.php');
require_once(DIR_SYSTEM'库/ cart.php');
require_once(DIR_SYSTEM . 'library/cart.php');
//注册
$注册表=新注册();
$registry = new Registry();
//装载机
$装载机=新的Loader($注册表);
$loader = new Loader($registry);
$登记处>设置('负荷',$装载机);
$registry->set('load', $loader);
推荐答案
您尝试使用的mysqli
?如果是这样,编辑既对 DB_DRIVER
行您的配置文件,并从的mysql
将其更改为的mysqli
。所有可能什么发生在安装过程中选择的的的mysqli 的而不是的mysql 的
Are you trying to use mysqli
? If so, edit both of your config files on the DB_DRIVER
line and change it from mysql
to mysqli
. All what probably happened was choosing mysqli instead of mysql during the installation.
这篇关于Opencart的注意:试图让非对象的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!