Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR)
Call to a member function fill() on null Symfony\Component\Debug\Exception\FatalThrowableError thrown with message "Call to a member function fill() on null" Stacktrace: #0 Symfony\Component\Debug\Exception\FatalThrowableError in /home/hebeiweimingehse2bue5iqwkeri7mwiznag/wwwroot/app/Repositories/Managea/ZxcontentRepository.php:46
Application frames (1) All frames (1)
0
Symfony
\
Component
\
Debug
\
Exception
\
FatalThrowableError
/
app
/
Repositories
/
Managea
/
ZxcontentRepository.php
46
/
home
/
hebeiweimingehse2bue5iqwkeri7mwiznag
/
wwwroot
/
app
/
Repositories
/
Managea
/
ZxcontentRepository.php
        if(isset($param['where'])){
            $query=$query->where('title','like','%'.$param['where'].'%');
            // $query=$query->orWhere('content','like','%'.$param['where'].'%');
        }
        if(isset($param['date'])){
            $query=$query->whereDate('created_at',$param['date']);
        }
        return  $query->paginate($param['page']);
    }
 
    //新增
    public function create($param){
        $sys=new Zxcontent();
        $sys->fill($param)->save();
        return $sys->id;
    }
    //更新
    public function update($param){
        $sys = Zxcontent::find($param['id']);
        return $sys->fill($param)->save();   
    }
    //删除
    public function delete($id){
        return Zxcontent::where('id',$id)->delete();
    }
     //批量删除
    public function delall($id){
        return Zxcontent::whereIn('id',$id)->delete();
    }
    //详情
    public function info($id)
    {
        return Zxcontent::where('id',$id)->first();
    }
    //检查图片删除图片
    public function checkDelImage($id=0,$url='')
    {
        if($id){
            $zxinfo=$this->info($id);
            if($zxinfo['imageurl']!=$url){
Arguments
  1. "Call to a member function fill() on null"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
REDIRECT_REDIRECT_REDIRECT_UNIQUE_ID
"ZgVHlh5NtvZP4HPi0qDQkgAAABI"
REDIRECT_REDIRECT_REDIRECT_PHPRC
"/home/hebeiweimingehse2bue5iqwkeri7mwiznag/others"
REDIRECT_REDIRECT_REDIRECT_STATUS
"200"
REDIRECT_REDIRECT_UNIQUE_ID
"ZgVHlh5NtvZP4HPi0qDQkgAAABI"
REDIRECT_REDIRECT_PHPRC
"/home/hebeiweimingehse2bue5iqwkeri7mwiznag/others"
REDIRECT_REDIRECT_STATUS
"200"
REDIRECT_UNIQUE_ID
"ZgVHlh5NtvZP4HPi0qDQkgAAABI"
REDIRECT_PHPRC
"/home/hebeiweimingehse2bue5iqwkeri7mwiznag/others"
REDIRECT_HANDLER
"php-cgi"
REDIRECT_STATUS
"200"
UNIQUE_ID
"ZgVHlh5NtvZP4HPi0qDQkgAAABI"
PHPRC
"/home/hebeiweimingehse2bue5iqwkeri7mwiznag/others"
HTTP_X_FORWARDED_FOR
"3.88.16.192"
HTTP_X_REAL_IP
"3.88.16.192"
HTTP_HOST
"hbwmxx.com"
HTTP_CONNECTION
"close"
HTTP_ACCEPT
"*/*"
HTTP_USER_AGENT
"claudebot"
PATH
"/sbin:/usr/sbin:/bin:/usr/bin"
SERVER_SIGNATURE
"<address>Apache Server at hbwmxx.com Port 80</address>\n"
SERVER_SOFTWARE
"Apache"
SERVER_NAME
"hbwmxx.com"
SERVER_ADDR
"127.0.0.1"
SERVER_PORT
"80"
REMOTE_ADDR
"3.88.16.192"
DOCUMENT_ROOT
"/home/hebeiweimingehse2bue5iqwkeri7mwiznag/wwwroot"
REQUEST_SCHEME
"http"
CONTEXT_PREFIX
"/php-run-as-cgi"
CONTEXT_DOCUMENT_ROOT
"/usr/php7.2/bin"
SERVER_ADMIN
"webmaster@hebeiweiming"
SCRIPT_FILENAME
"/home/hebeiweimingehse2bue5iqwkeri7mwiznag/wwwroot/public/index.php"
REMOTE_PORT
"38706"
REDIRECT_URL
"/public/index.php"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/1.1"
REQUEST_METHOD
"GET"
QUERY_STRING
""
REQUEST_URI
"/shownews/80"
SCRIPT_NAME
"/public/index.php"
ORIG_SCRIPT_FILENAME
"/usr/php7.2/bin/php-cgi"
ORIG_PATH_INFO
"/public/index.php"
ORIG_PATH_TRANSLATED
"/home/hebeiweimingehse2bue5iqwkeri7mwiznag/wwwroot/public/index.php"
ORIG_SCRIPT_NAME
"/php-run-as-cgi/php-cgi"
PHP_SELF
"/public/index.php"
REQUEST_TIME_FLOAT
1711622038.1731
REQUEST_TIME
1711622038
APP_NAME
"Laravel"
APP_ENV
"local"
APP_KEY
"base64:XygwevHuhiq9KxHkczSxujKr8OAYr3rUAYSZBSu/rJs="
APP_DEBUG
"true"
APP_LOG_LEVEL
"debug"
APP_URL
"http://localhost"
DB_CONNECTION
"mysql"
DB_HOST
"localhost"
DB_PORT
"3306"
DB_DATABASE
"hebeiweiming"
DB_USERNAME
"hebeiweiming"
DB_PASSWORD
"g61nu6p4"
BROADCAST_DRIVER
"log"
CACHE_DRIVER
"file"
SESSION_DRIVER
"file"
SESSION_LIFETIME
"120"
QUEUE_DRIVER
"sync"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_DRIVER
"smtp"
MAIL_HOST
"smtp.mailtrap.io"
MAIL_PORT
"2525"
MAIL_USERNAME
"null"
MAIL_PASSWORD
"null"
MAIL_ENCRYPTION
"null"
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
PUSHER_APP_CLUSTER
"mt1"
Key Value
APP_NAME
"Laravel"
APP_ENV
"local"
APP_KEY
"base64:XygwevHuhiq9KxHkczSxujKr8OAYr3rUAYSZBSu/rJs="
APP_DEBUG
"true"
APP_LOG_LEVEL
"debug"
APP_URL
"http://localhost"
DB_CONNECTION
"mysql"
DB_HOST
"localhost"
DB_PORT
"3306"
DB_DATABASE
"hebeiweiming"
DB_USERNAME
"hebeiweiming"
DB_PASSWORD
"g61nu6p4"
BROADCAST_DRIVER
"log"
CACHE_DRIVER
"file"
SESSION_DRIVER
"file"
SESSION_LIFETIME
"120"
QUEUE_DRIVER
"sync"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_DRIVER
"smtp"
MAIL_HOST
"smtp.mailtrap.io"
MAIL_PORT
"2525"
MAIL_USERNAME
"null"
MAIL_PASSWORD
"null"
MAIL_ENCRYPTION
"null"
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
PUSHER_APP_CLUSTER
"mt1"
0. Whoops\Handler\PrettyPageHandler