Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.6.8
-
Fix Version/s: 4.6.10
-
Component/s: CiviContribute
-
Labels:
-
Documentation Required?:None
-
Funding Source:Contributed Code
Description
Steps to reproduce:
1) Call civicrm_api3('Contribution', 'repeattransaction', array(
'sequential' => 1,
'original_contribution_id' => $original_contribution['id'],
'contribution_status_id' => "Completed"
));
Expected behavior:
Database should be updated, PDFs for invoice and receipt should be created, attached to email and sent.
Observed behavior:
Database is updated, PDF for invoice is created, however during the creation of the PDF receipt a fatal php error is generated, namely:
(From the php error log)
PHP Catchable fatal error: Argument 1 passed to DOMNode::appendChild() must be an instance of DOMNode, null given, called in /srv/www/wordpress-default/wp-content/plugins/civicrm/civicrm/vendor/dompdf/dompdf/include/table_frame_decorator.cls.php on line 312 and defined in /srv/www/wordpress-default/wp-content/plugins/civicrm/civicrm/vendor/dompdf/dompdf/include/frame.cls.php on line 765
This is due to incorrect HTML structure. dompdf chokes on it.
-Submitted patch: https://github.com/civicrm/civicrm-core/pull/6920- New patch: https://github.com/civicrm/civicrm-core/pull/6944