Ysurac / FlightAirMap

Open source project displaying live aircrafts, ships or trackers on 2D/3D map. Browse through the data based on a particular aircraft, airline, airport, tracker or vessel to search through the database or see extensive statistics. Can use ADS-B in SBS1 format (dump1090, Radarcape,...), VRS, VA (VATSIM, IVAO whazzup.txt, phpvms,...), ACARS (acarsdec, acarsdeco2), APRS, AIS as datasource.
https://www.flightairmap.com/
GNU Affero General Public License v3.0
516 stars 157 forks source link

PHP Fatal error #336

Closed rkshinde closed 7 years ago

rkshinde commented 7 years ago

Hello,

We are getting below error when trying to run the install/index.php

PHP Fatal error: Can't use method return value in write context in /var/www/html/flightairmap/require/class.Accident.php on line 323

We are on PHP 5.4.16, please let me exactly what causing this.

rkshinde commented 7 years ago

I have resolved this by below fix. changed if (empty($Image->getSpotterImage($cr['registration']))) {

to

$SpotterImage=$Image->getSpotterImage($cr['registration']); if(empty($SpotterImage)) {

Couple of permissions issue on require/settings.php and install/tmp

Ysurac commented 7 years ago

This is fixed in commit 6ab92f3a823edc28659d0f9239eca991cc167d6c Permissions are checked by install/index.php script.

rkshinde commented 7 years ago

Nice .. thanks for the update