Answers.Body: <p>What stands out to me in your error report is the word "undefined" in <code>http://ourwebsite.org/civicrm/contact/</code><strong>undefined</strong><code>js/jquery/jquery.crmAjaxTable.js</code>. I think your resource url setting may have been messed up. Check <strong>Administer -> System Settings -> Resource URLs</strong>.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-29T01:45:09.297Z
Answers.Text: The CiviCRM Resource URL is `[civicrm.root]/`.
Answers.UserDisplayName: alec
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-29T01:50:49.773Z
Answers.Text: I don't know what that token is for though.  The CIviCRM module is located in sites/all/modules/civicrm... is that what that token is referring to?  I assume it's not referring to the Drupal root...?  I'm looking into replacing that token with a hardcoded value to see if that makes a difference...
Answers.UserDisplayName: alec
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-29T01:59:55.360Z
Answers.Text: I followed the check at https://docs.civicrm.org/user/en/latest/initial-set-up/resource-urls/ (finding the civicrm.css file when viewing the source and then loading it in the browser, the browser can load it)... so seemingly it's *not* a problem in the Resource Urls...?
Answers.UserDisplayName: alec
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-29T02:01:00.060Z
Answers.Text: But yeah, **undefined** stands out, right?  More undefined in here: `<div class="menu-item"><span>Customize Data and Screens</span><img class="menu-item-arrow" src="undefinedpackages/jquery/css/images/arrow.png" style="top: 4px;"></div>`
Answers.UserDisplayName: alec
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-29T02:02:59.593Z
Answers.Text: Looks like for some reason `CRM.config.resourceBase` is undefined.
Answers.UserDisplayName: Coleman
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-29T02:05:52.250Z
Answers.Text: I'm not familiar with `CRM.config.resourceBase`...
Answers.UserDisplayName: alec
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-29T02:06:33.757Z
Answers.Text: And that comes from `userFrameworkResourceURL` setting.
Answers.UserDisplayName: Coleman
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-29T02:07:04.883Z
Answers.Text: Did you try the hardcoded value?
Answers.UserDisplayName: Coleman
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-29T02:13:56.590Z
Answers.Text: I did, the full url `http...modules/civicrm`, cleaned cache, still didn't work.  Then I tried on the cache page the Reset Paths button, and it didn't work either, just replaced the hardcoded value with the original token.
Answers.UserDisplayName: alec
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-29T01:40:42.330Z
Answers.LastActivityDate: 2018-08-29T01:40:42.330Z
Answers.UserDisplayName: Coleman
Body: <p>Thanks for the help in solving the problem!  Nice to have all the ajax working properly again.</p>
  
  <p>Regarding the title of the question.... It seems like there's a (large?) gap between the errors I encountered and the solution for them.  I'm wondering what I could have done to troubleshoot more...? maybe if I had gone to a non-english page I would have encountered different errors...?  Is there anything that can be recommended regarding how I could've troubleshooted this more effectively?  This issue seems completely mysterious to me, so while "go ask the friendly people online" can yield easy solutions sometimes as it did this time, I'd like to learn something a little deeper here if possible :)</p>
  
  <hr>
  
  <p>After updating to 5.4.1 Contact pages are behaving oddly...</p>
  
  <ul>
  <li>Activities don't show up at all until a filter is toggled (for example, there are 10 activities it says, but it displays none of them, but then changing the filters to exclude any type of activity will cause all 10 of the activities to appear).</li>
  <li>Relationships don't show up at all (and they don't have any ajaxy toggle thing to magically make them appear).</li>
  </ul>
  
  <p>In the browser's debugging console I see </p>
  
  <ul>
  <li><code>Uncaught SyntaxError: Unexpected token &lt;</code></li>
  <li><code>Refused to execute script from 'http://ourwebsite.org/civicrm/contact/undefinedjs/jquery/jquery.crmAjaxTable.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.</code></li>
  </ul>
  
  <p>When Civi cache is flushed at /civicrm/admin/setting/updateConfigBackend a fatal error occurs followed by a backtrace.  They mention 'ajax' a number of times (and that's all that stands out to me as meaningful.  it says "DB Error: No such field" too, but I have no idea what field doesn't exist so maybe these errors are unrelated?)...</p>
  
  <pre><code>ID         :  6869
  Date       :  28/Aug 19:48
  Type       :  civicrm
  Severity   :  debug
  Message    :
                $Fatal Error Details = array(3) {
                  ["message"]=&gt;
                  string(23) "DB Error: no such field"
                  ["code"]=&gt;
                  NULL
                  ["exception"]=&gt;
                  object(CiviCRM_API3_Exception)#181 (8) {
                    ["extraParams":"CiviCRM_API3_Exception":private]=&gt;
                    array(4) {
                      ["error_code"]=&gt;
                      string(13) "no such field"
                      ["tip"]=&gt;
                      string(62) "add debug=1 to your API call to have more info about the error"
                      ["is_error"]=&gt;
                      int(1)
                      ["error_message"]=&gt;
                      string(23) "DB Error: no such field"
                    }
                    ["message":protected]=&gt;
                    string(23) "DB Error: no such field"
                    ["string":"Exception":private]=&gt;
                    string(0) ""
                    ["code":protected]=&gt;
                    int(0)
                    ["file":protected]=&gt;
                    string(65)
                "/home/milk/dev_html/docroot/sites/all/modules/civicrm/api/api.php"
                    ["line":protected]=&gt;
                    int(45)
                    ["trace":"Exception":private]=&gt;
                    array(10) {
                      [0]=&gt;
                      array(4) {
                        ["file"]=&gt;
                        string(78)
                "/home/milk/dev_html/docroot/sites/all/modules/civicrm/CRM/Core/BAO/UFGroup.php"
                        ["line"]=&gt;
                        int(3340)
                        ["function"]=&gt;
                        string(12) "civicrm_api3"
                        ["args"]=&gt;
                        array(3) {
                          [0]=&gt;
                          &amp;string(8) "uf_group"
                          [1]=&gt;
                          &amp;string(3) "get"
                          [2]=&gt;
                          &amp;array(2) {
                            ["name"]=&gt;
                            array(1) {
                              ["IN"]=&gt;
                              array(3) {
                                [0]=&gt;
                                string(14) "new_individual"
                                [1]=&gt;
                                string(16) "new_organization"
                                [2]=&gt;
                                string(13) "new_household"
                              }
                            }
                            ["is_active"]=&gt;
                            int(1)
                          }
                        }
                      }
                      [1]=&gt;
                      array(6) {
                        ["file"]=&gt;
                        string(76)
                "/home/milk/dev_html/docroot/sites/all/modules/civicrm/CRM/Core/Resources.php"
                        ["line"]=&gt;
                        int(689)
                        ["function"]=&gt;
                        string(14) "getCreateLinks"
                        ["class"]=&gt;
                        string(20) "CRM_Core_BAO_UFGroup"
                        ["type"]=&gt;
                        string(2) "::"
                        ["args"]=&gt;
                        array(0) {
                        }
                      }
                      [2]=&gt;
                      array(4) {
                        ["function"]=&gt;
                        string(20) "outputLocalizationJS"
                        ["class"]=&gt;
                        string(18) "CRM_Core_Resources"
                        ["type"]=&gt;
                        string(2) "::"
                        ["args"]=&gt;
                        array(0) {
                        }
                      }
                      [3]=&gt;
                      array(4) {
                        ["file"]=&gt;
                        string(73)
                "/home/milk/dev_html/docroot/sites/all/modules/civicrm/CRM/Core/Invoke.php"
                        ["line"]=&gt;
                        int(275)
                        ["function"]=&gt;
                        string(14) "call_user_func"
                        ["args"]=&gt;
                        array(1) {
                          [0]=&gt;
                          &amp;array(2) {
                            [0]=&gt;
                            string(18) "CRM_Core_Resources"
                            [1]=&gt;
                            string(20) "outputLocalizationJS"
                          }
                        }
                      }
                      [4]=&gt;
                      array(6) {
                        ["file"]=&gt;
                        string(73)
                "/home/milk/dev_html/docroot/sites/all/modules/civicrm/CRM/Core/Invoke.php"
                        ["line"]=&gt;
                        int(84)
                        ["function"]=&gt;
                        string(7) "runItem"
                        ["class"]=&gt;
                        string(15) "CRM_Core_Invoke"
                        ["type"]=&gt;
                        string(2) "::"
                        ["args"]=&gt;
                        array(1) {
                          [0]=&gt;
                          &amp;array(12) {
                            ["id"]=&gt;
                            string(3) "149"
                            ["domain_id"]=&gt;
                            string(1) "1"
                            ["path"]=&gt;
                            string(20) "civicrm/ajax/l10n-js"
                            ["access_callback"]=&gt;
                            string(1) "1"
                            ["access_arguments"]=&gt;
                            array(2) {
                              [0]=&gt;
                              array(1) {
                                [0]=&gt;
                                string(14) "access CiviCRM"
                              }
                              [1]=&gt;
                              string(3) "and"
                            }
                            ["page_callback"]=&gt;
                            array(2) {
                              [0]=&gt;
                              string(18) "CRM_Core_Resources"
                              [1]=&gt;
                              string(20) "outputLocalizationJS"
                            }
                            ["breadcrumb"]=&gt;
                            array(1) {
                              [0]=&gt;
                              array(2) {
                                ["title"]=&gt;
                                string(7) "CiviCRM"
                                ["url"]=&gt;
                                string(16) "/civicrm?reset=1"
                              }
                            }
                            ["is_ssl"]=&gt;
                            string(1) "0"
                            ["weight"]=&gt;
                            string(1) "1"
                            ["type"]=&gt;
                            string(1) "1"
                            ["page_type"]=&gt;
                            string(1) "0"
                            ["page_arguments"]=&gt;
                            bool(false)
                          }
                        }
                      }
                      [5]=&gt;
                      array(6) {
                        ["file"]=&gt;
                        string(73)
                "/home/milk/dev_html/docroot/sites/all/modules/civicrm/CRM/Core/Invoke.php"
                        ["line"]=&gt;
                        int(52)
                        ["function"]=&gt;
                        string(7) "_invoke"
                        ["class"]=&gt;
                        string(15) "CRM_Core_Invoke"
                        ["type"]=&gt;
                        string(2) "::"
                        ["args"]=&gt;
                        array(1) {
                          [0]=&gt;
                          &amp;array(4) {
                            [0]=&gt;
                            string(7) "civicrm"
                            [1]=&gt;
                            string(4) "ajax"
                            [2]=&gt;
                            string(7) "l10n-js"
                            [3]=&gt;
                            string(5) "en_US"
                          }
                        }
                      }
                      [6]=&gt;
                      array(6) {
                        ["file"]=&gt;
                        string(75)
                "/home/milk/dev_html/docroot/sites/all/modules/civicrm/drupal/civicrm.module"
                        ["line"]=&gt;
                        int(445)
                        ["function"]=&gt;
                        string(6) "invoke"
                        ["class"]=&gt;
                        string(15) "CRM_Core_Invoke"
                        ["type"]=&gt;
                        string(2) "::"
                        ["args"]=&gt;
                        array(1) {
                          [0]=&gt;
                          &amp;array(4) {
                            [0]=&gt;
                            string(7) "civicrm"
                            [1]=&gt;
                            string(4) "ajax"
                            [2]=&gt;
                            string(7) "l10n-js"
                            [3]=&gt;
                            string(5) "en_US"
                          }
                        }
                      }
                      [7]=&gt;
                      array(2) {
                        ["function"]=&gt;
                        string(14) "civicrm_invoke"
                        ["args"]=&gt;
                        array(3) {
                          [0]=&gt;
                          &amp;string(4) "ajax"
                          [1]=&gt;
                          &amp;string(7) "l10n-js"
                          [2]=&gt;
                          &amp;string(5) "en_US"
                        }
                      }
                      [8]=&gt;
                      array(4) {
                        ["file"]=&gt;
                        string(45) "/home/milk/dev_html/docroot/includes/menu.inc"
                        ["line"]=&gt;
                        int(527)
                        ["function"]=&gt;
                        string(20) "call_user_func_array"
                        ["args"]=&gt;
                        array(2) {
                          [0]=&gt;
                          &amp;string(14) "civicrm_invoke"
                          [1]=&gt;
                          &amp;array(3) {
                            [0]=&gt;
                            string(4) "ajax"
                            [1]=&gt;
                            string(7) "l10n-js"
                            [2]=&gt;
                            string(5) "en_US"
                          }
                        }
                      }
                      [9]=&gt;
                      array(4) {
                        ["file"]=&gt;
                        string(37) "/home/milk/dev_html/docroot/index.php"
                        ["line"]=&gt;
                        int(21)
                        ["function"]=&gt;
                        string(27) "menu_execute_active_handler"
                        ["args"]=&gt;
                        array(0) {
                        }
                      }
                    }
                    ["previous":"Exception":private]=&gt;
                    NULL
                  }
                }
  </code></pre>
  
  <p>and the backtrace that followed:</p>
  
  <pre><code>ID         :  6870                                                                              
  Date       :  28/Aug 19:48                                                                      
  Type       :  civicrm                                                                           
  Severity   :  debug                                                                             
  Message    :  $backTrace = #0                                                                   
                /home/milk/dev_html/docroot/sites/all/modules/civicrm/CRM/Core/Error.php(459):    
                CRM_Core_Error::backtrace("backTrace", TRUE)                                      
                #1 /home/milk/dev_html/docroot/sites/all/modules/civicrm/CRM/Core/Invoke.php(55): 
                CRM_Core_Error::handleUnhandledException(Object(CiviCRM_API3_Exception))          
                #2                                                                                
                /home/milk/dev_html/docroot/sites/all/modules/civicrm/drupal/civicrm.module(445): 
                CRM_Core_Invoke::invoke((Array:4))                                                
                #3 [internal function](): civicrm_invoke("ajax", "l10n-js", "en_US")              
                #4 /home/milk/dev_html/docroot/includes/menu.inc(527):                            
                call_user_func_array("civicrm_invoke", (Array:3))                                 
                #5 /home/milk/dev_html/docroot/index.php(21): menu_execute_active_handler()       
                #6 {main}                                                                         
  </code></pre>
  
  <p>I don't know if those Drupal log entries are related to this problem, but I do suspect the javascript errors are...</p>
  
  <p>Could the problem lie in jquery.crmAjaxTable.js?  Doing <code>chmod +x jquery.crmAjaxTable.js</code> doesn't solve that.</p>
  
  <p>But now after clearing the cache again have a couple more js errors, in addition to the two above are these:</p>
  
  <ul>
  <li><code>Error: CRM.url called before initialization
  CRM.console @ Common.js?pe6q8l:1605
  CRM.url @ crm.ajax.js?pe6q8l:19
  crmFormInline @ Summary.js?pe6q8l:23
  (anonymous) @ Summary.js?pe6q8l:201
  dispatch @ jquery.min.js?pe6q8l:3
  r.handle @ jquery.min.js?pe6q8l:3</code></li>
  <li><code>crm.ajax.js?pe6q8l:26 Uncaught TypeError: Cannot read property 'back' of undefined
  at Object.CRM.url (crm.ajax.js?pe6q8l:26)
  at crmFormInline (Summary.js?pe6q8l:23)
  at HTMLDivElement.&lt;anonymous&gt; (Summary.js?pe6q8l:201)
  at HTMLDivElement.dispatch (jquery.min.js?pe6q8l:3)
  at HTMLDivElement.r.handle (jquery.min.js?pe6q8l:3)
  CRM.url @ crm.ajax.js?pe6q8l:26
  crmFormInline @ Summary.js?pe6q8l:23
  (anonymous) @ Summary.js?pe6q8l:201
  dispatch @ jquery.min.js?pe6q8l:3
  r.handle @ jquery.min.js?pe6q8l:3</code></li>
  </ul>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-08-29T01:33:08.013Z
