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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • block upcoming events upgrade from 3.2 to 3.4

Poll

upcoming events block problem

does anybody know why the upcoming event block is filled whith old events
0 (0%)
help with views
0 (0%)

Total Members Voted: 0

Pages: [1]

Author Topic: block upcoming events upgrade from 3.2 to 3.4  (Read 1831 times)

Thibaud Kistler

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 3.1.4
  • CMS version: Drupal 6.x
  • MySQL version: 5
  • PHP version: php 5
block upcoming events upgrade from 3.2 to 3.4
September 14, 2011, 10:58:52 am
hello,

I have a problem with my block upcoming events on drupal, I use the feed from my civicrm events to fill it and when I updated civicrm from version 3.2 to 3.4.5 all my past events showed up in the upcoming events list even if there end date was in the past.

So the first solution i found is when I remove the end date from a past event it disappear in the list. But using this solution I would have to recheck all my events and remove their end dates wich is not possible plus that means I can't put an end date to an event anymore. Then I reinstalled a new civicrm on drupal and recreated a database as i thought the data structure has changed from one version to another but it's exactly the same. Then I Checked the view module on drupal to see if i can change some configuration for the view but this view is not accessible as i think it is used in background for civicrm and so the view is not editable.

so finally I went to all/modules/civicrm/CRM/Event/BAO and checked the file events.php which is where the upcoming events block is filled in an array and checked the difference in the query between the 3.2 file and the new 3.4 file, there was only a small difference but by copying and pasting the old query in the new file it still doesn't change anything so i decided to replace this file using the 3.2 version file and now it's working. The only problem is I assume that the events.php file of 3.4 was using some new civicrm events feature and by replacing this file I'm worried that I could have some problems with the events as this file is not only used to feed the upcoming events block but for a lot of things regarding the events.

Can anybody help me on that please ??

Thank you !!

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: block upcoming events upgrade from 3.2 to 3.4
September 14, 2011, 11:57:52 am
I think there was a bug with upcoming events block which showed past events and is fixed. Fix will be part of 3.4.6 release.

Kurund
« Last Edit: September 14, 2011, 12:02:23 pm by Donald Lobo »
Found this reply helpful? Support CiviCRM

Thibaud Kistler

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 3.1.4
  • CMS version: Drupal 6.x
  • MySQL version: 5
  • PHP version: php 5
Re: block upcoming events upgrade from 3.2 to 3.4
September 14, 2011, 04:03:56 pm
I would need to fix it really fast could somebody give me the part of code which needs to be changed so i can fix it myself in the file ?

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: block upcoming events upgrade from 3.2 to 3.4
September 14, 2011, 05:17:08 pm

u can apply the patch from here:

http://issues.civicrm.org/jira/browse/CRM-8620?page=com.atlassian.jira.ext.fisheye%3Afisheye-issuepanel

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

Thibaud Kistler

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 3.1.4
  • CMS version: Drupal 6.x
  • MySQL version: 5
  • PHP version: php 5
Re: block upcoming events upgrade from 3.2 to 3.4
September 16, 2011, 01:21:52 pm
It doesn't solve the problem ...  :(

awasson

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 7
  • Living in a world of Drupal / CiviCRM
    • My Company: Luna Design
  • CiviCRM version: Latest
  • CMS version: Drupal 6/7/8
  • MySQL version: 5.x
  • PHP version: 5.3.x
Re: block upcoming events upgrade from 3.2 to 3.4
September 22, 2011, 10:51:14 am
@Thibaud Kistler: Have you gotten any further into this issue? I have the opposite problem on a site I updated from civi 3.1 to 3.4.5. None of my events show up on the xml feed or the event list block we have. They do show up in the iCal feed though.

I'll follow your lead and have a look at all/modules/civicrm/CRM/Event/BAO to see if I can borrow from it in order to fix the problem.

Andrew
My CiviCRM Extension Workshop: https://github.com/awasson

awasson

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 7
  • Living in a world of Drupal / CiviCRM
    • My Company: Luna Design
  • CiviCRM version: Latest
  • CMS version: Drupal 6/7/8
  • MySQL version: 5.x
  • PHP version: 5.3.x
Re: block upcoming events upgrade from 3.2 to 3.4
September 22, 2011, 12:28:32 pm
Interesting, I just noticed that my current events page the-site/civicrm/event/ical?reset=1&page=1&html=1 also lists out every event that has ever taken place rather than just those events that are current.
My CiviCRM Extension Workshop: https://github.com/awasson

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: block upcoming events upgrade from 3.2 to 3.4
September 22, 2011, 02:00:27 pm

There was a regression bug in 3.4.5 with regard to the upcoming events listing which is being fixed for 3.4.6 (which will be out early next week)

lboo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

awasson

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 7
  • Living in a world of Drupal / CiviCRM
    • My Company: Luna Design
  • CiviCRM version: Latest
  • CMS version: Drupal 6/7/8
  • MySQL version: 5.x
  • PHP version: 5.3.x
Re: block upcoming events upgrade from 3.2 to 3.4
September 22, 2011, 02:31:39 pm
Thanks for the heads up Lobo.

Cheers,
Andrew
My CiviCRM Extension Workshop: https://github.com/awasson

Thibaud Kistler

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 3.1.4
  • CMS version: Drupal 6.x
  • MySQL version: 5
  • PHP version: php 5
Re: block upcoming events upgrade from 3.2 to 3.4
September 26, 2011, 10:56:16 am
sorry for the late answer. I managed to fix this problem by reusing the events.php file from the 3.1 version and commenting some parts of the other files which are in the BAO folder. It seems to work now except that i can't have a limited number of seats for the events because it's this function which seems to not be implemented in the 3.1 version and so I had to comment these part of the file.

awasson

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 7
  • Living in a world of Drupal / CiviCRM
    • My Company: Luna Design
  • CiviCRM version: Latest
  • CMS version: Drupal 6/7/8
  • MySQL version: 5.x
  • PHP version: 5.3.x
Re: block upcoming events upgrade from 3.2 to 3.4
September 26, 2011, 01:40:57 pm
@Thibaud Kistler: No problem at all. I've worked around the issues myself with some fancy Drupal Views and I'm sure the 3.4.6 update will fix it up in the long run. Man civiCRM 3.4 is a nice upgrade  ;D
My CiviCRM Extension Workshop: https://github.com/awasson

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • block upcoming events upgrade from 3.2 to 3.4

This forum was archived on 2017-11-26.