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) »
  • Drupal/4.5: CRM.config.resourceBase is Undefined
Pages: 1 [2]

Author Topic: Drupal/4.5: CRM.config.resourceBase is Undefined  (Read 2706 times)

Lazlo Bakk

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
    • Okoshonlapok
  • CiviCRM version: 4.5.5
  • CMS version: Joomla, Drupal
  • MySQL version: 5.5
  • PHP version: 4.4
Re: Drupal/4.5: CRM.config.resourceBase is Undefined
November 08, 2014, 06:36:29 am
I can see the source, but the referenced js file begins with the following:
Code: [Select]
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/biokshu1/public_html/administrator/components/com_civicrm/civicrm/CRM/Contact/BAO/ContactType.php</b> on line <b>142</b><br />
 // http://civicrm.org/licensing
// <script> Generated 08 Nov 2014 07:24:06
The JS console in Firefox displays it as a syntax error.

The find contacts page begins with the same error message 15 times:
Code: [Select]
Warning: Invalid argument supplied for foreach() in /home/biokshu1/public_html/administrator/components/com_civicrm/civicrm/CRM/Contact/BAO/ContactType.php on line 142At localhost I don't have these problems, only after migration.
« Last Edit: November 08, 2014, 06:47:10 am by Razide »

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Drupal/4.5: CRM.config.resourceBase is Undefined
November 08, 2014, 10:02:31 am
Ok this sounds like a minor bug in CiviCRM which we can and will address.
However I also think your php.ini settings are incorrect - these error messages should not be output on the page, especially not on a production server. Change your php settings to suppress errors and warnings, and your js problems will go away.
Try asking your question on the new CiviCRM help site.

Lazlo Bakk

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
    • Okoshonlapok
  • CiviCRM version: 4.5.5
  • CMS version: Joomla, Drupal
  • MySQL version: 5.5
  • PHP version: 4.4
Re: Drupal/4.5: CRM.config.resourceBase is Undefined
November 08, 2014, 11:45:53 am
I'm glad to hear this. Please let me know in this topic when the bugfix is ready.
Well, the server is a shared hosting, my client insisted to use this noob hosting. I won't make this mistake again, I have the perfect hosting that runs CiviCRM without any problems on several websites I manage.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Drupal/4.5: CRM.config.resourceBase is Undefined
November 08, 2014, 11:58:36 am
To clarify - this is something you need to address in your php.ini settings. We can fix this one notice, but can't possibly prevent every little notice and warning that php logs - it's up to you to make sure they are going to a log file rather than being output to the screen.
Try asking your question on the new CiviCRM help site.

Lazlo Bakk

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
    • Okoshonlapok
  • CiviCRM version: 4.5.5
  • CMS version: Joomla, Drupal
  • MySQL version: 5.5
  • PHP version: 4.4
Re: Drupal/4.5: CRM.config.resourceBase is Undefined
November 13, 2014, 12:51:21 pm
Well, after setting the display_errors value to off and after cleaning the cache, the weird js messages were gone and the arrows of the administration menu were appeared. But the site still have serious js errors as you can see the attached pictures.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Drupal/4.5: CRM.config.resourceBase is Undefined
November 13, 2014, 07:23:50 pm
I can see symptoms of errors in those screenshots, but it would be more helpful if you could show the actual errors that are in your browser's console.
Try asking your question on the new CiviCRM help site.

Lazlo Bakk

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
    • Okoshonlapok
  • CiviCRM version: 4.5.5
  • CMS version: Joomla, Drupal
  • MySQL version: 5.5
  • PHP version: 4.4
Re: Drupal/4.5: CRM.config.resourceBase is Undefined
November 13, 2014, 10:31:54 pm
Console in Firefox and Chrome shows no errors.

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Drupal/4.5: CRM.config.resourceBase is Undefined

This forum was archived on 2017-11-26.