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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.5 Release Testing »
  • RESOLVED Fatal Error 4.5.7 and now 4.5.8
Pages: [1] 2

Author Topic: RESOLVED Fatal Error 4.5.7 and now 4.5.8  (Read 1946 times)

FrTommy

  • I post frequently
  • ***
  • Posts: 273
  • Karma: 2
  • CiviCRM version: 4.5.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.32
  • PHP version: 5.3
RESOLVED Fatal Error 4.5.7 and now 4.5.8
August 20, 2014, 07:16:12 pm
Just upgraded my install to 4.5.7 (had been running the 4.5.4). The upgrade went fine.

I imported 10 households and then went to the Quick Create New and selected Individual. I got the following error:

Fatal error: Call to undefined method CRM_Core_BAO_UFGroup::getCreateLinks() in   /sites/all/modules/civicrm/CRM/Core/Resources.php on line 575

I attempted to clear caches and got the same thing. Now it won't let me do anything without giving me the fatal error.


Weirdest thing:  It just all of a sudden started working. I refreshed and it cleared the cache in civicrm and rebuilt the menu and it started working. Not sure what happened.

Scratch that!!!!!  Now when I try to create an individual it gives me the following fatal error:

Fatal error: Call to undefined method CRM_Core_BAO_UFGroup::getCreateLinks() in /sites/all/modules/civicrm/CRM/Contact/Form/Edit/Address.php on line 289
« Last Edit: September 06, 2014, 09:43:29 am by FrTommy »

FrTommy

  • I post frequently
  • ***
  • Posts: 273
  • Karma: 2
  • CiviCRM version: 4.5.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.32
  • PHP version: 5.3
Re: Fatal Error 4.5.7
August 20, 2014, 08:56:14 pm
NO clue what's going on with it.  Now i can't even access civi at all. it gives the error:

Fatal error: Call to undefined method CRM_Core_BAO_UFGroup::getCreateLinks() in   /sites/all/modules/civicrm/CRM/Core/Resources.php on line 575

FrTommy

  • I post frequently
  • ***
  • Posts: 273
  • Karma: 2
  • CiviCRM version: 4.5.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.32
  • PHP version: 5.3
Re: Fatal Error 4.5.7
August 21, 2014, 07:21:09 am
Any ideas anyone??

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
Re: Fatal Error 4.5.7
August 21, 2014, 07:36:05 am
I installed one of the earlier 4.5beta versions locally, and have upgraded it twice as subsequent beta releases have been made available. On each occasion the upgrade has gone without a hitch so can't offer any advice.
Graham Mitchell
http://mc3.coop

FrTommy

  • I post frequently
  • ***
  • Posts: 273
  • Karma: 2
  • CiviCRM version: 4.5.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.32
  • PHP version: 5.3
Re: Fatal Error 4.5.7
August 21, 2014, 08:26:33 am
I have too. I had started with 4.5.3 I think and had upgraded up to 4.5.5. I upgraded from there to 4.5.7 and the upgrade went fine but after I did the household import of the 10 records I started getting the errors. Now i can't access Civi at all I get the fatal error from the Resources.php

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Fatal Error 4.5.7
August 27, 2014, 01:39:59 pm
Can you look in the file CRM/Core/BAO/UFGroup.php and verify that the function getCreateLinks exists?
Try asking your question on the new CiviCRM help site.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
[Cannot Reproduce ] Re: Fatal Error 4.5.7
August 27, 2014, 03:54:52 pm
Checking this in 4.5 beta 8 and the function is there and I'm not able to recreate this error with the steps described.
Protect your investment in CiviCRM by  becoming a Member!

FrTommy

  • I post frequently
  • ***
  • Posts: 273
  • Karma: 2
  • CiviCRM version: 4.5.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.32
  • PHP version: 5.3
Re: [Cannot Reproduce ] Fatal Error 4.5.7
August 27, 2014, 08:16:24 pm
Yes Coleman i checked and the function is there. No clue what caused it. I just rolled things back to the backup and will wait until 4.5 is out and upgrade.  Might try the 4.5.8 beta this weekend and see what it does.

FrTommy

  • I post frequently
  • ***
  • Posts: 273
  • Karma: 2
  • CiviCRM version: 4.5.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.32
  • PHP version: 5.3
Re: Fatal Error 4.5.8
September 02, 2014, 06:34:02 pm
I  just attempted to upgrade from 4.5.4 to 4.5.8 and the upgrade finished fine without any errors. However, after viewing a contact and then clicking on Edit the contact I get the Fatal Error again.

Fatal error: Call to undefined method CRM_Core_BAO_UFGroup::getCreateLinks() in /sites/all/modules/civicrm/CRM/Core/Resources.php on line 577

Civi is complete inaccessible after getting the error and any attempt to reload the page or exit the page and load a new page results in the same Fatal Error.

