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

function simplexml_load_string doesnt exist in php4

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: 1.7
    • Fix Version/s: None
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      Hi,

      i installed CiviCRM 1.7.beta.9239 recently on my server which works with drupal 5.1 . The problem is when i try to activate google maps in civiCRM after entering google api key for my site and enabled it in one civiCRM profile. When i save data in one another profile where this google maps is not even enabled i get following error:

      Fatal error: Call to undefined function: simplexml_load_string() in /home/thinkind/public_html/den/modules/civicrm/CRM/Utils/Geocode/Google.php on line 133

      I guess this is coming because i am using php4.4 on my server where as simplexml_load_string() function exists in php5 onwards.

      I found similar problem sometime back when i was creating my own mashup using yahoo apis, to solve this problem i used yahoo DOM parser for php4 given at http://developer.yahoo.com/php/samples/parse/parseDOMXML.txt .

      You can use this code with statement like :

      if(!function_exists('simplexml_load_file'))

      --rafi

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              chaos21in Rafi Ahmad
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: