Summary | Fatal error editing date property |
Queue | Sesha |
Queue Version | Git master |
Type | Bug |
State | Assigned |
Priority | 1. Low |
Owners | ralf.lang (at) ralf-lang (dot) de |
Requester | jan (at) horde (dot) org |
Created | 11/06/2012 (4572 days ago) |
Due | |
Updated | 02/11/2013 (4475 days ago) |
Assigned | 12/28/2012 (4520 days ago) |
Resolved | |
Milestone | 1 |
Patch | No |
a:3:{s:5:"month";s:0:"";s:3:"day";s:0:"";s:4:"year";s:0:"";}
and a monthyear property with:
a:2:{s:5:"month";s:1:"4";s:4:"year";s:4:"1997";}
This results in a different fatal error:
( ! ) Fatal error: Cannot use object of type Horde_Date as array in
/home/jan/horde-develop/framework/Util/lib/Horde/Variables.php on line
351
Call Stack
# Time Memory Function Location
1 0.0001 239832 {main}( ) ../stock.php:0
2 1.3974 9664728 Horde_Form->renderInactive( class Horde_Form_Renderer
{ public $_name = 'sesha_form_stock'; public $_requiredLegend = FALSE;
public $_requiredMarker = '*'; public $_helpMarker = '?'; public
$_showHeader = TRUE; public $_cols = 2; public $_varRenderer = class
Horde_Core_UI_VarRenderer_Stockedit_Html { protected $_onLoadJS =
array (); protected $_params = array ('varrenderer_driver' => array
(...)) }; public $_firstField = NULL; public $_stripedRows = FALSE;
public $_encodeTitle = TRUE; public $_attrColumnWidth = '15%' }, class
Horde_Variables { protected $_expected = array (); protected
$_sanitized = FALSE; protected $_vars = array ('stock_id' => 3,
'actionId' => 'view_stock', 'stock_name' => 'yxcv', 'note' => '',
'categories' => class Horde_Rdo_List { protected $_query = class
Horde_Rdo_Query { ... }; protected $_mapper = class
Sesha_Entity_CategoryMapper { ... }; protected $_sql = 'SELECT
sesha_categories.category_id, sesha_categories.category,
sesha_categories.description, sesha_categories.priority FROM
sesha_categories INNER JOIN sesha_inventory_categories t1 ON
sesha_categories.category_id = t1.category_id AND stock_id = ?';
protected $_bindParams = array (...); protected $_result = NULL;
protected $_current = NULL; protected $_index = NULL; protected $_eof
= NULL; protected $_count = NULL }, 'values' => class Horde_Rdo_List {
protected $_query = class Horde_Rdo_Query { ... }; protected $_mapper
= class Sesha_Entity_ValueMapper { ... }; protected $_sql = 'SELECT
sesha_inventory_properties.attribute_id,
sesha_inventory_properties.property_id,
sesha_inventory_properties.stock_id,
sesha_inventory_properties.int_datavalue,
sesha_inventory_properties.txt_datavalue FROM
sesha_inventory_properties WHERE sesha_inventory_properties.`stock_id`
= ?'; protected $_bindParams = array (...); protected $_result = NULL;
protected $_current = NULL; protected $_index = NULL; protected $_eof
= NULL; protected $_count = NULL }, 'category_id' => array (0 => 1),
'property' => array (12 => class Horde_Date { ... }, 2 => class
Horde_Date { ... })) }, class Horde_Url { public $url =
'/headhorde/sesha/stock.php'; public $raw = FALSE; public $parameters
= array (); public $pathInfo = NULL; public $anchor = ''; public
$toStringCallback = NULL }, 'post' ) ../stock.php:191
3 1.3975 9665216 Horde_Form_Renderer->renderFormInactive( class
Sesha_Form_Stock { protected $_name = 'sesha_form_stock'; protected
$_title = 'Artikel anzeigen'; protected $_extra = '<span
class="smallheader"><a
href="/headhorde/sesha/stock.php?stock_id=3&actionId=update_stock">Bearbeiten</a></span>'; protected $_vars = class Horde_Variables { protected $_expected = array (); protected $_sanitized = FALSE; protected $_vars = array ('stock_id' => 3, 'actionId' => 'view_stock', 'stock_name' => 'yxcv', 'note' => '', 'categories' => class Horde_Rdo_List { ... }, 'values' => class Horde_Rdo_List { ... }, 'category_id' => array (...), 'property' => array (...)) }; protected $_submit = array (0 => 'Artikel speichern'); protected $_reset = FALSE; protected $_errors = array (); protected $_submitted = FALSE; public $_sections = array (); protected $_open_section = NULL; protected $_currentSection = '__base'; protected $_variables = array ('__base' => array (0 => class Horde_Form_Variable { ... }, 1 => class Horde_Form_Variable { ... }, 2 => class Horde_Form_Variable { ... }, 3 => class Horde_Form_Variable { ... }, 4 => class Horde_Form_Variable { ... }, 5 => class Horde_Form_Variable { ... }, 6 => class Horde_Form_Variable { ... })); protected $_hiddenVariables = array (0 => class Horde_Form_Variable { public $form = NULL; public $humanName = ''; public $varName = 'actionId'; public $type = class Horde_Form_Type_text { ... }; public $required = TRUE; public $readonly = FALSE; public $description = NULL; public $help = NULL; public $_arrayVal = FALSE; public $_defValue = NULL; public $_action = NULL; public $_disabled = FALSE; public $_autofilled = FALSE; public $_hidden = TRUE; public $_options = array (...) }, 1 => class Horde_Form_Variable { public $form = NULL; public $humanName = ''; public $varName = 'stock_id'; public $type = class Horde_Form_Type_int { ... }; public $required = TRUE; public $readonly = TRUE; public $description = NULL; public $help = NULL; public $_arrayVal = FALSE; public $_defValue = NULL; public $_action = NULL; public $_disabled = FALSE; public $_autofilled = FALSE; public $_hidden = TRUE; public $_options = array (...) }); protected $_useFormToken = TRUE; protected $_autofilled = FALSE; protected $_enctype = NULL; public $_help = FALSE }, class Horde_Variables { protected $_expected = array (); protected $_sanitized = FALSE; protected $_vars = array ('stock_id' => 3, 'actionId' => 'view_stock', 'stock_name' => 'yxcv', 'note' => '', 'categories' => class Horde_Rdo_List { protected $_query = class Horde_Rdo_Query { ... }; protected $_mapper = class Sesha_Entity_CategoryMapper { ... }; protected $_sql = 'SELECT sesha_categories.category_id, sesha_categories.category, sesha_categories.description, sesha_categories.priority FROM sesha_categories INNER JOIN sesha_inventory_categories t1 ON sesha_categories.category_id = t1.category_id AND stock_id = ?'; protected $_bindParams = array (...); protected $_result = NULL; protected $_current = NULL; protected $_index = NULL; protected $_eof = NULL; protected $_count = NULL }, 'values' => class Horde_Rdo_List { protected $_query = class Horde_Rdo_Query { ... }; protected $_mapper = class Sesha_Entity_ValueMapper { ... }; protected $_sql = 'SELECT sesha_inventory_properties.attribute_id, sesha_inventory_properties.property_id, sesha_inventory_properties.stock_id, sesha_inventory_properties.int_datavalue, sesha_inventory_properties.txt_datavalue FROM sesha_inventory_properties WHERE sesha_inventory_properties.`stock_id` = ?'; protected $_bindParams = array (...); protected $_result = NULL; protected $_current = NULL; protected $_index = NULL; protected $_eof = NULL; protected $_count = NULL }, 'category_id' => array (0 => 1), 'property' => array (12 => class Horde_Date { ... }, 2 => class Horde_Date { ... })) }
) ../Form.php:530
4 1.3975 9665296 Horde_Form_Renderer->_renderForm( class
Sesha_Form_Stock { protected $_name = 'sesha_form_stock'; protected
$_title = 'Artikel anzeigen'; protected $_extra = '<span
class="smallheader"><a
href="/headhorde/sesha/stock.php?stock_id=3&actionId=update_stock">Bearbeiten</a></span>'; protected $_vars = class Horde_Variables { protected $_expected = array (); protected $_sanitized = FALSE; protected $_vars = array ('stock_id' => 3, 'actionId' => 'view_stock', 'stock_name' => 'yxcv', 'note' => '', 'categories' => class Horde_Rdo_List { ... }, 'values' => class Horde_Rdo_List { ... }, 'category_id' => array (...), 'property' => array (...)) }; protected $_submit = array (0 => 'Artikel speichern'); protected $_reset = FALSE; protected $_errors = array (); protected $_submitted = FALSE; public $_sections = array (); protected $_open_section = NULL; protected $_currentSection = '__base'; protected $_variables = array ('__base' => array (0 => class Horde_Form_Variable { ... }, 1 => class Horde_Form_Variable { ... }, 2 => class Horde_Form_Variable { ... }, 3 => class Horde_Form_Variable { ... }, 4 => class Horde_Form_Variable { ... }, 5 => class Horde_Form_Variable { ... }, 6 => class Horde_Form_Variable { ... })); protected $_hiddenVariables = array (0 => class Horde_Form_Variable { public $form = NULL; public $humanName = ''; public $varName = 'actionId'; public $type = class Horde_Form_Type_text { ... }; public $required = TRUE; public $readonly = FALSE; public $description = NULL; public $help = NULL; public $_arrayVal = FALSE; public $_defValue = NULL; public $_action = NULL; public $_disabled = FALSE; public $_autofilled = FALSE; public $_hidden = TRUE; public $_options = array (...) }, 1 => class Horde_Form_Variable { public $form = NULL; public $humanName = ''; public $varName = 'stock_id'; public $type = class Horde_Form_Type_int { ... }; public $required = TRUE; public $readonly = TRUE; public $description = NULL; public $help = NULL; public $_arrayVal = FALSE; public $_defValue = NULL; public $_action = NULL; public $_disabled = FALSE; public $_autofilled = FALSE; public $_hidden = TRUE; public $_options = array (...) }); protected $_useFormToken = TRUE; protected $_autofilled = FALSE; protected $_enctype = NULL; public $_help = FALSE }, class Horde_Variables { protected $_expected = array (); protected $_sanitized = FALSE; protected $_vars = array ('stock_id' => 3, 'actionId' => 'view_stock', 'stock_name' => 'yxcv', 'note' => '', 'categories' => class Horde_Rdo_List { protected $_query = class Horde_Rdo_Query { ... }; protected $_mapper = class Sesha_Entity_CategoryMapper { ... }; protected $_sql = 'SELECT sesha_categories.category_id, sesha_categories.category, sesha_categories.description, sesha_categories.priority FROM sesha_categories INNER JOIN sesha_inventory_categories t1 ON sesha_categories.category_id = t1.category_id AND stock_id = ?'; protected $_bindParams = array (...); protected $_result = NULL; protected $_current = NULL; protected $_index = NULL; protected $_eof = NULL; protected $_count = NULL }, 'values' => class Horde_Rdo_List { protected $_query = class Horde_Rdo_Query { ... }; protected $_mapper = class Sesha_Entity_ValueMapper { ... }; protected $_sql = 'SELECT sesha_inventory_properties.attribute_id, sesha_inventory_properties.property_id, sesha_inventory_properties.stock_id, sesha_inventory_properties.int_datavalue, sesha_inventory_properties.txt_datavalue FROM sesha_inventory_properties WHERE sesha_inventory_properties.`stock_id` = ?'; protected $_bindParams = array (...); protected $_result = NULL; protected $_current = NULL; protected $_index = NULL; protected $_eof = NULL; protected $_count = NULL }, 'category_id' => array (0 => 1), 'property' => array (12 => class Horde_Date { ... }, 2 => class Horde_Date { ... })) }, FALSE
) ../Renderer.php:224
5 1.4006 9671304 Horde_Core_Ui_VarRenderer->render( class
Sesha_Form_Stock { protected $_name = 'sesha_form_stock'; protected
$_title = 'Artikel anzeigen'; protected $_extra = '<span
class="smallheader"><a
href="/headhorde/sesha/stock.php?stock_id=3&actionId=update_stock">Bearbeiten</a></span>'; protected $_vars = class Horde_Variables { protected $_expected = array (); protected $_sanitized = FALSE; protected $_vars = array ('stock_id' => 3, 'actionId' => 'view_stock', 'stock_name' => 'yxcv', 'note' => '', 'categories' => class Horde_Rdo_List { ... }, 'values' => class Horde_Rdo_List { ... }, 'category_id' => array (...), 'property' => array (...)) }; protected $_submit = array (0 => 'Artikel speichern'); protected $_reset = FALSE; protected $_errors = array (); protected $_submitted = FALSE; public $_sections = array (); protected $_open_section = NULL; protected $_currentSection = '__base'; protected $_variables = array ('__base' => array (0 => class Horde_Form_Variable { ... }, 1 => class Horde_Form_Variable { ... }, 2 => class Horde_Form_Variable { ... }, 3 => class Horde_Form_Variable { ... }, 4 => class Horde_Form_Variable { ... }, 5 => class Horde_Form_Variable { ... }, 6 => class Horde_Form_Variable { ... })); protected $_hiddenVariables = array (0 => class Horde_Form_Variable { public $form = NULL; public $humanName = ''; public $varName = 'actionId'; public $type = class Horde_Form_Type_text { ... }; public $required = TRUE; public $readonly = FALSE; public $description = NULL; public $help = NULL; public $_arrayVal = FALSE; public $_defValue = NULL; public $_action = NULL; public $_disabled = FALSE; public $_autofilled = FALSE; public $_hidden = TRUE; public $_options = array (...) }, 1 => class Horde_Form_Variable { public $form = NULL; public $humanName = ''; public $varName = 'stock_id'; public $type = class Horde_Form_Type_int { ... }; public $required = TRUE; public $readonly = TRUE; public $description = NULL; public $help = NULL; public $_arrayVal = FALSE; public $_defValue = NULL; public $_action = NULL; public $_disabled = FALSE; public $_autofilled = FALSE; public $_hidden = TRUE; public $_options = array (...) }); protected $_useFormToken = TRUE; protected $_autofilled = FALSE; protected $_enctype = NULL; public $_help = FALSE }, class Horde_Form_Variable { public $form = class Sesha_Form_Stock { protected $_name = 'sesha_form_stock'; protected $_title = 'Artikel anzeigen'; protected $_extra = '<span class="smallheader"><a href="/headhorde/sesha/stock.php?stock_id=3&actionId=update_stock">Bearbeiten</a></span>'; protected $_vars = class Horde_Variables { protected $_expected = array (...); protected $_sanitized = FALSE; protected $_vars = array (...) }; protected $_submit = array (0 => 'Artikel speichern'); protected $_reset = FALSE; protected $_errors = array (); protected $_submitted = FALSE; public $_sections = array (); protected $_open_section = NULL; protected $_currentSection = '__base'; protected $_variables = array ('__base' => array (...)); protected $_hiddenVariables = array (0 => class Horde_Form_Variable { ... }, 1 => class Horde_Form_Variable { ... }); protected $_useFormToken = TRUE; protected $_autofilled = FALSE; protected $_enctype = NULL; public $_help = FALSE }; public $humanName = 'Monat'; public $varName = 'property[12]'; public $type = class Horde_Form_Type_monthyear { public $_start_year = '1990'; public $_end_year = '2013' }; public $required = FALSE; public $readonly = FALSE; public $description = ''; public $help = NULL; public $_arrayVal = FALSE; public $_defValue = NULL; public $_action = NULL; public $_disabled = FALSE; public $_autofilled = FALSE; public $_hidden = FALSE; public $_options = array () }, class Horde_Variables { protected $_expected = array (); protected $_sanitized = FALSE; protected $_vars = array ('stock_id' => 3, 'actionId' => 'view_stock', 'stock_name' => 'yxcv', 'note' => '', 'categories' => class Horde_Rdo_List { protected $_query = class Horde_Rdo_Query { ... }; protected $_mapper = class Sesha_Entity_CategoryMapper { ... }; protected $_sql = 'SELECT sesha_categories.category_id, sesha_categories.category, sesha_categories.description, sesha_categories.priority FROM sesha_categories INNER JOIN sesha_inventory_categories t1 ON sesha_categories.category_id = t1.category_id AND stock_id = ?'; protected $_bindParams = array (...); protected $_result = NULL; protected $_current = NULL; protected $_index = NULL; protected $_eof = NULL; protected $_count = NULL }, 'values' => class Horde_Rdo_List { protected $_query = class Horde_Rdo_Query { ... }; protected $_mapper = class Sesha_Entity_ValueMapper { ... }; protected $_sql = 'SELECT sesha_inventory_properties.attribute_id, sesha_inventory_properties.property_id, sesha_inventory_properties.stock_id, sesha_inventory_properties.int_datavalue, sesha_inventory_properties.txt_datavalue FROM sesha_inventory_properties WHERE sesha_inventory_properties.`stock_id` = ?'; protected $_bindParams = array (...); protected $_result = NULL; protected $_current = NULL; protected $_index = NULL; protected $_eof = NULL; protected $_count = NULL }, 'category_id' => array (0 => 1), 'property' => array (12 => class Horde_Date { ... }, 2 => class Horde_Date { ... })) }, FALSE
) ../Renderer.php:274
6 1.4006 9671584 Horde_Core_Ui_VarRenderer_Html->_renderVarDisplay_monthyear(
class Sesha_Form_Stock { protected $_name = 'sesha_form_stock';
protected $_title = 'Artikel anzeigen'; protected $_extra = '<span
class="smallheader"><a
href="/headhorde/sesha/stock.php?stock_id=3&actionId=update_stock">Bearbeiten</a></span>'; protected $_vars = class Horde_Variables { protected $_expected = array (); protected $_sanitized = FALSE; protected $_vars = array ('stock_id' => 3, 'actionId' => 'view_stock', 'stock_name' => 'yxcv', 'note' => '', 'categories' => class Horde_Rdo_List { ... }, 'values' => class Horde_Rdo_List { ... }, 'category_id' => array (...), 'property' => array (...)) }; protected $_submit = array (0 => 'Artikel speichern'); protected $_reset = FALSE; protected $_errors = array (); protected $_submitted = FALSE; public $_sections = array (); protected $_open_section = NULL; protected $_currentSection = '__base'; protected $_variables = array ('__base' => array (0 => class Horde_Form_Variable { ... }, 1 => class Horde_Form_Variable { ... }, 2 => class Horde_Form_Variable { ... }, 3 => class Horde_Form_Variable { ... }, 4 => class Horde_Form_Variable { ... }, 5 => class Horde_Form_Variable { ... }, 6 => class Horde_Form_Variable { ... })); protected $_hiddenVariables = array (0 => class Horde_Form_Variable { public $form = NULL; public $humanName = ''; public $varName = 'actionId'; public $type = class Horde_Form_Type_text { ... }; public $required = TRUE; public $readonly = FALSE; public $description = NULL; public $help = NULL; public $_arrayVal = FALSE; public $_defValue = NULL; public $_action = NULL; public $_disabled = FALSE; public $_autofilled = FALSE; public $_hidden = TRUE; public $_options = array (...) }, 1 => class Horde_Form_Variable { public $form = NULL; public $humanName = ''; public $varName = 'stock_id'; public $type = class Horde_Form_Type_int { ... }; public $required = TRUE; public $readonly = TRUE; public $description = NULL; public $help = NULL; public $_arrayVal = FALSE; public $_defValue = NULL; public $_action = NULL; public $_disabled = FALSE; public $_autofilled = FALSE; public $_hidden = TRUE; public $_options = array (...) }); protected $_useFormToken = TRUE; protected $_autofilled = FALSE; protected $_enctype = NULL; public $_help = FALSE }, class Horde_Form_Variable { public $form = class Sesha_Form_Stock { protected $_name = 'sesha_form_stock'; protected $_title = 'Artikel anzeigen'; protected $_extra = '<span class="smallheader"><a href="/headhorde/sesha/stock.php?stock_id=3&actionId=update_stock">Bearbeiten</a></span>'; protected $_vars = class Horde_Variables { protected $_expected = array (...); protected $_sanitized = FALSE; protected $_vars = array (...) }; protected $_submit = array (0 => 'Artikel speichern'); protected $_reset = FALSE; protected $_errors = array (); protected $_submitted = FALSE; public $_sections = array (); protected $_open_section = NULL; protected $_currentSection = '__base'; protected $_variables = array ('__base' => array (...)); protected $_hiddenVariables = array (0 => class Horde_Form_Variable { ... }, 1 => class Horde_Form_Variable { ... }); protected $_useFormToken = TRUE; protected $_autofilled = FALSE; protected $_enctype = NULL; public $_help = FALSE }; public $humanName = 'Monat'; public $varName = 'property[12]'; public $type = class Horde_Form_Type_monthyear { public $_start_year = '1990'; public $_end_year = '2013' }; public $required = FALSE; public $readonly = FALSE; public $description = ''; public $help = NULL; public $_arrayVal = FALSE; public $_defValue = NULL; public $_action = NULL; public $_disabled = FALSE; public $_autofilled = FALSE; public $_hidden = FALSE; public $_options = array () }, class Horde_Variables { protected $_expected = array (); protected $_sanitized = FALSE; protected $_vars = array ('stock_id' => 3, 'actionId' => 'view_stock', 'stock_name' => 'yxcv', 'note' => '', 'categories' => class Horde_Rdo_List { protected $_query = class Horde_Rdo_Query { ... }; protected $_mapper = class Sesha_Entity_CategoryMapper { ... }; protected $_sql = 'SELECT sesha_categories.category_id, sesha_categories.category, sesha_categories.description, sesha_categories.priority FROM sesha_categories INNER JOIN sesha_inventory_categories t1 ON sesha_categories.category_id = t1.category_id AND stock_id = ?'; protected $_bindParams = array (...); protected $_result = NULL; protected $_current = NULL; protected $_index = NULL; protected $_eof = NULL; protected $_count = NULL }, 'values' => class Horde_Rdo_List { protected $_query = class Horde_Rdo_Query { ... }; protected $_mapper = class Sesha_Entity_ValueMapper { ... }; protected $_sql = 'SELECT sesha_inventory_properties.attribute_id, sesha_inventory_properties.property_id, sesha_inventory_properties.stock_id, sesha_inventory_properties.int_datavalue, sesha_inventory_properties.txt_datavalue FROM sesha_inventory_properties WHERE sesha_inventory_properties.`stock_id` = ?'; protected $_bindParams = array (...); protected $_result = NULL; protected $_current = NULL; protected $_index = NULL; protected $_eof = NULL; protected $_count = NULL }, 'category_id' => array (0 => 1), 'property' => array (12 => class Horde_Date { ... }, 2 => class Horde_Date { ... })) }
) ../VarRenderer.php:85
7 1.4006 9671800 Horde_Variables->get( 'property[12][month]', ???
) ../Html.php:1367
8 1.4006 9671896 Horde_Variables->_getExists( array ('stock_id' => 3,
'actionId' => 'view_stock', 'stock_name' => 'yxcv', 'note' => '',
'categories' => class Horde_Rdo_List { protected $_query = class
Horde_Rdo_Query { public $mapper = class Sesha_Entity_CategoryMapper {
... }; public $conjunction = 'AND'; public $fields = array (...);
public $distinct = FALSE; public $tests = array (...); public
$relationships = array (...); public $limit = NULL; public
$limitOffset = NULL; protected $_sortby = array (...); protected
$_aliasCount = 1; protected $_aliases = array (...) }; protected
$_mapper = class Sesha_Entity_CategoryMapper { protected $_table =
'sesha_categories'; protected $_lazyRelationships = array (...);
protected $_setTimestamps = TRUE; protected $_classname =
'Sesha_Entity_Category'; protected $_tableDefinition = NULL; protected
$_lazyFields = array (...); protected $_relationships = array (...);
protected $_defaultSort = NULL; protected $_factory = class
Horde_Rdo_Factory { ... }; public $adapter = class
Horde_Db_Adapter_Pdo_Mysql { ... }; public $table =
'sesha_categories'; public $tableDefinition = class
Horde_Db_Adapter_Base_Table { ... }; public $primaryKey =
'category_id'; public $fields = array (...) }; protected $_sql =
'SELECT sesha_categories.category_id, sesha_categories.category,
sesha_categories.description, sesha_categories.priority FROM
sesha_categories INNER JOIN sesha_inventory_categories t1 ON
sesha_categories.category_id = t1.category_id AND stock_id = ?';
protected $_bindParams = array (0 => 3); protected $_result = NULL;
protected $_current = NULL; protected $_index = NULL; protected $_eof
= NULL; protected $_count = NULL }, 'values' => class Horde_Rdo_List {
protected $_query = class Horde_Rdo_Query { public $mapper = class
Sesha_Entity_ValueMapper { ... }; public $conjunction = 'AND'; public
$fields = array (...); public $distinct = FALSE; public $tests = array
(...); public $relationships = array (...); public $limit = NULL;
public $limitOffset = NULL; protected $_sortby = array (...);
protected $_aliasCount = 0; protected $_aliases = array (...) };
protected $_mapper = class Sesha_Entity_ValueMapper { protected
$_table = 'sesha_inventory_properties'; protected $_lazyRelationships
= array (...); protected $_setTimestamps = TRUE; protected $_classname
= 'Sesha_Entity_Value'; protected $_tableDefinition = NULL; protected
$_lazyFields = array (...); protected $_relationships = array (...);
protected $_defaultSort = NULL; protected $_factory = class
Horde_Rdo_Factory { ... }; public $adapter = class
Horde_Db_Adapter_Pdo_Mysql { ... }; public $table =
'sesha_inventory_properties'; public $tableDefinition = class
Horde_Db_Adapter_Base_Table { ... }; public $fields = array (...) };
protected $_sql = 'SELECT sesha_inventory_properties.attribute_id,
sesha_inventory_properties.property_id,
sesha_inventory_properties.stock_id,
sesha_inventory_properties.int_datavalue,
sesha_inventory_properties.txt_datavalue FROM
sesha_inventory_properties WHERE sesha_inventory_properties.`stock_id`
= ?'; protected $_bindParams = array (0 => 3); protected $_result =
NULL; protected $_current = NULL; protected $_index = NULL; protected
$_eof = NULL; protected $_count = NULL }, 'category_id' => array (0 =>
1), 'property' => array (12 => class Horde_Date { protected $_year =
'1997'; protected $_month = 3; protected $_mday = 31; protected $_hour
= 0; protected $_min = 0; protected $_sec = 0; protected $_timezone =
'Europe/Berlin'; protected $_defaultFormat = 'Y-m-d H:i:s'; protected
$_formatCache = array (...) }, 2 => class Horde_Date { protected
$_year = NULL; protected $_month = NULL; protected $_mday = NULL;
protected $_hour = 0; protected $_min = 0; protected $_sec = 0;
protected $_timezone = 'Europe/Berlin'; protected $_defaultFormat =
'Y-m-d H:i:s'; protected $_formatCache = array (...) })),
'property[12][month]', NULL ) ../Variables.php:134
a:3:{s:5:"month";s:1:"1";s:3:"day";s:1:"1";s:4:"year";s:4:"2000";}
State ⇒ Assigned
DateTime::__construct(): Failed to parse time string (-001-12-01) at
position 7 (-): Double timezone specification
1. Sesha_Entity_Value->getDataValue()
/home/jan/horde-develop/sesha/stock.php:128
2. Horde_Date->__set() /home/jan/horde-develop/sesha/lib/Entity/Value.php:32
3. Horde_Date->_correct()
/home/jan/horde-develop/framework/Date/lib/Horde/Date.php:461
4. Horde_Date_Utils::daysInMonth()
/home/jan/horde-develop/framework/Date/lib/Horde/Date.php:1012
5. DateTime->__construct()
/home/jan/horde-develop/framework/Date/lib/Horde/Date/Utils.php:58
Details
Die vollständige Fehlermeldung wurde in Hordes Logdatei geschrieben
und für Administratoren weiter unten ausgegeben. Benutzer, die keine
Administratoren sind, bekommen diese Details nicht zu sehen.
Exception Object
(
[message:protected] => DateTime::__construct(): Failed to parse
time string (-001-12-01) at position 7 (-): Double timezone
specification
[string:Exception:private] =>
[code:protected] => 0
[file:protected] =>
/home/jan/horde-develop/framework/Date/lib/Horde/Date/Utils.php
[line:protected] => 58
[trace:Exception:private] => Array
(
[0] => Array
(
[file] =>
/home/jan/horde-develop/framework/Date/lib/Horde/Date/Utils.php
[line] => 58
[function] => __construct
[class] => DateTime
[type] => ->
[args] => Array
(
[0] => -001-12-01
)
)
[1] => Array
(
[file] =>
/home/jan/horde-develop/framework/Date/lib/Horde/Date.php
[line] => 1012
[function] => daysInMonth
[class] => Horde_Date_Utils
[type] => ::
[args] => Array
(
[0] => 12
[1] => -1
)
)
[2] => Array
(
[file] =>
/home/jan/horde-develop/framework/Date/lib/Horde/Date.php
[line] => 461
[function] => _correct
[class] => Horde_Date
[type] => ->
[args] => Array
(
[0] => 16
[1] =>
)
)
[3] => Array
(
[file] =>
/home/jan/horde-develop/sesha/lib/Entity/Value.php
[line] => 32
[function] => __set
[class] => Horde_Date
[type] => ->
[args] => Array
(
[0] => month
[1] => 1
)
)
[4] => Array
(
[file] => /home/jan/horde-develop/sesha/stock.php
[line] => 128
[function] => getDataValue
[class] => Sesha_Entity_Value
[type] => ->
[args] => Array
(
)
)
)
State ⇒ Feedback
creating/editing items with filled or empty such fields.
commit b6cf65c8803c39414f9f2295c9baa8d3392feaa8
Author: Ralf Lang <lang@b1-systems.de>
Date: Tue Dec 11 21:39:04 2012 +0200
Solution (at least partial) for bug #11658 Fatal error editing
date property.
sesha/lib/Entity/Value.php | 38 +++++++++++++++++++++++++++++++++++---
1 files changed, 35 insertions(+), 3 deletions(-)
http://git.horde.org/horde-git/-/commit/b6cf65c8803c39414f9f2295c9baa8d3392feaa8
files, Sql Query) , but I currently don't have a H3 stack to check if
this originally worked or has always been broken.
Priority ⇒ 1. Low
State ⇒ Assigned
Patch ⇒ No
Milestone ⇒ 1
Assigned to Ralf Lang
Queue ⇒ Sesha
Summary ⇒ Fatal error editing date property
Type ⇒ Bug
monthdayyear property field, I get a fatal error:
Ein schwerer Fehler ist aufgetreten:
Zeitformat
(a:3:{s:5:"month";s:0:"";s:3:"day";s:0:"";s:4:"year";s:0:"";}) nicht
erkannt
1. Horde_Form->renderActive() /home/jan/horde-develop/sesha/stock.php:185
2. Horde_Form_Renderer->renderFormActive()
/home/jan/horde-develop/framework/Form/lib/Horde/Form.php:505
3. Horde_Form_Renderer->_renderForm()
/home/jan/horde-develop/framework/Form/lib/Horde/Form/Renderer.php:219
4. Horde_Core_Ui_VarRenderer->render()
/home/jan/horde-develop/framework/Form/lib/Horde/Form/Renderer.php:274
5. Horde_Core_Ui_VarRenderer_Html->_renderVarInput_monthdayyear()
/home/jan/horde-develop/framework/Core/lib/Horde/Core/Ui/VarRenderer.php:85
6. Horde_Form_Type_monthdayyear->getDateParts()
/home/jan/horde-develop/framework/Core/lib/Horde/Core/Ui/VarRenderer/Html.php:513
7. Horde_Form_Type_monthdayyear->getDateOb()
/home/jan/horde-develop/framework/Form/lib/Horde/Form/Type.php:2919
8. Horde_Date->__construct()
/home/jan/horde-develop/framework/Form/lib/Horde/Form/Type.php:2950