MooneyPilot99 Posted February 25, 2017 Report Posted February 25, 2017 Hello all, Upon installing the cargo ops module for phpvms for my virtual airline, I get this error: Warning: Division by zero in /home/flymyva/public_html/core/common/CargoOpsData.class.php on line 466 The name of my VA was removed to keep it anonymous as we are still in development. If someone could help me out and tell me where and how to fix this, it would be greatly appreciated. Thanks. Anthony Edwards Quote
web541 Posted February 25, 2017 Report Posted February 25, 2017 Can you open up the file core/common/CargoOpsData.class.php and post lines 460-470 so we can see what's going on. Also, what module are you using for this? Is it payware? If so, I suggest you contact the developer first. Quote
MooneyPilot99 Posted February 25, 2017 Author Report Posted February 25, 2017 } public function makeflightminu($distance, $cruisespeed) { $taxitime = 15; $basictime = $distance / $cruisespeed; $calcflighttime = round($basictime * 60); $extratime = round($calcflighttime * 0,1); Quote
MooneyPilot99 Posted February 25, 2017 Author Report Posted February 25, 2017 Lines 360-70 exactly.I have also contacted devs, however, I like the speedy replies I recieve here on the forums Quote
Administrators ProAvia Posted February 25, 2017 Administrators Report Posted February 25, 2017 (edited) 53 minutes ago, Aedwards521 said: $basictime = $distance / $cruisespeed; I don't have this module, so I don't know the exact names of any added database tables. In your database (in "schedules" or another table added by this module), are there any "cruisespeed" entries that equal zero? If so, you probably need to enter a cruise speed > 0. Also not exactly sure, but shouldn't phpVMS be installed in .../public_html/{VA_name_here}/phpvms instead of /home/flymyva/public_html ?? Edited February 25, 2017 by ProAvia Quote
MooneyPilot99 Posted February 25, 2017 Author Report Posted February 25, 2017 1 minute ago, ProAvia said: I don't have this module, so I don't know the exact names of any added database tables. In your database (in "schedules" or another table added by this module), are there any "cruisespeed" entries that equal zero? If so, you probably need to enter a cruise speed > 0. Hello ! I have just tried your suggestion, and all of a sudden, everything works. Thanks for the help ! Quote
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.