Jump to content

Warning: ERROR ON LINE 466 CargoOps Module


MooneyPilot99

Recommended Posts

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

Link to comment
Share on other sites


        
         public function makeflightminu($distance, $cruisespeed)
        {
            $taxitime = 15;
            
            $basictime = $distance / $cruisespeed;
            
            $calcflighttime = round($basictime * 60);
            
            $extratime = round($calcflighttime * 0,1);

Link to comment
Share on other sites

  • Administrators
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 by ProAvia
Link to comment
Share on other sites

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 !

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...