Help Message: Trying to get property of non-object!!!! - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Help Message: Trying to get property of non-object!!!! (/showthread.php?tid=71476) |
Help Message: Trying to get property of non-object!!!! - PortalNET - 08-17-2018 Hi guys i have a strange issue i have 2 servers setup with the same codeigniter version and code, one works and the other does not.. which is more strange but ok this is the error i am getting A PHP Error was encountered Severity: Notice Message: Trying to get property of non-object Filename: controllers/statut.php Line Number: 32 lets check the file code PHP Code: <?php line 32 of the code is PHP Code: $http_port = $this->config_model->findOneByName('port_http'); Basically it pulls the information of the IP and port to fetch the following data from ip:port/monitor/state.xml file or at least it was supposed to do it , but its not.. this is the real file on the server with problems ok so it searches for the information from the xml, and displays it on PHP info file on the WEBGUI from the middleware server but for some reason its not picking up the information necessary. Code: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> and this is the monitor.xml file from another server running fine with the same exact status.php file both servers running same OS version, same php version, etc.etc.etc. , just different channels being streamed. Code: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> so i am freaking lost.. not shure i am running out of ideas , the only difference is this 1st picture server not working 2nd picture server working The only difference i have seen is that server working fine has PHP5.6.37 version with Xdebug v2.5.5, Copyright © 2002-2017, by Derick Rethans and the one not working has the same PHP 5.6.37 version but without xdebug.. its the only difference i could see so far.. Any help, hints or ideas are welcome ... Thxs RE: Help Message: Trying to get property of non-object!!!! - ciadmin - 08-17-2018 This sounds like a classic Widows vs Linux case sensitivity issue, especially given your filename "controllers/statup.php". CI looks for controllers/Statup.php, and wil find it on Windows but not on Linux. You said that are running the same OS on both servers, leading me to surmise that one is configured to enforce case sensitivity and the other not. The other thing you might look for is different environment config folders, eg application/config/production RE: Help Message: Trying to get property of non-object!!!! - PortalNET - 08-18-2018 (08-17-2018, 09:34 PM)ciadmin Wrote: This sounds like a classic Widows vs Linux case sensitivity issue, especially given your filename "controllers/statup.php". CI looks for controllers/Statup.php, and wil find it on Windows but not on Linux. Hiya thanks for your reply both servers running ubuntu-server x64 16.04 , so both linux dedicated servers.. And same exact config folders for both machines, its standard practise to avoid silly mistakes, or at least it was supposed to. so how would i approach it to find out the case sensitivy? |