在制作php网站中出现以下错误,寻求帮助!
[root@localhost ajax]# cat loadphotoview.php
<?php
use OCA\FaceFinder;
OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck();
OCP\JSON::checkAppEnabled('EagleEye');
if(OC_Filesystem::file_exists($_GET['image'])){
$photo=OCA\FaceFinder\FaceFinderPhoto::getPhotoClassPath($_GET['image']);
echo OCP\JSON::success(array('data'=>$photo->getJSON()));
}else{
OCP\JSON::error(array("message"=>"get image must be an intager"));
}
日志报错如下
PHP Fatal error: Call to a member function getJSON() on a non-object in /var/http://www.0731jiaju.com.php on line 8, referer: http://192.168.254.153/index.php/apps/files?dir=//myfile
我不懂开发,特地求助各位大神,急!!!
有知道的请马上回复 谢谢!!