expresspixel / estatezilla

A lightweight open-source Real Estate CMS
http://estatezilla.com/
84 stars 48 forks source link

FatalErrorException in c555e8e0bfba552750b17dbff23c848c line 56: Call to a member function url() on null #4

Open godibling opened 6 years ago

godibling commented 6 years ago

Please I tried running EstateZilla real estate portal on my localhost, I was able to view and make changes on the Admin backend but I was unable to view the website frontend, when I tried this I kept getting this error message FatalErrorException in c555e8e0bfba552750b17dbff23c848c line 56: Call to a member function url() on null

Please what can I do? Because I intend to move it to a domain online.

Thank you.

AfifRao commented 6 years ago

Hello godibling!

How can i install it properly? im facing database errors.

Thanks

mutazhameed commented 6 years ago

any updates about this issue @godibling ?? im having the same error

mutazhameed commented 6 years ago

@AfifRao did you set the database credentials in .env file?

chunyianliew commented 6 years ago

I experienced the same issue when trying to install estatezilla for the first time. When I looked at the actual source file I noticed that the php short tag used was <? instead of <?php As the php setting short_open_tag was set to Off in my php.ini the following php code was not properly executed: <? foreach($properties as $property) : ?>

This caused the next piece of php code to fail too as $property was not loaded: <?= $property->url() ?>

This caused the fatal error: Call to a member function url() on null

The issue was resolved after I enabled the use of php short tags in php.ini: short_open_tag=On