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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Events Module error message
Pages: [1]

Author Topic: Events Module error message  (Read 772 times)

DBoyd

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.0.8
  • CMS version: Drupal 7.10
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
Events Module error message
February 01, 2012, 12:16:07 pm
I am new to both Drupal and CiviCRM, and am probably in way over my head.  So far so good though - I have successfully installed both, and most everything is working OK.  When creating events though in the events module, and then viewing the calendar, I get the following error message relating to event starting and ending times:

Notice: Undefined property: CRM_Core_DAO::$start_date in events_calendar() (line 146 of home/humboldt/public_html/drupal/sites/all/modules/civicrm_events-7.x-1.2/civicrm_events/civicrm_events.module).

Notice: Undefined property: CRM_Core_DAO::$end_date in events_calendar() (line 147 of /home/humboldt/public_html/drupal/sites/all/modules/civicrm_events-7.x-1.2/civicrm_events/civicrm_events.module).

I think they relate to the following code, but I don't know what to fix.  Help would be appreciated.  Thx.

while ( $dao->fetch( ) ) {
      if ( $dao->title ) {
        $startDate = date("Y,n,j", strtotime( $dao->start_date ) );
   $endDate   = date("Y,n,j", strtotime( $dao->end_date ) );
   $dao->url =   CRM_Utils_System::url( 'civicrm/event/info', 'id=' . $dao->id );

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: Events Module error message
February 01, 2012, 02:53:10 pm

You might want to file an issue in that module's issue tracker:

http://drupal.org/project/issues/civicrm_events?categories=All

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

DBoyd

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.0.8
  • CMS version: Drupal 7.10
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
Re: Events Module error message
February 01, 2012, 07:05:45 pm
Thank you for pointing me in the right direction.  Like I indicated, I am new at this and did not realize that resource was available.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Events Module error message

This forum was archived on 2017-11-26.