Destination
Departure date
Cruise length
Cruise Line
Ship
Price range
Departure port
Currency
  • Cabo San Lucas lowest prices and last minute deals protected by 200% lowest price guarantee!

    Get exclusive Cabo San Lucas offers by Lucky 7 Travel!
    Cabo San Lucas

    cruise port

Cabo San Lucas cruise port

PHP warning

PHP warning

file_get_contents(http://api.openweathermap.org/data/2.5/forecast/daily?lat=35&q=Cabo%20San%20Lucas,Mexico&appid=24b107bdbfe44ae0d247bb775757c2c1): failed to open stream: HTTP request failed! HTTP/1.1 401 Unauthorized

/home/admin/web/lucky7travel.ca/public_html/cruise/protected/models/Port.php(126)

114         $criteria->compare('imagepath', $this->imagepath, true);
115         $criteria->compare('distance', $this->distance, true);
116         $criteria->compare('countryid', $this->countryid);
117 
118         return new CActiveDataProvider($this, array(
119             'criteria' => $criteria,
120         ));
121     }
122 
123     public static function getWeather($param) {
124 
125 
126         $weather = file_get_contents("http://api.openweathermap.org/data/2.5/forecast/daily?lat=35&q={$param}&appid=24b107bdbfe44ae0d247bb775757c2c1");
127       //  $weather = json_decode($weather);
128         $weatherresult = json_decode($weather);
129         if($weatherresult->cod == 404){
130             return;
131         }
132 
133         $criteria = new CDbCriteria();
134         $criteria->compare('searchparameter', $param);
135         $criteria->compare("datecreated", date("Y-m-d"));
136         $weathercache = Weathercache::model()->findByAttributes(array(), $criteria);
137     //    $city = $weather->city->name;
138        // $country = $weather->city->country;

Stack Trace

#0
+
 /home/admin/web/lucky7travel.ca/public_html/cruise/protected/models/Port.php(126): file_get_contents("http://api.openweathermap.org/data/2.5/forecast/daily?lat=35&q=C...")
121     }
122 
123     public static function getWeather($param) {
124 
125 
126         $weather = file_get_contents("http://api.openweathermap.org/data/2.5/forecast/daily?lat=35&q={$param}&appid=24b107bdbfe44ae0d247bb775757c2c1");
127       //  $weather = json_decode($weather);
128         $weatherresult = json_decode($weather);
129         if($weatherresult->cod == 404){
130             return;
131         }
#1
+
 /home/admin/web/lucky7travel.ca/public_html/cruise/protected/controllers/CruiseController.php(108): Port::getWeather("Cabo%20San%20Lucas,Mexico")
103     public function actionWeather() {
104         header('Access-Control-Allow-Origin: *');
105         $city = str_replace(" ", "%20", $_GET['city']);
106         $country = str_replace(" ", "%20", $_GET['country']);
107 
108         $weathercache = Port::getWeather($city . "," . $country);
109 
110 
111         if (!empty($weathercache) && !is_null($weathercache))
112         $this->renderPartial("_weather", array('model' => $weathercache));
113     }
#9
+
 /home/admin/web/lucky7travel.ca/public_html/cruise/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2025-03-14 06:48:23 Apache/2.2.15 (CentOS) Yii Framework/1.1.15

Cabo San Lucas cruise port cruise lines

Carnival Cruise Lines
Holland America Line
Princess Cruises

Lucky 7 Travel © 2013
Terms, Conditions and Privacy Policy
All Rights Reserved


Customer support