Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-13689

Print Case Report button (from Manage Case) throws a set of fatal errors in WordPress, but NOT in Drupal

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.0
    • Fix Version/s: 4.4.1
    • Labels:
      None

      Description

      Print Case Report button (from Manage Case) throws a set of fatal errors in WordPress, but NOT in Drupal. The URL is http://localhost/dgg/wordpress/wp-admin/admin.php?page=CiviCRM&q=civicrm/case/report/print&all=1&redact=0&cid=3&caseID=1&asn=standard_timeline

      The errors in WP:

      Warning: DOMDocument::loadXML() [<a href='domdocument.loadxml'>domdocument.loadxml</a>]: EntityRef: expecting ';' in Entity, line: 14 in /Users/dgg/git/crm_v4.4/CRM/Case/Audit/Audit.php on line 21

      … and this error repeats for Entities in line 80 etc. (one for each activity in the case)

      I dumped $this->xmlString (attached), and the entities the fatal is complaining about are the EditURL entities. I've pulled out the first one from same type of case in Drupal site and WP site for comparison (below). I don't see any significant differences so not sure why the fatal is happening in WP ???

      This is the EditURL entity in my Drupal 4.4 site:
      <EditURL>/civicrm/case/activity?reset=1&cid=150&caseid=1&action=update&atype=13&id=627</EditURL>

      This is the EditURL entity in my WP 4.4 site:
      <EditURL>/dgg/wordpress/wp-admin/admin.php?page=CiviCRM&q=civicrm/case/activity&reset=1&cid=3&caseid=1&action=update&atype=13&id=4</EditURL>

        Attachments

          Activity

            People

            • Assignee:
              dgg David Greenberg
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: