php-Call to a member function assign() on
程序员文章站
2022-05-12 16:51:21
...
phpassign
在rms_report_function.php中调用get_rms_report函数,没有问题,我写了另一个php,代码如下:
require(DIR_ROOT.DIR_RMS.'rms_report/rms_report_function.php');
$shop_array = array();
$shop_array = get_rms_report('002');
echo json_encode($shop_array);
然后就报错:
Fatal error: Call to a member function assign() on a non-object in
这种情况该怎么解决呢?
推荐阅读
-
Call to a member function on a non-object,分不够再加
-
PHP对象编程有关问题,Call to a member function hello() on a non-object
-
PHP对象编程有关问题,Call to a member function hello() on a non-object
-
jQuery的$.get()函数不执行以及php端报错Uncaught Error: Call to a member function bind_param() on boolean in...
-
php用mysqli模块连数据库Fatal error: Call to a member function query() 。解决思路
-
求大神纠错,多谢!Fatal error: Call to a member function query() on a non-object
-
Call to a member function fetch() on a non-object异常
-
Fatal error: Call to a member function fetch_array() on a non-object in 62 line
-
Wordpress PHP Fatal error: Call to a member function get()
-
php中出现“Call to a member function Execute() on a non-object”的有关问题