I'm on civihosting so I know it's not a hosting issue. What could be the issue?

FrTommy

  • I post frequently
  • ***
  • Posts: 273
  • Karma: 2
  • CiviCRM version: 4.5.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.32
  • PHP version: 5.3
Re: Fatal Error 4.5.7 and now 4.5.8
September 03, 2014, 05:29:49 pm
So trying to find the issue that's causing this I did a Diff on  both UFGroup.php and Resources.php from version 4.5.4 and 4.5.8. 

there were quite a few changes in UFGroup but nothing that jumped out at me that would cause the error. The only change in Resources.php which is where the error is generating from is the following line 439
    // Also flush cms resource cache if needed
    CRM_Core_Config::singleton()->userSystem->clearResourceCache();

I wouldn't think that would cause the issue....

Any suggestions on debugging this?

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
Re: Fatal Error 4.5.7 and now 4.5.8
September 04, 2014, 02:32:45 am
One thing I can think of: that your db was damaged before you began this process. You don't say whether your initial installation was a new one for 4.5. beta 4 or whether it had itself been upgraded from a previous version.

I would suggest that you run through the schema integrity checking process, which I assume still holds true for 4.5 as for previous versions, and see if that fixes your problem. It's certainly saved my bacon on a few occasions: http://wiki.civicrm.org/confluence/display/CRMDOC/Ensuring+Schema+Integrity+on+Upgrades
Graham Mitchell
http://mc3.coop

FrTommy

  • I post frequently
  • ***
  • Posts: 273
  • Karma: 2
  • CiviCRM version: 4.5.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.32
  • PHP version: 5.3
Re: Fatal Error 4.5.7 and now 4.5.8
September 04, 2014, 01:47:59 pm
I thought about that but didn't think that could cause the error. Guess I'll sit down tonight and do it.

The install was an upgraded install. I've done that schema check many times.

If anyone else has any suggestions I would greatly welcome them.

FrTommy

  • I post frequently
  • ***
  • Posts: 273
  • Karma: 2
  • CiviCRM version: 4.5.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.32
  • PHP version: 5.3
Re: Fatal Error 4.5.7 and now 4.5.8
September 04, 2014, 06:20:19 pm
So I went through and checked the db. there were a few minor differences so for safety sake and to rule out the db I did a clean install of the structure and then imported my data into the fresh db for 4.5.4. Everything worked fine.

I attempted an upgrade to 4.5.8, upgrade proceeded fine with no errors. After the upgrade I opened a contact and it worked ok. Then I attempted to create a new Individual Contact and immediately got this Fatal Error:

Fatal error: Call to undefined method CRM_Core_BAO_UFGroup::getCreateLinks() in /home/saintfran/www/www/sites/all/modules/civicrm/CRM/Contact/Form/Edit/Address.php on line 250

I back out of that page and attempt to go to another page and get the fatal error:
Fatal error: Call to undefined method CRM_Core_BAO_UFGroup::getCreateLinks() in /home/saintfran/www/www/sites/all/modules/civicrm/CRM/Core/Resources.php on line 577


FrTommy

  • I post frequently
  • ***
  • Posts: 273
  • Karma: 2
  • CiviCRM version: 4.5.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.32
  • PHP version: 5.3
Re: Fatal Error 4.5.7 and now 4.5.8
September 04, 2014, 07:03:04 pm
I may have found the cause. It was an extension. Unsure which one it is but i'm guessing it was the Future Addresses extension....at least that's the one that makes sense because it's the only extension that dealt with contacts when editing them.

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
Re: Fatal Error 4.5.7 and now 4.5.8
September 04, 2014, 11:03:54 pm
Thanks for reporting back on your findings. It would great to know if you are able to pin it down to any particular extension or extensions so that others can be aware and either disable the extension or opt to wait for/support a compatible release of the extension before upgrading.

This makes me wonder whether, now that the use of extensions is perhaps more widespread, there should be a warning notice on the upgrade wiki pages at http://wiki.civicrm.org/confluence/display/CRMDOC/Upgrade+Drupal+Sites+to+4.5+-+Drupal+7 and associated pages for other CMSs alerting users to the potential problems of non-compatible extensions. Should extensions be disabled when running an upgrade?

The extension ecology still seems pretty nascent in terms of the generally pretty limited availability of good quality documentation and support mechanisms. Perhaps the imminent arrival of 4.5 might be a good opportunity (for presumably the core team?) to facilitate improvements on this front as part of a programme to encourage and enable extension developers to ensure their code is 4.5-ready. Looking at https://civicrm.org/extensions I can't see any means of filtering by compatibility with major release versions, and this forum has a rather jumbled approach to extensions IMO that doesn't make things easy for users seeking support.
Graham Mitchell
http://mc3.coop

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.5 Release Testing »
  • RESOLVED Fatal Error 4.5.7 and now 4.5.8

This forum was archived on 2017-11-26.