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 »
  • 2.1 Release Testing »
  • CRM_Core_Permission not found
Pages: [1]

Author Topic: CRM_Core_Permission not found  (Read 4305 times)

zzolo.ctc

  • Guest
CRM_Core_Permission not found
August 11, 2008, 08:29:36 am
Install on XAMPP on Windows with Drupal Installer.  Please note this is the first time I have used XAMPP before.

Install went fine.

Went to Enable CiviCRM Module in Drupal Modules List (http://localhost/drupal_6/admin/build/modules).  After saving the new configurations, I get the following error at the same URL:

Code: [Select]
Fatal error: Class 'CRM_Core_Permission' not found in H:\Program Files\xampp\htdocs\drupal_6\sites\all\modules\civicrm\CRM\Core\Menu.php on line 421

Will look into some more and post what I find.

--
zzolo

zzolo.ctc

  • Guest
Re: CRM_Core_Permission not found
August 11, 2008, 08:51:08 am
I get this when I go to my site root:

Code: [Select]
Fatal error: require_once() [function.require]: Failed opening required 'CRM/Core/Menu.php' (include_path='.;H:\Program Files\xampp\php\pear\') in H:\Program Files\xampp\htdocs\drupal_6\sites\all\modules\civicrm\drupal\civicrm.module on line 725

I think it has more to do with XAMPP than CiviCRM.  Still looking...

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: CRM_Core_Permission not found
August 11, 2008, 02:41:29 pm
yes, check civicrm.settings.php - somewhere in your sites directory. Make sure the windows style slashes are doubled.

I got it going on wamp the other day - per below

$civicrm_root = 'C:\\wamp\\www\\html\\sites\\all\\modules\\civicrm\\';

define( 'CIVICRM_TEMPLATE_COMPILEDIR', 'c:\\wamp\\www\\html\\files\\civicrm\\templates_c\\' );

I think the include path takes the above as it's starting point
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

zzolo.ctc

  • Guest
Re: CRM_Core_Permission not found
August 22, 2008, 01:12:01 pm
I am actually getting this same message on a LAMP stack.  I will look into it some more.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CRM_Core_Permission not found
August 22, 2008, 01:58:31 pm
Add below code on line around 420 in CRM/Core/Menu.php

Quote
         // check permissions for the rest
        require_once 'CRM/Core/Permission.php';

HTH

Kurund
Found this reply helpful? Support CiviCRM

zzolo.ctc

  • Guest
Re: CRM_Core_Permission not found
August 22, 2008, 02:47:03 pm
Thank you.  That worked.

--
Zzolo

mcsmom

  • I post frequently
  • ***
  • Posts: 266
  • Karma: 23
    • Official Joomla! Book
  • CiviCRM version: 4 and 3.4
  • CMS version: Joomla!
Re: CRM_Core_Permission not found
August 22, 2008, 03:04:52 pm
I had so much trouble with the include paths on xamp.

mcsmom

  • I post frequently
  • ***
  • Posts: 266
  • Karma: 23
    • Official Joomla! Book
  • CiviCRM version: 4 and 3.4
  • CMS version: Joomla!
Re: CRM_Core_Permission not found
August 22, 2008, 03:16:23 pm
I have a question about this and Joomla.  Why is it that the files are all down a level? Wouldn't the include path not be needed (and this problem and also some security issues avoided) if the civi started right in com_civicrm instead of in com_civicrm/civicrm? I grepped and it didn't seem like it would be an issue. I know that's not something that is going to change anytime soon, but it just seems to complicate things so much, including creating the need for so much code in civicrm.settings.php.

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: CRM_Core_Permission not found
August 22, 2008, 04:25:08 pm

I think the include path will still be needed. I dont think joomla adds the specific com_civicrm to the include path dynamically. Also we need 'packages' in the include path which is done in civicrm.settings.php (which is quite small compared to the 1.x versions)

The main issue in this thread was a missing require which was a bug (and is now fixed)


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

mcsmom

  • I post frequently
  • ***
  • Posts: 266
  • Karma: 23
    • Official Joomla! Book
  • CiviCRM version: 4 and 3.4
  • CMS version: Joomla!
Re: CRM_Core_Permission not found
August 23, 2008, 07:59:50 am
If that's the reason I think there are other ways to solve it.

But adding that line to menu.php doesn't solve this error for me.


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: CRM_Core_Permission not found
August 23, 2008, 12:10:54 pm

elin:

what version and what is the exact error? ping me on IM/IRC and we can walk thru it and check

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 2.1 Release Testing »
  • CRM_Core_Permission not found

This forum was archived on 2017-11-26.