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) »
  • New Drupal Module for Repeating CiviEvents
Pages: 1 [2] 3

Author Topic: New Drupal Module for Repeating CiviEvents  (Read 33653 times)

leapywca

  • Guest
Re: New Drupal Module for Repeating CiviEvents
October 15, 2009, 11:02:00 am
Awesome that works!  I have however run into another issue.  We were testing this on our local machines, not our actual website.  When trying to enable the CiviRepeat on our website we have run into an error.  I have a feeling I know why this is happening, I think it is because we are using translations to change some of the default words that civicase uses into words that are used by our non profit.   Using translations however causes several database table names and column names to change (so it can store the words used in default english (en_us) as well as our own version (en_oo) Here is the error:  (I assume I will have to edit some of the civirepeat SQL scripts (which I am quite comfortable with), I was just wondering if you can provide me with any insight before I begin)

Code: [Select]
Array
(
    [callback] => Array
        (
            [0] => CRM_Core_Error
            [1] => handle
        )

    [code] => a515ac9c2796ca0e23adbe92c68fc9fc
    [message] => DB Error: a515ac9c2796ca0e23adbe92c68fc9fc
    [mode] => 16
    [debug_info] => ALTER TABLE civicrm_event_en_OO DROP FOREIGN KEY FK_civicrm_event_loc_block_id [nativecode=1347 ** 'leapywca.civicrm_event_en_oo' is not BASE TABLE]
    [type] => DB_Error
    [user_info] => ALTER TABLE civicrm_event_en_OO DROP FOREIGN KEY FK_civicrm_event_loc_block_id [nativecode=1347 ** 'leapywca.civicrm_event_en_oo' is not BASE TABLE]
    [to_string] => [db_error: message="DB Error: a515ac9c2796ca0e23adbe92c68fc9fc" code=0 mode=callback callback=CRM_Core_Error::handle prefix="" info="ALTER TABLE civicrm_event_en_OO DROP FOREIGN KEY FK_civicrm_event_loc_block_id [nativecode=1347 ** 'leapywca.civicrm_event_en_oo' is not BASE TABLE]"]
)
[/code]

Matt2000

  • I post frequently
  • ***
  • Posts: 288
  • Karma: 27
    • http://www.ninjitsuweb.com
Re: New Drupal Module for Repeating CiviEvents
October 15, 2009, 11:10:32 am
I'm not familiar with how the translation system works in CiviCRM, but I can tell you that those queries are run during module install to remove the foreign key constraints between an event and it's location data, since repeated events share the same location record as their parent.

I imagine you'll just need to edit all the SQL queries to point to your translated tables, as you suggested.
Drupal/CiviCRM micro-blogging http://twitter.com/matt2000

Ninjitsu Web Development http://www.NinjitsuWeb.com/

leapywca

  • Guest
Re: New Drupal Module for Repeating CiviEvents
October 19, 2009, 07:04:15 am
Thanks for all your help, Matt!

Another question: as of last Thursday, CiviEvent Repeat was working great - once an even was added, it was immediately available to select in CiviEvent Repeat. However, as of this morning, new events are no longer visible. These new events have the same settings as the previous events we've marked as recurring: publically accessible, active, no online registration, no tell-a-friend feature.

Can't figure out why it would be working last week and not anymore... any tips on what could be causing new events to not show up in CiviEvent Repeat drop-down menu?

thanks!

Matt2000

  • I post frequently
  • ***
  • Posts: 288
  • Karma: 27
    • http://www.ninjitsuweb.com
Re: New Drupal Module for Repeating CiviEvents
October 19, 2009, 09:58:16 am
Very odd. I think your server is haunted. :-)

CiviRepeat uses the CiviCRM APi to pull all 'active' events into that selector. So check if you events somehow became inactive.

I guess you would have mentioned if you made any major changes to the system, like upgrading CiviCRM ?
Drupal/CiviCRM micro-blogging http://twitter.com/matt2000

Ninjitsu Web Development http://www.NinjitsuWeb.com/

Matt2000

  • I post frequently
  • ***
  • Posts: 288
  • Karma: 27
    • http://www.ninjitsuweb.com
Re: New Drupal Module for Repeating CiviEvents
October 19, 2009, 10:04:53 am
One other thought:

Did you delete the original event or any of it's clones? If so, you may have deleted all of them, if the SQL queries mentioned above were never successfully executed.


