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 »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Event Link fatal error in Views
Pages: [1]

Author Topic: Event Link fatal error in Views  (Read 781 times)

jmickela

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 5
Event Link fatal error in Views
May 11, 2012, 06:00:26 pm
I added a Registration link to a view and started getting this error:

Code: [Select]
Fatal error: Class 'CRM_Core_Config' not found in .../views/civicrm/civicrm_handler_field_event_link.inc on line 109

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: Event Link fatal error in Views
May 12, 2012, 06:10:28 pm
Might want to add a require_once in that file at line 108:

require_once 'CRM/Core/Config.php';

I fixed this for the next version of 4.1


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

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: Event Link fatal error in Views
August 06, 2012, 06:08:09 am
I'm getting the same error on a WAMP stack using 4.1.5 and drupal.  I see the require_once(CRM/Core/Config.php added and that is what is failing:
Warning: require_once(CRM/Core/Config.php): failed to open stream: No such file or directory in civicrm_handler_field_event_link::render_link() (line 112 of G:\Users\Shawn\Documents\drupal\shawntest\sites\all\modules\civicrm\drupal\modules\views\civicrm\civicrm_handler_field_event_link.inc).

Everything else seems to work ok, I'm wondering if it is a path issue? Is CRM/Core/Config.php a relative path or is civicrm_root automatically appended?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Event Link fatal error in Views

This forum was archived on 2017-11-26.