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

    Get exclusive Papeete Tahiti offers by Lucky 7 Travel!
    Papeete Tahiti

    cruise port

Papeete Tahiti cruise port

PHP warning

PHP warning

file_get_contents(http://api.openweathermap.org/data/2.5/forecast/daily?lat=35&q=Papeete%20Tahiti,France&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=P...")
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("Papeete%20Tahiti,France")
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 07:00:38 Apache/2.2.15 (CentOS) Yii Framework/1.1.15

Papeete Tahiti cruise port cruise lines

Azamara Club Cruises
Celebrity Cruises
Costa Cruise Lines
Crystal Cruises
Cunard Line
Holland America Line
Oceania Cruises
Paul Gauguin Cruises
Princess Cruises
Regent Seven Seas Cruises
Royal Caribbean International
Silversea Cruises

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


Customer support