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) »
  • [Solved] Event ID greater then 99 not showing up in view
Pages: [1]

Author Topic: [Solved] Event ID greater then 99 not showing up in view  (Read 710 times)

midloman

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 1
[Solved] Event ID greater then 99 not showing up in view
August 13, 2011, 04:51:31 am
With Drupal 6.22 & CiviCRM 3.4.5:

I have a simple view to display a list of active events.  No event ID > 99 is shown in the view, but it should be.

Here's the generated SQL Query:

SELECT civicrm_event.id AS id,
   civicrm_event.title AS civicrm_event_title,
   civicrm_event.start_date AS civicrm_event_start_date
 FROM civicrm_event civicrm_event
 WHERE (DATE_FORMAT(CONVERT_TZ(civicrm_event.start_date, 'UTC', 'America/New_York'), '%Y-%m-%%d') >= '2011-08-03')
    AND (civicrm_event.is_active <> 0)
   ORDER BY civicrm_event_start_date DESC

I get the following list of events:

96    Microsoft Project (Level 1)    16 weeks 5 days hence
97    Conflict Resolution (Level 2)    12 weeks 6 days hence
93    2-Day Project Management Simulation (Level 1)    11 weeks 6 days hence
91    Managing Virtual Teams (Level 3)    10 weeks 5 days hence
90    Earned Value Management (Level 2)    10 weeks 1 hour hence
95    Effective Meetings (Level 1)    7 weeks 6 days hence
92    Creative Problem Solving (Level 2)    6 weeks 1 hour hence
75    September 2011 SS Dinner Meeting - C094-110921    5 weeks 4 days hence

This query works fine if I execute it directly in phpmyadmin.  I get the following:
96    Microsoft Project (Level 1)    
97    Conflict Resolution (Level 2)    
107    November 2011 GOV LIG Meeting - C094-111109    
93    2-Day Project Management Simulation (Level 1)    
91    Managing Virtual Teams (Level 3)    
90    Earned Value Management (Level 2)    
106    October 2011 GOV LIG Meeting - C094-111020    
102    Fall 2011 Certification Workshop - C094-111015    
101    15th Anniversary Celebration Dinner - C094-111013    
95    Effective Meetings (Level 1)    
92    Creative Problem Solving (Level 2)    
75    September 2011 SS Dinner Meeting - C094-110921    
105    September 2011 GOV LIG Meeting - C094-110914    

Any ideas?

Update:  This was caused in part by settings.php and civicrm.settings.php having differerent DB's specified for Drupal.

« Last Edit: August 15, 2011, 05:44:56 am by midloman »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • [Solved] Event ID greater then 99 not showing up in view

This forum was archived on 2017-11-26.