Warning (2): Undefined variable $lon [APP/Controller/VillesController.php, line 96]
Warning (2): Undefined variable $radius [APP/Controller/VillesController.php, line 103]
Warning (2): Cannot modify header information - headers already sent by (output started at /home/lepetitbz/yacalouer.com/lib/Cake/Utility/Debugger.php:802) [CORE/Cake/Network/CakeResponse.php, line 456]
Errors

Database Error

Error: SQLSTATE[42000]: Syntax error or access violation: 1582 Incorrect parameter count in the call to native function 'radians'

SQL Query: SELECT `Equipment`.`id`, `Equipment`.`user_id`, `Equipment`.`name`, `Equipment`.`description`, `Equipment`.`price_per_day`, `Equipment`.`price_per_weekend`, `Equipment`.`telephone`, `Equipment`.`available`, `Equipment`.`created`, `Equipment`.`modified`, `Equipment`.`type_id`, `Equipment`.`image1`, `Equipment`.`image2`, `Equipment`.`image3`, `Equipment`.`ville_id`, `Equipment`.`statut`, `Equipment`.`view`, `Ville`.`id`, `Ville`.`dep`, `Ville`.`slug`, `Ville`.`nom`, `Ville`.`cp`, `Ville`.`commune`, `Ville`.`code_commune`, `Ville`.`arrondissement`, `Ville`.`canton`, `Ville`.`amdi`, `Ville`.`population`, `Ville`.`surface`, `Ville`.`ski`, `Ville`.`lng`, `Ville`.`lat`, `Ville`.`departement_id`, `Ville`.`created`, `Ville`.`descriptif`, `Ville`.`img`, `Type`.`id`, `Type`.`parent_id`, `Type`.`nom`, `Type`.`slug`, `Type`.`art`, `Type`.`description1`, `Type`.`description2`, `Type`.`description3`, `Type`.`alaune`, `Type`.`descriptif`, `Type`.`image`, `Type`.`icon`, `Type`.`created`, `Type`.`modified` FROM `lepetitbzycl90`.`equipments` AS `Equipment` LEFT JOIN `lepetitbzycl90`.`villes` AS `Ville` ON (`Equipment`.`ville_id` = `Ville`.`id`) LEFT JOIN `lepetitbzycl90`.`types` AS `Type` ON (`Equipment`.`type_id` = `Type`.`id`) WHERE `Equipment`.`available` = '1' AND 6371 * acos( cos(radians(45.15)) * cos(radians(`Ville`.`lat`)) * cos(radians(`Ville`.`lng`) - radians()) + sin(radians(45.15)) * sin(radians(`Ville`.`lat`)) ) <= NULL ORDER BY `Equipment`.`created` DESC LIMIT 15

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

Stack Trace

Rejoignez l'aventure