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) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Error with Extension and Localization settings
Pages: [1]

Author Topic: Error with Extension and Localization settings  (Read 1113 times)

Luciano S.

  • I post occasionally
  • **
  • Posts: 83
  • Karma: 2
  • iXiam Team Leader
  • CiviCRM version: 4.2+ / 4.3+ / 4.4+
  • CMS version: Drupal
  • MySQL version: 5.1+ / 5.5+
  • PHP version: 5.3+ / 5.4+
Error with Extension and Localization settings
August 12, 2013, 04:38:03 am
ok, I come here with a weird error (and hard to reproduce probably)
When I install the extension I'm developing, and then I go to localization settings admin page admin/setting/localization?reset=1 I cannot Save It (whatever setting or none I change there)

Always I get this error
Code: [Select]
Fatal error: Call to a member function getResUrl() on a non-object in /home/ixiam/unesco/registration/registration/modules/civicrm/CRM/Extension/Container/Collection.php on line 109
It happens only when my extension is installed. I tried with other extensions, and then I have no problem to update localization settings. I'm trying to figure out, what has my extension different than others to raise this error, but I don't find anything.

Any clues?

cheers!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Error with Extension and Localization settings
August 12, 2013, 05:19:35 am
Does your extension default the function getContainer or the member containers ?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Luciano S.

  • I post occasionally
  • **
  • Posts: 83
  • Karma: 2
  • iXiam Team Leader
  • CiviCRM version: 4.2+ / 4.3+ / 4.4+
  • CMS version: Drupal
  • MySQL version: 5.1+ / 5.5+
  • PHP version: 5.3+ / 5.4+
Re: Error with Extension and Localization settings
August 12, 2013, 05:40:12 am
Hi Herhel,

what do you mean by default the function getContainer?
as far as I know I didn't touch that function or anything related.. if you can be more specific (since I don't know exactly what you mean by "containers" of the extension)

tx

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Error with Extension and Localization settings
August 12, 2013, 05:56:55 am
Typo, sorry. I meant to ask if your code defines anything called getContainer or containers.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Luciano S.

  • I post occasionally
  • **
  • Posts: 83
  • Karma: 2
  • iXiam Team Leader
  • CiviCRM version: 4.2+ / 4.3+ / 4.4+
  • CMS version: Drupal
  • MySQL version: 5.1+ / 5.5+
  • PHP version: 5.3+ / 5.4+
Re: Error with Extension and Localization settings
August 12, 2013, 06:04:18 am
no,  I didn't define anything with the word container in my extension

Luciano S.

  • I post occasionally
  • **
  • Posts: 83
  • Karma: 2
  • iXiam Team Leader
  • CiviCRM version: 4.2+ / 4.3+ / 4.4+
  • CMS version: Drupal
  • MySQL version: 5.1+ / 5.5+
  • PHP version: 5.3+ / 5.4+
Re: Error with Extension and Localization settings
August 12, 2013, 10:09:00 am
As I told you, very specific and weird bug.

The cause was I was calling CRM_Core_Resources::singleton()->getUrl() in my extension in a PseudoConstants.php file and probably it's happening at a point where CiviCRM has not yet initialised all the extention stuff.
I took it out and I didn't get the error anymore

Thanks mathieu for helping me debugging it


Luciano S.

  • I post occasionally
  • **
  • Posts: 83
  • Karma: 2
  • iXiam Team Leader
  • CiviCRM version: 4.2+ / 4.3+ / 4.4+
  • CMS version: Drupal
  • MySQL version: 5.1+ / 5.5+
  • PHP version: 5.3+ / 5.4+
Re: Error with Extension and Localization settings
August 12, 2013, 10:13:49 am
and of course thanks Hershel to give us the lead where to look for :)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Error with Extension and Localization settings

This forum was archived on 2017-11-26.