Unhandled Error!

Error loading Yahoo currency exchange feed.

Document /modules/shop/currency_converters/shop_yahoo_converter.php
Document type PHP document
Line 51
Exception class Phpr_SystemException

Code Highlight

				curl_setopt($ch, CURLOPT_POST, false);
				$feed_content = curl_exec($ch);
				curl_close($ch);
			} catch (Exception $ex) {}
 
			if (!strlen($feed_content))
				throw new Phpr_SystemException('Error loading Yahoo currency exchange feed.');
 
			$data = explode(',', $feed_content);
			if (count($data) < 2)
				throw new Phpr_SystemException('Yahoo currency exchange rate service has returned invalid data');
 
			return $data[0];
# Call Stack Code Document Line
15 Shop_Yahoo_Converter->get_exchange_rate(object(Shop_CurrencyConversionParams), 'CAD', 'USD') /modules/shop/classes/shop_currencyconverter.php 67
14 Shop_CurrencyConverter->get_rate('CAD', 'USD') /modules/shop/classes/shop_currencyconverter.php 103
13 Shop_CurrencyConverter->convert(130, 'CAD', 'USD') /modules/cms/classes/cms_controller.php(383) : eval()'d code 11
12 eval(()) /modules/cms/classes/cms_controller.php 383
11 Cms_Controller->evalWithException('?><div id="home"> <? $converter = Shop_CurrencyConverter::create(); ?> <h1>Tirages palladium-platine / <em lang="en" xml:lang="en">Palladium-Platinum Prints</em></h1> <div id="colonne-1"> <? $this->render_partial('2013_cat_list') ?> </div> <div id="colonne-2"> <blockquote id="intro-home"> <p>Authentiques palladio-platinotypes. Tirages qualité musée de photographies de collection. / <em xml:lang="en" lang="en">Authentic palladio-platinotypes. Museum quality prints of fine art photography. <br /></em> À partir de / <em xml:lang="en" lang="en">Price from</em> CAD $130 [ US $<?= $converter->convert(130, 'CAD', 'USD') ?> / € <?= $converter->convert(130, 'CAD', 'EUR') ?> ].</p> </blockquote> <? $group = Shop_CustomGroup::create()->find_by_code('groupe_kasebier') ?> <? if($group): ?> <h2><a href="/phototheque/category/gertrude-kasebier">Gertrude Käsebier</a></h2> <? $this->render_partial('2011_product_list', array('products' => $group->list_products()->limit(4)->apply_filters())) ?> <? endif ?> <? $group = Shop_CustomGroup::create()->find_by_code('groupe_lange') ?> <? if($group): ?> <h2><a href="/phototheque/category/dorothea-lange">Dorothea Lange</a></h2> <? $this->render_partial('2011_product_list', array('products' => $group->list_products()->limit(4)->apply_filters())) ?> <? endif ?> <? $group = Shop_CustomGroup::create()->find_by_code('groupe_nyc') ?> <? if($group): ?> <h2><a href="/phototheque/category/new-york-city">Ville de New York / <em lang="en" xml:lang="en">New York City</em></a></h2> <? $this->render_partial('2011_product_list', array('products' => $group->list_products()->limit(4)->apply_filters())) ?> <? endif ?> <? $group = Shop_CustomGroup::create()->find_by_code('groupe_voiliers') ?> <? if($group): ?> <h2>Voiliers / <em lang="en" xml:lang="en">Sailing Boats</em></h2> <? $this->render_partial('2011_product_list', array('products' => $group->list_products()->limit(10)->apply_filters())) ?> <? endif ?> <div id="product_new"> <h2>Nouveautés / <em lang="en" xml:lang="en">New</em></h2> <ul class="product_list"> <? $products = Shop_Product::create()->apply_visibility(); $products->apply_customer_group_visibility(); $products->where('grouped is null'); $products->order('created_at desc')->limit(6); $products = $products instanceof Db_ActiveRecord ? $products->find_all() : $products; foreach ($products as $product): $image_url = $product->image_url(0, 'auto', 190); ?> <li> <p><a href="<?= $product->page_url('/photo') ?>"><img src="<?= $image_url ?>" alt="<?= h($product->name) ?>" /></a></p> <p class="product_list_title"><a href="<?= $product->page_url('/photo') ?>"><?= h($product->name) ?></a></p> <p>— <?= h($product->short_description) ?> —</p> </li> <? endforeach ?> </ul> <div class="clear" ></div> </div> </div> </div> <!-- /home --> ', 'CMS page', 'Home') /modules/cms/classes/cms_controller.php 608
10 Cms_Controller->eval_page_content(()) /modules/cms/classes/cms_controller.php 198
9 Cms_Controller->open(object(Cms_Page), array(0)) /controllers/application.php 72
8 Application->On404(())
7 call_user_func_array(array(2) [0 => object(Application), 1 => 'On404'], array(0)) /phproad/modules/phpr/classes/phpr_controller.php 170
6 Phpr_Controller->executeAction('On404', array(0)) /phproad/modules/phpr/classes/phpr_controller.php 84
5 Phpr_Controller->_run('On404', array(0)) /phproad/modules/phpr/classes/phpr_response.php 64
4 Phpr_Response->open404(()) /phproad/modules/phpr/classes/phpr_response.php 37
3 Phpr_Response->open('/') /phproad/system/phproad.php 31
2 include('/home/capitaine/public_html/phototheque/phproad/system/phproad.php') /boot.php 114
1 require_once('/home/capitaine/public_html/phototheque/boot.php') /index.php 3