Answers.Body: <p>The question is old but for anyone searching for that error, see <a href="https://issues.civicrm.org/jira/browse/CRM-21203" rel="nofollow noreferrer">CRM-21203</a> and <a href="https://github.com/civicrm/civicrm-core/pull/11609" rel="nofollow noreferrer">PR-11609</a> released in 5.1</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-27T17:20:05.723Z
Answers.LastActivityDate: 2018-04-27T17:20:05.723Z
Answers.UserDisplayName: Aidan
Body: <p>I need make a query on civicrm project in joomla from REST. However, when I try:
  <a href="http://localhost/joomla/administrator/components/com_civicrm/civicrm/extern/rest.php?entity=Contact&amp;action=get&amp;api_key=//user_key//&amp;key=//site_key//" rel="nofollow noreferrer">http://localhost/joomla/administrator/components/com_civicrm/civicrm/extern/rest.php?entity=Contact&amp;action=get&amp;api_key=//user_key//&amp;key=//site_key//</a>
  I just get:</p>
  
  <pre><code>PHP Fatal error:  Class 'JObject' not found in /var/www/html/joomla/libraries/joomla/event/dispatcher.php on line 23
  </code></pre>
  
  <p>I already change manually the api_key in mysql database, but I just can't make the access between api and database.</p>
  
  <p>How I was afraid that problem envolve permission issues, I try with cv command too. Here is the command:
  cv api Contact.get debug=1 sequential=1</p>
  
  <p>and exact same answer was showed up.</p>
  
  <p>Can Someone help me to find the way toward resolve this problem?</p>
  
  <p>thanks</p>
  
Tags: <api><rest>
Title: Trying REST but get PHP Fatal error: Class 'JObject' not found in
ThreadText: # Trying REST but get PHP Fatal error: Class 'JObject' not found in
  
  (Asked by: username_0 on 2017-10-07)
  
  I need make a query on civicrm project in joomla from REST. However, when I try:
  <http://localhost/joomla/administrator/components/com_civicrm/civicrm/extern/rest.php?entity=Contact&action=get&api_key=//user_key//&key=//site_key//>
  I just get:
  
  ```
  PHP Fatal error:  Class 'JObject' not found in /var/www/html/joomla/libraries/joomla/event/dispatcher.php on line 23
  
  ```
  
  I already change manually the api\_key in mysql database, but I just can't make the access between api and database.
  
  How I was afraid that problem envolve permission issues, I try with cv command too. Here is the command:
  cv api Contact.get debug=1 sequential=1
  
  and exact same answer was showed up.
  
  Can Someone help me to find the way toward resolve this problem?
  
  thanks
  
  **Tags:** api, rest
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-04-27. Score: 1
  
  The question is old but for anyone searching for that error, see [CRM-21203](https://issues.civicrm.org/jira/browse/CRM-21203) and [PR-11609](https://github.com/civicrm/civicrm-core/pull/11609) released in 5.1
  
  
  ---
  
  