Comments.Text: It looks like the upgrade script did not run successfully - did it give any errors? Do you have a multilingual site? Is audit logging turned on?
Comments.UserDisplayName: user4278
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-08-29T01:37:57.217Z
Comments.Text: I don't recall any errors from the upgrade script.  The site is multilingual (Drupal+i18n).  What do you mean by "audit" logging?
Comments.UserDisplayName: alec
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-08-29T04:00:50.387Z
Comments.Text: well what we normally call logging - creates log tables. Try running the api
  
  System.rebuildmultilingualschema
Comments.UserDisplayName: user4278
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-08-31T22:26:32.977Z
Comments.Text: Check the answers to this issue. Sounds similar https://civicrm.stackexchange.com/q/25888/4519
Comments.UserDisplayName: ericG
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-09-01T03:03:52.460Z
Comments.Text: yes! `cv api System.rebuildmultilingualschema` and cache flush and it's now working properly.  Thanks @user4278 and @ericG!
Comments.UserDisplayName: alec
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-09-01T03:55:29.493Z
Comments.Text: Post that as the answer. Glad it worked
Comments.UserDisplayName: ericG
Tags: <ajax><i18n><multilingual>
Title: how to troubleshoot template/ajax/caching/otherweirdness issue re: multilingual upgrade
ThreadText: # how to troubleshoot template/ajax/caching/otherweirdness issue re: multilingual upgrade
  
  (Asked by: username_0 on 2018-08-29)
  
  Thanks for the help in solving the problem!  Nice to have all the ajax working properly again.
  Regarding the title of the question.... It seems like there's a (large?) gap between the errors I encountered and the solution for them.  I'm wondering what I could have done to troubleshoot more...? maybe if I had gone to a non-english page I would have encountered different errors...?  Is there anything that can be recommended regarding how I could've troubleshooted this more effectively?  This issue seems completely mysterious to me, so while "go ask the friendly people online" can yield easy solutions sometimes as it did this time, I'd like to learn something a little deeper here if possible :)
  
  After updating to 5.4.1 Contact pages are behaving oddly...
  
  Activities don't show up at all until a filter is toggled (for example, there are 10 activities it says, but it displays none of them, but then changing the filters to exclude any type of activity will cause all 10 of the activities to appear).
  Relationships don't show up at all (and they don't have any ajaxy toggle thing to magically make them appear).
  
  In the browser's debugging console I see 
  
  Uncaught SyntaxError: Unexpected token <
  Refused to execute script from 'http://ourwebsite.org/civicrm/contact/undefinedjs/jquery/jquery.crmAjaxTable.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
  
  When Civi cache is flushed at /civicrm/admin/setting/updateConfigBackend a fatal error occurs followed by a backtrace.  They mention 'ajax' a number of times (and that's all that stands out to me as meaningful.  it says "DB Error: No such field" too, but I have no idea what field doesn't exist so maybe these errors are unrelated?)...
  ID         :  6869
  Date       :  28/Aug 19:48
  Type       :  civicrm
  Severity   :  debug
  Message    :
                $Fatal Error Details = array(3) {
                  ["message"]=>
                  string(23) "DB Error: no such field"
                  ["code"]=>
                  NULL
                  ["exception"]=>
                  object(CiviCRM_API3_Exception)#181 (8) {
                    ["extraParams":"CiviCRM_API3_Exception":private]=>
                    array(4) {
                      ["error_code"]=>
                      string(13) "no such field"
                      ["tip"]=>
                      string(62) "add debug=1 to your API call to have more info about the error"
                      ["is_error"]=>
                      int(1)
                      ["error_message"]=>
                      string(23) "DB Error: no such field"
                    }
                    ["message":protected]=>
                    string(23) "DB Error: no such field"
                    ["string":"Exception":private]=>
                    string(0) ""
                    ["code":protected]=>
                    int(0)
                    ["file":protected]=>
                    string(65)
                "/home/milk/dev_html/docroot/sites/all/modules/civicrm/api/api.php"
                    ["line":protected]=>
                    int(45)
                    ["trace":"Exception":private]=>
                    array(10) {
                      [0]=>
                      array(4) {
                        ["file"]=>
                        string(78)
                "/home/milk/dev_html/docroot/sites/all/modules/civicrm/CRM/Core/BAO/UFGroup.php"
                        ["line"]=>
                        int(3340)
                        ["function"]=>
                        string(12) "civicrm_api3"
                        ["args"]=>
                        array(3) {
                          [0]=>
                          &string(8) "uf_group"
                          [1]=>
                          &string(3) "get"
                          [2]=>
                          &array(2) {
                            ["name"]=>
                            array(1) {
                              ["IN"]=>
                              array(3) {
                                [0]=>
                                string(14) "new_individual"
                                [1]=>
                                string(16) "new_organization"
                                [2]=>
                                string(13) "new_household"
                              }
                            }
                            ["is_active"]=>
                            int(1)
                          }
                        }
                      }
                      [1]=>
                      array(6) {
                        ["file"]=>
                        string(76)
                "/home/milk/dev_html/docroot/sites/all/modules/civicrm/CRM/Core/Resources.php"
                        ["line"]=>
                        int(689)
                        ["function"]=>
                        string(14) "getCreateLinks"
                        ["class"]=>
                        string(20) "CRM_Core_BAO_UFGroup"
                        ["type"]=>
                        string(2) "::"
                        ["args"]=>
                        array(0) {
                        }
                      }
                      [2]=>
                      array(4) {
                        ["function"]=>
                        string(20) "outputLocalizationJS"
                        ["class"]=>
                        string(18) "CRM_Core_Resources"
                        ["type"]=>
                        string(2) "::"
                        ["args"]=>
                        array(0) {
                        }
                      }
                      [3]=>
                      array(4) {
                        ["file"]=>
                        string(73)
                "/home/milk/dev_html/docroot/sites/all/modules/civicrm/CRM/Core/Invoke.php"
                        ["line"]=>
                        int(275)
                        ["function"]=>
                        string(14) "call_user_func"
                        ["args"]=>
                        array(1) {
                          [0]=>
                          &array(2) {
                            [0]=>
                            string(18) "CRM_Core_Resources"
                            [1]=>
                            string(20) "outputLocalizationJS"
                          }
                        }
                      }
                      [4]=>
                      array(6) {
                        ["file"]=>
                        string(73)
                "/home/milk/dev_html/docroot/sites/all/modules/civicrm/CRM/Core/Invoke.php"
                        ["line"]=>
                        int(84)
                        ["function"]=>
                        string(7) "runItem"
                        ["class"]=>
                        string(15) "CRM_Core_Invoke"
                        ["type"]=>
                        string(2) "::"
                        ["args"]=>
                        array(1) {
                          [0]=>
                          &array(12) {
                            ["id"]=>
                            string(3) "149"
                            ["domain_id"]=>
                            string(1) "1"
                            ["path"]=>
                            string(20) "civicrm/ajax/l10n-js"
                            ["access_callback"]=>
                            string(1) "1"
                            ["access_arguments"]=>
                            array(2) {
                              [0]=>
                              array(1) {
                                [0]=>
                                string(14) "access CiviCRM"
                              }
                              [1]=>
                              string(3) "and"
                            }
                            ["page_callback"]=>
                            array(2) {
                              [0]=>
                              string(18) "CRM_Core_Resources"
                              [1]=>
                              string(20) "outputLocalizationJS"
                            }
                            ["breadcrumb"]=>
                            array(1) {
                              [0]=>
                              array(2) {
                                ["title"]=>
                                string(7) "CiviCRM"
                                ["url"]=>
                                string(16) "/civicrm?reset=1"
                              }
                            }
                            ["is_ssl"]=>
                            string(1) "0"
                            ["weight"]=>
                            string(1) "1"
                            ["type"]=>
                            string(1) "1"
                            ["page_type"]=>
                            string(1) "0"
                            ["page_arguments"]=>
                            bool(false)
                          }
                        }
                      }
                      [5]=>
                      array(6) {
                        ["file"]=>
                        string(73)
                "/home/milk/dev_html/docroot/sites/all/modules/civicrm/CRM/Core/Invoke.php"
                        ["line"]=>
                        int(52)
                        ["function"]=>
                        string(7) "_invoke"
                        ["class"]=>
                        string(15) "CRM_Core_Invoke"
                        ["type"]=>
                        string(2) "::"
                        ["args"]=>
                        array(1) {
                          [0]=>
                          &array(4) {
                            [0]=>
                            string(7) "civicrm"
                            [1]=>
                            string(4) "ajax"
                            [2]=>
                            string(7) "l10n-js"
                            [3]=>
                            string(5) "en_US"
                          }
                        }
                      }
                      [6]=>
                      array(6) {
                        ["file"]=>
                        string(75)
                "/home/milk/dev_html/docroot/sites/all/modules/civicrm/drupal/civicrm.module"
                        ["line"]=>
                        int(445)
                        ["function"]=>
                        string(6) "invoke"
                        ["class"]=>
                        string(15) "CRM_Core_Invoke"
                        ["type"]=>
                        string(2) "::"
                        ["args"]=>
                        array(1) {
                          [0]=>
                          &array(4) {
                            [0]=>
                            string(7) "civicrm"
                            [1]=>
                            string(4) "ajax"
                            [2]=>
                            string(7) "l10n-js"
                            [3]=>
                            string(5) "en_US"
                          }
                        }
                      }
                      [7]=>
                      array(2) {
                        ["function"]=>
                        string(14) "civicrm_invoke"
                        ["args"]=>
                        array(3) {
                          [0]=>
                          &string(4) "ajax"
                          [1]=>
                          &string(7) "l10n-js"
                          [2]=>
                          &string(5) "en_US"
                        }
                      }
                      [8]=>
                      array(4) {
                        ["file"]=>
                        string(45) "/home/milk/dev_html/docroot/includes/menu.inc"
                        ["line"]=>
                        int(527)
                        ["function"]=>
                        string(20) "call_user_func_array"
                        ["args"]=>
                        array(2) {
                          [0]=>
                          &string(14) "civicrm_invoke"
                          [1]=>
                          &array(3) {
                            [0]=>
                            string(4) "ajax"
                            [1]=>
                            string(7) "l10n-js"
                            [2]=>
                            string(5) "en_US"
                          }
                        }
                      }
                      [9]=>
                      array(4) {
                        ["file"]=>
                        string(37) "/home/milk/dev_html/docroot/index.php"
                        ["line"]=>
                        int(21)
                        ["function"]=>
                        string(27) "menu_execute_active_handler"
                        ["args"]=>
                        array(0) {
                        }
                      }
                    }
                    ["previous":"Exception":private]=>
                    NULL
                  }
                }
  
  and the backtrace that followed:
  ID         :  6870                                                                              
  Date       :  28/Aug 19:48                                                                      
  Type       :  civicrm                                                                           
  Severity   :  debug                                                                             
  Message    :  $backTrace = #0                                                                   
                /home/milk/dev_html/docroot/sites/all/modules/civicrm/CRM/Core/Error.php(459):    
                CRM_Core_Error::backtrace("backTrace", TRUE)                                      
                #1 /home/milk/dev_html/docroot/sites/all/modules/civicrm/CRM/Core/Invoke.php(55): 
                CRM_Core_Error::handleUnhandledException(Object(CiviCRM_API3_Exception))          
                #2                                                                                
                /home/milk/dev_html/docroot/sites/all/modules/civicrm/drupal/civicrm.module(445): 
                CRM_Core_Invoke::invoke((Array:4))                                                
                #3 [internal function](): civicrm_invoke("ajax", "l10n-js", "en_US")              
                #4 /home/milk/dev_html/docroot/includes/menu.inc(527):                            
                call_user_func_array("civicrm_invoke", (Array:3))                                 
                #5 /home/milk/dev_html/docroot/index.php(21): menu_execute_active_handler()       
                #6 {main}                                                                         
  
  I don't know if those Drupal log entries are related to this problem, but I do suspect the javascript errors are...
  Could the problem lie in jquery.crmAjaxTable.js?  Doing chmod +x jquery.crmAjaxTable.js doesn't solve that.
  But now after clearing the cache again have a couple more js errors, in addition to the two above are these:
  
  Error: CRM.url called before initialization
  CRM.console @ Common.js?pe6q8l:1605
  CRM.url @ crm.ajax.js?pe6q8l:19
  crmFormInline @ Summary.js?pe6q8l:23
  (anonymous) @ Summary.js?pe6q8l:201
  dispatch @ jquery.min.js?pe6q8l:3
  r.handle @ jquery.min.js?pe6q8l:3
  crm.ajax.js?pe6q8l:26 Uncaught TypeError: Cannot read property 'back' of undefined
  at Object.CRM.url (crm.ajax.js?pe6q8l:26)
  at crmFormInline (Summary.js?pe6q8l:23)
  at HTMLDivElement. (Summary.js?pe6q8l:201)
  at HTMLDivElement.dispatch (jquery.min.js?pe6q8l:3)
  at HTMLDivElement.r.handle (jquery.min.js?pe6q8l:3)
  CRM.url @ crm.ajax.js?pe6q8l:26
  crmFormInline @ Summary.js?pe6q8l:23
  (anonymous) @ Summary.js?pe6q8l:201
  dispatch @ jquery.min.js?pe6q8l:3
  r.handle @ jquery.min.js?pe6q8l:3
  
  **Tags:** ajax, i18n, multilingual
  
  > **Comments:**
  > **username_1**: It looks like the upgrade script did not run successfully - did it give any errors? Do you have a multilingual site? Is audit logging turned on?  
  > **username_0**: I don't recall any errors from the upgrade script.  The site is multilingual (Drupal+i18n).  What do you mean by "audit" logging?  
  > **username_1**: well what we normally call logging - creates log tables. Try running the api  System.rebuildmultilingualschema  
  > **username_2**: Check the answers to this issue. Sounds similar https://civicrm.stackexchange.com/q/25888/4519  
  > **username_0**: yes! `cv api System.rebuildmultilingualschema` and cache flush and it's now working properly.  Thanks @username_1 and @username_2!  
  > **username_2**: Post that as the answer. Glad it worked  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2018-08-29. Score: 0
  
  What stands out to me in your error report is the word "undefined" in `http://ourwebsite.org/civicrm/contact/`**undefined**`js/jquery/jquery.crmAjaxTable.js`. I think your resource url setting may have been messed up. Check **Administer -> System Settings -> Resource URLs**.
  
  > **Comments:**
  > **username_0**: The CiviCRM Resource URL is `[civicrm.root]/`.  
  > **username_0**: I don't know what that token is for though.  The CIviCRM module is located in sites/all/modules/civicrm... is that what that token is referring to?  I assume it's not referring to the Drupal root...?  I'm looking into replacing that token with a hardcoded value to see if that makes a difference...  
  > **username_0**: I followed the check at https://docs.civicrm.org/user/en/latest/initial-set-up/resource-urls/ (finding the civicrm.css file when viewing the source and then loading it in the browser, the browser can load it)... so seemingly it's *not* a problem in the Resource Urls...?  
  > **username_0**: But yeah, **undefined** stands out, right?  More undefined in here: `<div class="menu-item"><span>Customize Data and Screens</span><img class="menu-item-arrow" src="undefinedpackages/jquery/css/images/arrow.png" style="top: 4px;"></div>`  
  > **username_3**: Looks like for some reason `CRM.config.resourceBase` is undefined.  
  > **username_0**: I'm not familiar with `CRM.config.resourceBase`...  
  > **username_3**: And that comes from `userFrameworkResourceURL` setting.  
  > **username_3**: Did you try the hardcoded value?  
  > **username_0**: I did, the full url `http...modules/civicrm`, cleaned cache, still didn't work.  Then I tried on the cache page the Reset Paths button, and it didn't work either, just replaced the hardcoded value with the original token.  
  
  ---
  
  