bezel Posted September 13, 2019 Share Posted September 13, 2019 Hi guys, I am trying to install a script and I am getting this error when loading for the first time kindly assist anyone. Quote Link to comment Share on other sites More sharing options...
bezel Posted September 13, 2019 Author Share Posted September 13, 2019 I am running on localhost Quote Link to comment Share on other sites More sharing options...
Barand Posted September 13, 2019 Share Posted September 13, 2019 Somewhere in your code you have something like $myObject->has() but $myObject contains null and is not a valid object Quote Link to comment Share on other sites More sharing options...
bezel Posted September 13, 2019 Author Share Posted September 13, 2019 How to find out where to put that? Quote Link to comment Share on other sites More sharing options...
chhorn Posted September 13, 2019 Share Posted September 13, 2019 You find 500 errors in the error.log on the webserver's machine. Quote Link to comment Share on other sites More sharing options...
Barand Posted September 13, 2019 Share Posted September 13, 2019 If I re-create your error <?php $myObject->has(); ?> then I get this Quote Fatal error: Uncaught Error: Call to a member function has() on null in C:\inetpub\wwwroot\test\noname15.php:2 Stack trace: #0 {main} thrown in C:\inetpub\wwwroot\test\noname15.php on line 2 Note the line number in the error message. Your error reporting seems be ignoring that bit of information so you need fix that or search your code for occurences of "has(". If your luckyy there will be only one, if unlucky there could be dozens. You then need to find out which one has the null object calling it. You then find where that object is being created and see what went wrong. Quote Link to comment Share on other sites More sharing options...
requinix Posted September 13, 2019 Share Posted September 13, 2019 Also, Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.