CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Autocomplete js error on upgrade to 4.5.0
Pages: [1]

Author Topic: Autocomplete js error on upgrade to 4.5.0  (Read 635 times)

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Autocomplete js error on upgrade to 4.5.0
October 03, 2014, 12:42:49 am
When using a contact "autocomplete" field (like Current Employer), it simply doesn't work.

Did not notice this problem in 4.5beta but seeing these errors:

Code: [Select]
TypeError: tplURL is undefined crm.ajax.js:25
"Warning: CRM.url called before initialization" crm.ajax.js:18
TypeError: tplURL is undefined crm.ajax.js:25
"Warning: CRM.url called before initialization" crm.ajax.js:18

I have done the following:
* cleared templates_c
* cleared browser cache
* switched themes

Still not fixed.  Any ideas?

Try CiviTeacher: the online video tutorial CiviCRM learning library.

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Autocomplete js error on upgrade to 4.5.0
October 03, 2014, 01:52:45 am
Hey Stuart,

There are quite a few posts on this problem.

I think the Image Upload URL gets badly configured post upgrade. I fixed by correcting that field - might want to try that.

I think it gets confused with multisites and non apache servers, etc.
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Autocomplete js error on upgrade to 4.5.0
October 06, 2014, 01:32:39 am
Thanks, but sorry, but I did an earlier google search as well as a forum search and found no other posts on this specific issue.  After your reply I then found this post under "help screens" which was not my symptom.  Now that I look, I have this problem as well, so I will post in that thread.

I checked the Image Uploads URL as it is listed in System Settings > Resource URLs and it appears well formed and working properly.   I am on an Apache server.

The symptom of this issue is attached.
« Last Edit: October 06, 2014, 01:46:45 am by CiviTeacher.com »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Autocomplete js error on upgrade to 4.5.0
October 06, 2014, 10:56:20 am
FYI due to the large number of posts from people suffering major javascript failures due to incorrect url settings, we are switching core javascript to no longer rely on those settings on 4.5.1 (scheduled for this week) - this should make people's upgrade experiences smoother, although getting those settings correct is still a good idea.
Try asking your question on the new CiviCRM help site.

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Autocomplete js error on upgrade to 4.5.0
October 06, 2014, 04:31:13 pm
Did I make it clear that the URL settings were not the problem on my install?  menu/rebuild solved my issue.  The URL were correct and needed no adjustment.
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Autocomplete js error on upgrade to 4.5.0
October 06, 2014, 04:37:50 pm
Good to know. I've also added menu rebuild to our upgrade script.
Try asking your question on the new CiviCRM help site.

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Autocomplete js error on upgrade to 4.5.0
October 06, 2014, 04:41:18 pm
Great idea.  thanks.
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Autocomplete js error on upgrade to 4.5.0

This forum was archived on 2017-11-26.