Changeset 17766
- Timestamp:
- 09/29/08 16:16:33 (2 months ago)
- Files:
-
- trunk/midcom/midcom.helper.replicator/exporter.php (modified) (5 diffs)
- trunk/midcom/midcom.helper.replicator/helpers.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/midcom.helper.replicator/exporter.php
r17556 r17766 111 111 { 112 112 unset($privileges, $privilege, $qb); 113 debug_add("midcom_helper_replicator_serialize returned false for privilege {$privilege->guid} ", MIDCOM_LOG_ERROR);113 debug_add("midcom_helper_replicator_serialize returned false for privilege {$privilege->guid}, errstr: " . mgd_errstr(), MIDCOM_LOG_ERROR); 114 114 debug_pop(); 115 115 return false; … … 141 141 if ($attachment_serialized === false) 142 142 { 143 debug_add("midcom_helper_replicator_serialize returned false for attachment {$attachment->guid} ", MIDCOM_LOG_ERROR);143 debug_add("midcom_helper_replicator_serialize returned false for attachment {$attachment->guid}, errstr: " . mgd_errstr(), MIDCOM_LOG_ERROR); 144 144 debug_pop(); 145 145 return false; … … 151 151 { 152 152 unset($attachment_serialized); 153 debug_add("midcom_helper_replicator_serialize_blob returned false for attachment {$attachment->guid} ", MIDCOM_LOG_ERROR);153 debug_add("midcom_helper_replicator_serialize_blob returned false for attachment {$attachment->guid}, errstr: " . mgd_errstr(), MIDCOM_LOG_ERROR); 154 154 debug_pop(); 155 155 return false; … … 276 276 { 277 277 unset($parameters, $parameter, $qb); 278 debug_add("midcom_helper_replicator_serialize returned false for parameter {$parameter->guid} ", MIDCOM_LOG_ERROR);278 debug_add("midcom_helper_replicator_serialize returned false for parameter {$parameter->guid}, errstr: " . mgd_errstr(), MIDCOM_LOG_ERROR); 279 279 debug_pop(); 280 280 return false; … … 371 371 { 372 372 $GLOBALS['midcom_helper_replicator_logger']->pop_prefix(); 373 debug_add("midcom_helper_replicator_serialize returned false for object {$object->guid} ", MIDCOM_LOG_ERROR);373 debug_add("midcom_helper_replicator_serialize returned false for object {$object->guid}, errstr: " . mgd_errstr(), MIDCOM_LOG_ERROR); 374 374 debug_pop(); 375 375 return false; trunk/midcom/midcom.helper.replicator/helpers.php
r16789 r17766 29 29 || $object->lang === 0) 30 30 { 31 // Non-ML or not in langx does not trigger the bug31 // Non-ML or not in langx does not trigger bug #259 32 32 $stat = midgard_replicator::serialize($object); 33 33 return midcom_helper_replicator_serialize_check_bug244($stat, $object); … … 105 105 $_MIDCOM->uimessages->add('midcom.helper.replicator', $msg, 'error'); 106 106 $GLOBALS['midcom_helper_replicator_logger']->log_object($object, "has {$total_langs} languages, this triggers bug #244, preventing export.", MIDCOM_LOG_ERROR); 107 debug_push_class('function', __FUNCTION__); 108 debug_add("Object {$class} #{$object->id} has {$total_langs} languages, this triggers bug #244, preventing export", MIDCOM_LOG_WARN); 109 debug_pop(); 107 110 unset($class, $object_url, $msg, $total_langs, $langs); 108 //debug_pop();111 mgd_set_errno(MGD_ERR_ERROR); 109 112 return false; 110 113 }
