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) »
  • PHP Fatal error: Call to undefined method CRM_Utils_Hook::permission()
Pages: [1]

Author Topic: PHP Fatal error: Call to undefined method CRM_Utils_Hook::permission()  (Read 889 times)

bpmccain

  • I post frequently
  • ***
  • Posts: 255
  • Karma: 5
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.2
  • PHP version: 5.2
PHP Fatal error: Call to undefined method CRM_Utils_Hook::permission()
April 19, 2013, 07:14:43 am
I'm getting a frequent error, shortly after upgrading to 4.3.1

 PHP Fatal error:  Call to undefined method CRM_Utils_Hook::permission() in /persistent/html/sites/all/modules/civicrm/CRM/Core/Permission/Base.php on line 208

I've checked CRM_Utils_Hook and permission() seems to be there at the bottom of the file, but isn't being found for some reason. Any ideas?

Brian

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: PHP Fatal error: Call to undefined method CRM_Utils_Hook::permission()
April 19, 2013, 07:21:42 am

r u using a php opcode cache? might be worth restarting php / apache and/or disabling the opcode cache and checking if it works

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

bpmccain

  • I post frequently
  • ***
  • Posts: 255
  • Karma: 5
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.2
  • PHP version: 5.2
Re: PHP Fatal error: Call to undefined method CRM_Utils_Hook::permission()
April 19, 2013, 07:50:47 am
No I'm not. Restated apache as well, and no changes.

Brian

bpmccain

  • I post frequently
  • ***
  • Posts: 255
  • Karma: 5
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.2
  • PHP version: 5.2
Re: PHP Fatal error: Call to undefined method CRM_Utils_Hook::permission()
April 20, 2013, 06:16:13 am
Yeah - so, ignore this. I completely forgot I had a copy of Hook.php in my customphp folder, which I hadn't updated and so overrode the 4.3.1 version  :-\

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: PHP Fatal error: Call to undefined method CRM_Utils_Hook::permission()
April 24, 2013, 05:52:27 pm
I'm finding that managing our own distribution via git is working better than using custom over-rides.
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: PHP Fatal error: Call to undefined method CRM_Utils_Hook::permission()
April 24, 2013, 06:06:22 pm

would be great if u canelaborate on this via a blog post :)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: PHP Fatal error: Call to undefined method CRM_Utils_Hook::permission()
April 24, 2013, 06:12:16 pm
hmm - it might change a bit when we start engaging with 4.3 but Ok will try
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • PHP Fatal error: Call to undefined method CRM_Utils_Hook::permission()

This forum was archived on 2017-11-26.