Author Topic: ROUTE PROBLE!!!!!  (Read 125 times)

AlexBuo99

  • Newbie
  • *
  • Posts: 6
    • View Profile
ROUTE PROBLE!!!!!
« on: August 16, 2023, 05:07:04 PM »
If the table is showing NO flights, it's possible that the aircraft you were flying is in MAINTENCE. You can check it by clicking on Fleet.



I uploaded the routes given their planes and certificates for the pilots but I don't get routes to book why????

Vacation AIr

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: ROUTE PROBLE!!!!!
« Reply #1 on: August 16, 2023, 07:15:03 PM »
i DON´T REALLY KNOW, i AM SORRY. Maybe because they need an admin aproval for the routes?
But I have a question. How did you created a new fleet? Because when I try to do so I get this error
Database Error
Error: SQLSTATE[HY000]: General error: 1364 Field 'value' doesn't have a default value

SQL Query: INSERT INTO `ldykztnj_vacationair`.`fleets` (`status`, `booked`, `fleettype_id`, `registry`, `location`, `hours`, `name`, `hub_id`) VALUES (100, '0', 7, 'EL-TEH', 'LIRF', 0, 'La Maddalena', 6)

Notice: If you want to customize this error message, create app/View/Errors/pdo_error.ctp

AlexBuo99

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: ROUTE PROBLE!!!!!
« Reply #2 on: August 17, 2023, 01:19:51 PM »
Prova a cambiare la versione php io ho impostata la 5.6

Vacation AIr

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: ROUTE PROBLE!!!!!
« Reply #3 on: August 17, 2023, 01:25:45 PM »
Oh, finally there is someboady. I am allready in version php 5.6. But still appears this error. Do you know why?

Vacation AIr

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: ROUTE PROBLE!!!!!
« Reply #4 on: August 17, 2023, 01:27:50 PM »
I managed somehow to create airplanes by going to tables, but know when i create a route I get this error
Error: SQLSTATE[HY000]: General error: 1364 Field 'fleet_id' doesn't have a default value

Notice: If you want to customize this error message, create app/View/Errors/pdo_error.ctp

Stack Trace
CORE/Cake/Model/Datasource/Database/Mysql.php line 898 → PDOStatement->execute()
CORE/Cake/Model/Model.php line 2121 → Mysql->insertMulti(string, string, array)
CORE/Cake/Model/Model.php line 1953 → Model->_saveMulti(array, string, Mysql)
CORE/Cake/Model/Model.php line 1758 → Model->_doSave(array, array)
APP/Controller/RoutesController.php line 79 → Model->save(array)
[internal function] → RoutesController->edit(string)
CORE/Cake/Controller/Controller.php line 491 → ReflectionMethod->invokeArgs(RoutesController, array)
CORE/Cake/Routing/Dispatcher.php line 193 → Controller->invokeAction(CakeRequest)
CORE/Cake/Routing/Dispatcher.php line 167 → Dispatcher->_invoke(RoutesController, CakeRequest)
APP/webroot/index.php line 110 → Dispatcher->dispatch(CakeRequest, CakeResponse)