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) »
  • [Solved] Undefined method error after 4.0.8 to 4.1.3 update
Pages: [1]

Author Topic: [Solved] Undefined method error after 4.0.8 to 4.1.3 update  (Read 473 times)

sdragnev

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 0
  • CiviCRM version: 4.6.2
  • CMS version: Drupal 7
  • PHP version: 5.4
[Solved] Undefined method error after 4.0.8 to 4.1.3 update
August 22, 2012, 08:49:16 am
Hi all,

We updated from 4.0.8 to 4.1.3 a month or so back and just recently noticed a problem with CiviMail crashing.
The exact error is:

[Wed Aug 22 11:21:58 2012] [error] [client 75.98.196.158] PHP Fatal error:  Call to undefined method CRM_Utils_Token::getTokens() in /home/web/drupal7-min-20111114/sites/myrnao/modules/civicrm/CRM/Mailing/BAO/Mailing.php on line 774

The code in Mailing.php features a require_once for CRM/Utils/Token.php which doesn't seem to be firing properly.
I tried using file_exists to try and find the file, but that returns false (the file is of course there).

Everything else appears to be working fine.

Any pointers on how I can troubleshoot this further?
I also have settings_location.php in my modules/civicrm pointing to /home/web/drupal7-min-20111114/sites

Thanks!
« Last Edit: August 22, 2012, 08:56:17 am by llaen »

sdragnev

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 0
  • CiviCRM version: 4.6.2
  • CMS version: Drupal 7
  • PHP version: 5.4
Re: Undefined method error after 4.0.8 to 4.1.3 update
August 22, 2012, 08:56:02 am
Okay, nevermind. I had a custom Token.php which was getting included but had changed significantly in 4.1.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • [Solved] Undefined method error after 4.0.8 to 4.1.3 update

This forum was archived on 2017-11-26.