(CiviCRM uses cascading deletes normally; the aforementioned SQL ALTER statements prevent this. Without it, since locations are shared by the cloned events, when you delete one, CiviCRM deletes it's location record, and then deletes every other event that used that location.)
Drupal/CiviCRM micro-blogging http://twitter.com/matt2000

Ninjitsu Web Development http://www.NinjitsuWeb.com/

leapywca

  • Guest
Re: New Drupal Module for Repeating CiviEvents
October 19, 2009, 10:15:09 am
I double checked and the events are definitely marked as active.  The events from last week are showing up but any new ones we add are not.  Could it be a caching problem?  If so do you know where I would delete the cache to test this (talking about the websites cache not the browsers).

Matt2000

  • I post frequently
  • ***
  • Posts: 288
  • Karma: 27
    • http://www.ninjitsuweb.com
Re: New Drupal Module for Repeating CiviEvents
October 19, 2009, 10:35:45 am
CiviRepeat does not implement any caching. As far as I know, neither does the CiviCRM Event API.

Do the events that aren't showing up contain any special characters (quotes, or other HTML-significant punctuation) in the title?

Can you view the HTML source and see if there's anything strange about the selector input? I'm wonderin gif the events are being retrieved, but not displayed correctly for some reason.

If you have Drupal's devel module, you could also uncomment `//dvm($events);` at ~line 243 and see if your missing events are included in the output.

Also, I'm assuming that the events do show up on the normal CiviEvent managment interface; they're just missing from the CiviRepeat selector. Let me know if otherwise.
Drupal/CiviCRM micro-blogging http://twitter.com/matt2000

Ninjitsu Web Development http://www.NinjitsuWeb.com/

leapywca

  • Guest
Re: New Drupal Module for Repeating CiviEvents
October 21, 2009, 05:41:28 am
Hey Matt,

   I figured out the problem.  The civirepeat dropdown menu calls the event search method implemented by CiviCRM.  It sets the max number of search results to 25 by default.  For anyone else interested in having more than 25 events show up in civirepeat just navigate to drupal\sites\all\modules\civicrm\api\v2\Event.php on line 150 and change   $rowCount = 25; to however many events you would like displayed at once. 
« Last Edit: October 21, 2009, 08:51:11 am by leapywca »

Matt2000

  • I post frequently
  • ***
  • Posts: 288
  • Karma: 27
    • http://www.ninjitsuweb.com
Re: New Drupal Module for Repeating CiviEvents
October 21, 2009, 09:58:15 am
Thanks leapywca.

I've posted a patch for the event api function that would allow civirepeat to be updated with a larger (or user specified) limit:

http://issues.civicrm.org/jira/browse/CRM-5266
Drupal/CiviCRM micro-blogging http://twitter.com/matt2000

Ninjitsu Web Development http://www.NinjitsuWeb.com/

glnielsen

  • Guest
Re: New Drupal Module for Repeating CiviEvents
February 13, 2010, 04:05:20 pm
Quote from: Matt2000 on February 14, 2009, 07:58:43 am
The module provides a block called 'CiviCRM extras' which you may need to enable from your block administrator page. This will provide a link to the Event cloning tool. It does assume that you've already created an event, via the regular CiviEvent interface, that you want to have repeated.


I have Drupal 6.15 and civiCRM 3.1.2 installed. I then installed civirepeat for D6.

The "CiviCRM extras" is not listed when I try to administer blocks.

I have verified that the civirepeat block was inserted into the drupal database and /admin/civirepeat works to create recurring events.

I am using the default Garland Drupal Theme.

Any idea why the "CiviCRM extras" block is not being listed on the Drupal block adminstration page?

Thanks,

Glenn

Matt2000

  • I post frequently
  • ***
  • Posts: 288
  • Karma: 27
    • http://www.ninjitsuweb.com
Re: New Drupal Module for Repeating CiviEvents
February 13, 2010, 05:38:55 pm
Did you try the steps here: http://forum.civicrm.org/index.php/topic,3329.msg44379.html#msg44379

Anyway, as I said before, there's not really any reason to use the block. I suggest you just add you own menu item that points to admin/civirepeat
Drupal/CiviCRM micro-blogging http://twitter.com/matt2000

Ninjitsu Web Development http://www.NinjitsuWeb.com/

FrTommy

  • I post frequently
  • ***
  • Posts: 273
  • Karma: 2
  • CiviCRM version: 4.5.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.32
  • PHP version: 5.3
Re: New Drupal Module for Repeating CiviEvents
March 15, 2010, 06:07:19 pm
I've got an issue where CiviRepeat is not creating the events at the correct time.

I have an event created for March 28, 2010 at 5:30 pm (17:30) in CiviEvent. When I go to CiviRepeat to repeat it it creates it on the correct days (Every Sunday) but it sets the time of the event to 15:30.

What's going on?

:::EDIT:::
Ok this is weird. When I do a test Run is when it shows the 15:30 time if I actually allow it to create the events then it creates the events with the correct time.
« Last Edit: March 15, 2010, 06:10:16 pm by FrTommy »

Alan.Guggenheim

  • Guest
Re: New Drupal Module for Repeating CiviEvents
April 05, 2010, 06:42:46 pm
Thanks for the module. Installed and activated, but two issues:
1- No block to activate in my list as far as I can see
2- If I go to the url: <site>/admin/civirepeat, it shows me the right page, but in CiviEvent: there is only a "-" or "- Select an Event -"
no event are listed even though many exist

Thanks

Durruti

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 1
    • The Kindling Trust
  • CiviCRM version: 3.4
  • CMS version: Drupal 6.20
  • MySQL version: 5.0.77
  • PHP version: 5.2.17
Is it still possible to get hold of CiviRepeat?
February 04, 2011, 09:47:38 am
Hi there,
I wonder if anyone knows if it's still possible to get hold of CiviRepeat, it exactly what I need but hasn't been available from the Ninjitsuweb site for some time now.
It would save me creating repeating events as drupal events and enable me to simply use civievent for everything.
Many thanks,
Matt
http://feedingmanchester.org.uk

Matt2000

  • I post frequently
  • ***
  • Posts: 288
  • Karma: 27
    • http://www.ninjitsuweb.com
Re: New Drupal Module for Repeating CiviEvents
February 07, 2011, 08:07:01 pm
The files have been restored to their locations given at the top of the thread.

However, there's no guarantee the module still works with current versions of Civi. It would be much better to use CiviEvent's built-in event template tool now.
Drupal/CiviCRM micro-blogging http://twitter.com/matt2000

Ninjitsu Web Development http://www.NinjitsuWeb.com/

Pages: 1 [2] 3
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • New Drupal Module for Repeating CiviEvents

This forum was archived on 2017-11-26.