Answers.Body: <p>After investigations : </p>
  
  <ul>
  <li>The issue is due to i18n : if multilingual is on, then the bug raises. When it's off, there are no bug.</li>
  <li>CRM_Core_DAO_AllCoreTables::registerEntityType returns only table names without language code. In my case, the function returns civicrm_group instead of civicrm_group_fr_FR. Then, the function CRM_Core_DAO_AllCoreTables::getClassForTable($table) returns nothing, which ends with the following error : PHP Fatal error:  Class name must be a valid object or a string in /store/www/dev.lists.sciences-po.fr/html/sites/all/modules/civicrm/CRM/Utils/SQL.php on line 53</li>
  </ul>
  
  <p>Guess some hook in the i18n module is missing or not working properly.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-18T10:27:27.910Z
Answers.LastActivityDate: 2016-11-18T10:27:27.910Z
Answers.UserDisplayName: philippe
Body: <p>After upgrading from 4.7.11 to 4.7.13 (with Drupal 7.51), I get à 500 error (Internal Server Error) on an ajax call when attempting to create a new mailing. The screen stucks at "Initializing..."</p>
  
  <ul>
  <li>The message in the console is :  GET XHR
  <a href="http://dev.lists.sciences-po.fr/fr/civicrm/ajax/rest" rel="nofollow noreferrer">http://dev.lists.sciences-po.fr/fr/civicrm/ajax/rest</a>    [HTTP/1.1 500
  Internal Server Error 381 ms]</li>
  <li>Parameters are : action=get&amp;entity=MailingGroup&amp;json={"mailing_id":"6"}</li>
  <li>There are some similar ajax call before
  and after the faulty one, without any problem.</li>
  <li>There are no javascript error except this one.</li>
  <li>There are no group in the civicrm_mailing_group table</li>
  </ul>
  
  <p>Have you got an idea of debug tests I could run to understand more about this error ? I know, I definitely need to read the server logs, but I don't have access.</p>
  
  <p>Thanks for your help.</p>
  
  <p>Philippe</p>
  
Tags: <drupal><error><4.7><ajax>
Title: After upgrade to 4.7.13, I get 500 Internal Server Error when creating new mailing
ThreadText: # After upgrade to 4.7.13, I get 500 Internal Server Error when creating new mailing
  
  (Asked by: username_0 on 2016-11-17)
  
  After upgrading from 4.7.11 to 4.7.13 (with Drupal 7.51), I get à 500 error (Internal Server Error) on an ajax call when attempting to create a new mailing. The screen stucks at "Initializing..."
  
  * The message in the console is : GET XHR
    <http://dev.lists.sciences-po.fr/fr/civicrm/ajax/rest> [HTTP/1.1 500
    Internal Server Error 381 ms]
  * Parameters are : action=get&entity=MailingGroup&json={"mailing\_id":"6"}
  * There are some similar ajax call before
    and after the faulty one, without any problem.
  * There are no javascript error except this one.
  * There are no group in the civicrm\_mailing\_group table
  
  Have you got an idea of debug tests I could run to understand more about this error ? I know, I definitely need to read the server logs, but I don't have access.
  
  Thanks for your help.
  
  username_0
  
  **Tags:** drupal, error, 4.7, ajax
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-11-18. Score: 2
  
  After investigations :
  
  * The issue is due to i18n : if multilingual is on, then the bug raises. When it's off, there are no bug.
  * CRM\_Core\_DAO\_AllCoreTables::registerEntityType returns only table names without language code. In my case, the function returns civicrm\_group instead of civicrm\_group\_fr\_FR. Then, the function CRM\_Core\_DAO\_AllCoreTables::getClassForTable($table) returns nothing, which ends with the following error : PHP Fatal error: Class name must be a valid object or a string in /store/www/dev.lists.sciences-po.fr/html/sites/all/modules/civicrm/CRM/Utils/SQL.php on line 53
  
  Guess some hook in the i18n module is missing or not working properly.
  
  
  ---
  
  