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 CiviEvent (Moderator: Yashodha Chaku) »
  • Not sure how to fix views problem with CiviCRM_Events
Pages: 1 [2]

Author Topic: Not sure how to fix views problem with CiviCRM_Events  (Read 2325 times)

JEfromCanada

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.0.7
  • CMS version: Drupal 7
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
Re: Not sure how to fix views problem with CiviCRM_Events
November 09, 2011, 02:00:49 pm
I've corrected the Undefined Variable message with a code change, as shown below:

The file edited was:  ../sites/all/modules/civicrm/drupal/modules/views/civicrm/civicrm_handler_field_event_link.inc

I took a variable definition line from an "if" block, and moved it further down into the "case" statement where it is actually used.  I'm not sure whether the problem was a "scope" issue (where the "case" statement was outside the scope of the area where the variable was originally defined) or something else.

However, by moving the line, the code now works correctly, without issuing an error about undefined variables.

(see attachment)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Not sure how to fix views problem with CiviCRM_Events
November 10, 2011, 02:18:49 am
Can you file an issue in our Issue Tracker (link top of this page) with details and include your change in the form a patch file? That would be a service to the community--we welcome bug patches! :)
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

JEfromCanada

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.0.7
  • CMS version: Drupal 7
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
Re: Not sure how to fix views problem with CiviCRM_Events
November 10, 2011, 12:47:49 pm
As I said, I'm new to Drupal and CiviCRM, so I don't know the protocol for bug reporting and tracking.  Isn't there someone who I could email with a link to this thread, and have them get the issue documented and the patch applied?

This thread contains images of the problem (the error messages appearing at the website) as well as the patch, so it could be handled so much quicker by someone with clout and experience.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Not sure how to fix views problem with CiviCRM_Events
November 11, 2011, 01:35:41 am
The very best way actually is for you to file a bug report as best as you can. Everyone here is very friendly and there is no protocol you need to follow. We strongly encourage people to get involved, especially if they can FIX bugs. File an issue and then the correct parties will become involved in that issue.

Thank you! :)
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

JEfromCanada

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.0.7
  • CMS version: Drupal 7
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
Re: Not sure how to fix views problem with CiviCRM_Events
November 11, 2011, 06:41:20 am
I filed the issue shortly after posting my previous reply.  It turns out the bug had been previously reported, and the issue had been CLOSED without resolution due to an inability to recreate the symptoms.  I've CLONED the old bug report to reopen it, sent the patch (actually sent the link to this thread), and sent a personal email to the person in charge of the fix.

That's all I can do for now.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Not sure how to fix views problem with CiviCRM_Events
November 12, 2011, 09:34:37 am
OK. Thank you. :)
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Not sure how to fix views problem with CiviCRM_Events

This forum was archived on 2017-11-26.