Unhandled Error!

Can not parse date/time string: 0000-00-00 00:00:00

Document /phproad/modules/phpr/classes/phpr_datetime.php
Document type PHP document
Line 78
Exception class Phpr_ApplicationException

Code Highlight

			if ( $DateTime === null )
				$this->intValue = self::getCurrentDateTime();
			else
			{
				$Obj = Phpr_DateTimeFormat::parseDateTime($DateTime, self::universalDateTimeFormat, $TimeZone);
				if ( $Obj === false )
					throw new Phpr_ApplicationException( "Can not parse date/time string: $DateTime" );
 
				$this->intValue = $Obj->getInteger();
			}
		}
 
		public function __toString()
# Call Stack Code Document Line
30 Phpr_DateTime->__construct('0000-00-00 00:00:00') /phproad/modules/db/classes/db_activerecord.php 1128
29 Db_ActiveRecord->type_cast_date('0000-00-00', 'expected_availability_date') /phproad/modules/db/classes/db_activerecord.php 1077
28 Db_ActiveRecord->type_cast_field('expected_availability_date', '0000-00-00') /phproad/modules/db/classes/db_activerecord.php 1019
27 Db_ActiveRecord->fill(array(90) [page_url => null, items_ordered => '0', grouped_name => 'Premier Pearlstone Shower Tray Leg Set & Plinth Kit 900 x 900 Curved Plinth', page_calculated => null, product_type_calculated => 'Goods', manufacturer_link_calculated => 'Premier', images_calculated => 'LEGB01.jpg', tax_class_calculated => 'Product', categories_calculated => 'Fittings', grouped_products_all_calculated => null, options_calculated => null, product_extra_options_calculated => null, extra_option_sets_calculated => null, price_tiers_calculated => null, related_products_all_calculated => null, properties_calculated => 'Guarantee, Size', files_calculated => null, customer_groups_calculated => null, updated_user_name => 'Eddie Mason', created_user_name => 'Matthew Rondinelli', id => '15127', name => 'Premier Pearlstone Shower Tray Leg Set & Plinth Kit 900 x 900 Curved Plinth', description => '<p>Complete installation of your Premier Pearlstone shower tray with the Pearlstone Shower Tray Leg Set & Plinth Kit 900 x 900 Curved Plinth which turns the tray into an easy-plumb tray. Leg sets can be fixed with a battery powered driver, so there is no need for pilot holes.</p> <p>This model is suitable for use with suitable for use with 800 & 900mm Quadrant Pearlstone trays.</p> <p>Presenting an unmissable pairing of quality and value for money, the Permier range is sure to meet your bathroom needs. Hudson Reed have created this range to offer practical design at an economic price tag to help you update your bathroom on a budget.</p>', short_description => 'Complete instllation of your Premier Pearlstone shower tray with the Pearlstone Shower Tray Leg Set & Plinth Kit 900 x 900 Curved Plinth which turns the tray into an easy-plumb tray. Leg sets can be fixed with a battery powered driver, so there is no need for pilot holes.', url_name => 'pearlstone-shower-tray-leg-set-and-plinth-kit-900-x-900-curved-plinth', price => '29.92', sku => 'LEGB', weight => null, width => null, height => null, depth => null, manufacturer_id => '65', meta_description => null, meta_keywords => '1', on_sale => '1', enabled => '1', track_inventory => '0', in_stock => '-9000000', hide_if_out_of_stock => '0', stock_alert_threshold => '0', allow_pre_order => '0', created_user_id => '3', updated_user_id => '2', created_at => '2014-01-24 09:56:28', updated_at => '2018-08-06 12:07:26', page_id => null, product_id => null, grouped_option_desc => null, grouped => null, grouped_attribute_name => null, tax_class_id => '2', product_type_id => '1', xml_data => null, tier_prices_per_customer => '0', tier_price_compiled => 'a:0:{}', price_rules_compiled => 'a:0:{}', grouped_sort_order => '-1', grouped_self_ghost_flag => null, pt_description => 'Complete installation of your Premier Pearlstone shower tray with the Pearlstone Shower Tray Leg Set & Plinth Kit 900 x 900 Curved Plinth which turns the tray into an easy-plumb tray. Leg sets can be fixed with a battery powered driver, so there is no need for pilot holes. This model is suitable for use with suitable for use with 800 & 900mm Quadrant Pearlstone trays. Presenting an unmissable pairing of quality and value for money, the Permier range is sure to meet your bathroom needs. Hudson Reed have created this range to offer practical design at an economic price tag to help you update your bathroom on a budget.', expected_availability_date => '0000-00-00', enable_customer_group_filter => null, disable_completely => '0', enable_perproduct_shipping_cost => '0', perproduct_shipping_cost => 'a:1:{i:0;a:4:{s:7:"country";s:1:"*";s:5:"state";s:1:"*";s:3:"zip";s:1:"*";s:4:"cost";s:1:"0";}}', price_rule_map_compiled => 'a:0:{}', cost => '16.15', title => 'Premier Pearlstone Shower Tray Leg Set & Plinth Kit 900 x 900 Curved Plinth', allow_negative_stock_values => '0', product_rating => null, product_rating_all => null, product_rating_review_num => null, product_rating_all_review_num => null, visibility_search => '1', visibility_catalog => '1', perproduct_shipping_cost_use_parent => '1', sale_price_or_discount => '19.75', x_googleproducts_condition => null, x_googleproducts_brand => null, x_googleproducts_gtin => null, x_googleproducts_mpn => null, x_googleproducts_gender => null, x_googleproducts_age_group => null, x_googleproducts_color => null, x_googleproducts_size => null, x_googleproducts_included => '1', x_googleproducts_description => null, price_index_compiled => 'a:4:{i:0;a:5:{s:8:"group_id";i:1;s:5:"price";d:19.75;s:9:"min_price";d:19.75;s:9:"max_price";d:19.75;s:10:"is_on_sale";b:1;}i:1;a:5:{s:8:"group_id";i:2;s:5:"price";d:19.75;s:9:"min_price";d:19.75;s:9:"max_price";d:19.75;s:10:"is_on_sale";b:1;}i:2;a:5:{s:8:"group_id";i:3;s:5:"price";d:19.75;s:9:"min_price";d:19.75;s:9:"max_price";d:19.75;s:10:"is_on_sale";b:1;}i:3;a:5:{s:8:"group_id";i:4;s:5:"price";d:19.75;s:9:"min_price";d:19.75;s:9:"max_price";d:19.75;s:10:"is_on_sale";b:1;}}', total_in_stock => '-9000000', low_stock_threshold => null, x_googleproducts_id_exists => null], '1', null) /phproad/modules/db/classes/db_activerecord.php 437
26 Db_ActiveRecord->_find_fill(array(1) [0 => array(90)], null) /phproad/modules/db/classes/db_activerecord.php 513
25 Db_ActiveRecord->find_all_internal(null, array(0), null) /phproad/modules/db/classes/db_activerecord.php 472
24 Db_ActiveRecord->find(()) /phproad/modules/db/classes/db_activerecord.php 1914
23 Db_ActiveRecord->load_relation('product') /phproad/modules/db/classes/db_activerecord.php 1617
22 Db_ActiveRecord->__get('product') /modules/cms/classes/cms_controller.php(383) : eval()'d code 17
21 eval(()) /modules/cms/classes/cms_controller.php 383
20 Cms_Controller->evalWithException('?><? if ($item->control_type == 'dropdown'): $selected_item_product = Shop_BundleHelper::get_bundle_item_product_item($item); $selected_product = Shop_BundleHelper::get_bundle_item_product($item, $selected_item_product); ?> <select style="width: 400px" name="<?= Shop_BundleHelper::get_product_selector_name($item, $selected_item_product) ?>" onchange="$(this).getForm().sendRequest('on_action', {update: {'product_bundle_items': 'shop:bundle'}})"> <? if (!$item->is_required): ?> <option value="">None Selected</option> <? endif ?> <? foreach ($item->item_products as $item_product): ?> <option value="<?= Shop_BundleHelper::get_product_selector_value($item_product) ?>" <?= option_state(Shop_BundleHelper::is_item_product_selected($item, $item_product), true) ?>> <?= h($item_product->product->name) ?> </option> <? endforeach ?> </select> <? $this->render_partial('shop:bundle_product_parameters', array( 'product'=>$selected_product, 'item_product'=>$selected_item_product, 'item'=>$item)) ?> <?= Shop_BundleHelper::get_item_hidden_fields($item, $selected_item_product) ?> <? elseif ($item->control_type == 'checkbox'): ?> <ul> <? foreach ($item->item_products as $item_product): $selected_product = Shop_BundleHelper::get_bundle_item_product($item, $item_product); $is_selected = Shop_BundleHelper::is_item_product_selected($item, $item_product); ?> <li> <label> <input type="checkbox" name="<?= Shop_BundleHelper::get_product_selector_name($item, $item_product) ?>" value="<?= Shop_BundleHelper::get_product_selector_value($item_product) ?>" <?= checkbox_state($is_selected) ?> /> <?= h($item_product->product->name) ?> </label> <div class="<?= $is_selected ? null : 'hidden' ?>"> <? $this->render_partial('shop:bundle_product_parameters', array( 'product'=>$selected_product, 'item_product'=>$item_product, 'item'=>$item)) ?> </div> </li> <? endforeach ?> </ul> <? else: ?> <ul> <? if (!$item->is_required): ?> <li> <label> <input type="radio" name="<?= Shop_BundleHelper::get_product_selector_name($item,null) ?>" value="" checked="checked"/> No, thank you. </label> </li> <? endif ?> <? foreach ($item->item_products as $item_product): $selected_product = Shop_BundleHelper::get_bundle_item_product($item, $item_product); $is_selected = Shop_BundleHelper::is_item_product_selected($item, $item_product); ?> <li> <label> <input type="radio" name="<?= Shop_BundleHelper::get_product_selector_name($item, $selected_product) ?>" value="<?= Shop_BundleHelper::get_product_selector_value($item_product) ?>" <?= radio_state($is_selected) ?> /> <?= h($item_product->product->name) ?> </label> <div class="<?= $is_selected ? null : 'hidden' ?>"> <? $this->render_partial('shop:bundle_product_parameters', array( 'product'=>$selected_product, 'item_product'=>$item_product, 'item'=>$item)) ?> </div> </li> <? endforeach ?> </ul> <? endif ?>', 'CMS partial', 'shop:bundle_item_products', array(1) [item => object(Shop_ProductBundleItem)]) /modules/cms/classes/cms_controller.php 1020
19 Cms_Controller->render_partial('shop:bundle_item_products', array(1) [item => object(Shop_ProductBundleItem)]) /modules/cms/classes/cms_controller.php(383) : eval()'d code 15
18 eval(()) /modules/cms/classes/cms_controller.php 383
17 Cms_Controller->evalWithException('?><? if ($product->bundle_items->count): ?> <div class = "featureheader">Value Packages</div> <div class = "feature_box"> <p>Select any additional products below. Additional discounts may also apply if indicated. <br/>When you have made your selections, click the Add to Basket button above.</p> <table> <? foreach ($product->bundle_items as $item): ?> <tr> <th> <div class="bundleformat"><?= h($item->name) ?></div> <? if ($item->description): ?> <p><?= h($item->description) ?></p> <? endif ?> </th> <td><? $this->render_partial('shop:bundle_item_products', array('item'=>$item)) ?></td> </tr> <? endforeach ?> </table> <br/> </div> <? endif ?>', 'CMS partial', 'shop:bundle', array(0)) /modules/cms/classes/cms_controller.php 1020
16 Cms_Controller->render_partial('shop:bundle') /modules/cms/classes/cms_controller.php(383) : eval()'d code 96
15 eval(()) /modules/cms/classes/cms_controller.php 383
14 Cms_Controller->evalWithException('?><?= open_form() ?> <div class ="breadcrumb"> <a class= "custom_bc" href="<?= root_url('/') ?>">Home &nbsp;&nbsp;>&nbsp;&nbsp;<a class= "custom_bc"> Category &nbsp;&nbsp;>&nbsp;&nbsp;</a> <a class= "custom_bc_button" href="<?= $product->category_list[0]->page_url('/category') ?>"><?= h($product->category_list[0]->name) ?> (View More)</a> </div> <div class="product_details"> <? $posted_options = Shop_ProductHelper::get_default_options($product); ?> <? $this->render_partial('shop:image_slider', array('images'=>$product->om('images', $posted_options))) ?> <div class="info"> <div class="brand_header"><a><? $this->render_partial('shop:manufacturer') ?></a></div> <div class="product_title_box"><?= $product->name ?></div> <p><b>Product Code:&nbsp;</b><?= $product->om('sku') ?></p> <? $this->render_partial('shop:special_offers') ?> <div class= "noprint"><? $this->render_partial('shop:product_rating_info') ?></div> <? $this->render_partial('shop:product_attributes') ?> <? $this->render_partial('shop:grouped_products') ?> <? $this->render_partial('shop:product_options') ?> <? $this->render_partial('shop:product_extra_options') ?> <? $this->render_partial('shop:custom_out_of_stock_note') ?> <? if (!$product->om('disabled', $posted_options)): ?> <? else: ?> <div class="om_unavail">Note: Current selection is unavailable</div> <? endif ?> <?= flash_message() ?> <? $this->render_partial('shop:delivery_indicators') ?> <? if ($product->track_inventory && $product->in_stock > 0): ?> <p>Number of items in stock: <strong><?= $product->in_stock ?></strong></p> <? endif ?> <? if ($product->is_out_of_stock()): ?> <p> <strong>This product is temporarily unavailable</strong> <? if ($product->expected_availability_date): ?> <br/>The expected availability date is <strong><?= $product->displayField('expected_availability_date') ?></strong> <? endif ?> </p> <? endif ?> <div class= "product_quantity"> <label for="qty">Quantity:</label> <input type="text" name="product_cart_quantity" class="qty" value="1" /></div> <p class="price"> <? $is_discounted = $product->is_discounted(); ?> <? if ($product->om('is_on_sale', $posted_options)): ?> <span class="<?= $is_discounted ? 'old_price' : null ?>"><?= format_currency($product->om('price', $posted_options)) ?> </span><br/> <span class="sale_price"><?= format_currency($product->om('sale_price', $posted_options)) ?></span> <? endif ?> <br/> <? if (!$product->is_out_of_stock()): ?> <input onclick="return $(this).getForm().sendRequest('shop:on_addToCart', {extraFields: {message: '%s product(s) added to the basket'}, update: {'mini_cart': 'shop:mini_cart', 'product_page': 'product_partial'}})" type="image" name="add_to_cart" class="add_to_cart" src="<?= theme_resource_url('images/btn_add_to_cart.gif') ?>" alt="Add to cart"/> </p> <? endif ?> <div class= "noprint"><div class = "compare_share"><a><? $this->render_partial('shop:compare_share') ?></a></div></div> </div> </div> <div class="clear"></div> <div id="product_bundle_items"><? $this->render_partial('shop:bundle') ?></div> <div class = "featureheader">Product Information</div> <div class = "feature_box"> <?= $product->description ?> </div> <a name="reviews"> <div class="noprint"> <div class = "featureheader">Product Reviews</div> <div class = "feature_box_2"> <? $this->render_partial('shop:product_reviews') ?> <? $this->render_partial('shop:add_review_form') ?> </div> </div> </form> <? $this->render_partial('shop:related_products') ?> <br/> <h1><?= $product->name ?></h1> <p>If you require any additional information about this product, please do not hesitate to contact us with your requirements. Our friendly team will be happy to assist in any way they can.</p>', 'CMS partial', 'product_partial', array(0)) /modules/cms/classes/cms_controller.php 1020
13 Cms_Controller->render_partial('product_partial') /modules/cms/classes/cms_controller.php(383) : eval()'d code 7
12 eval(()) /modules/cms/classes/cms_controller.php 383
11 Cms_Controller->evalWithException('?><div id="product_page"> <? if ($product_unavailable): ?> <h2>We are sorry, product unavailable.</h2> <? elseif(!$product): ?> <h2>We are sorry, product not found.</h2> <? else: ?> <? $this->render_partial('product_partial') ?> <? endif ?> </div>', 'CMS page', 'Product') /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(1) [0 => 'ella-quadrant-shower-enclosure']) /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('/product/ella-quadrant-shower-enclosure') /phproad/system/phproad.php 31
2 include('/home/administration1/public_html/bhs-homeimprovements.com/phproad/system/phproad.php') /boot.php 114
1 require_once('/home/administration1/public_html/bhs-homeimprovements.com/boot.php') /index.php 3