Support

Home Forums Event Espresso Premium Recurring event manager – last event date error

Recurring event manager – last event date error

Posted: January 18, 2019 at 7:17 am

Viewing 5 reply threads


blackpine

January 18, 2019 at 7:17 am

I’ve been using EE for a long time now and just today am experiencing an error. When I put in the last event date, the results do not include the last event date. I’ve repeated this error multiple times and cannot figure out why it won’t include that last event date (Sunday dates in my case). The only way I can get the projected occurrences to include the last Sunday in my date range is by extending the date range to include the following Saturday (but I don’t want that extra Saturday scheduled).


Tony

  • Support Staff

January 18, 2019 at 7:51 am

Hi there,

Can you post a screenshot of your REM settings so I can investigate this, please?


blackpine

January 18, 2019 at 8:07 am

Screenshot


Tony

  • Support Staff

January 18, 2019 at 11:22 am

Ok, I think I’ve found the problem.

Are you comfortable with PHP? There’s a single line change you can make within the add-on that should fix this for you.

In /espresso-recurring/functions/re_functions.php

Line 444 should be:

return floor( $seconds_difference / 60 / 60 / 24 / 7 );

Change that to:

return ceil( $seconds_difference / 60 / 60 / 24 / 7 );

Also, a little while ago I made some changes to the REM add-on for a couple of issues reported by users and made a couple of (what I consider) improvements with how the recurrence dates are generated if you would like to test that version I can send you a copy if you prefer?

I’d recommend testing it on a staging site before going live but the option is there if you would like to try it.


blackpine

January 18, 2019 at 12:11 pm

Thanks, Tony. My last day with my employer is today, so I won’t be able to invest the time to fix this on our end. And I am not a programmer, so getting into the PHP is beyond my capabilities. I just added a single event on the last date in the date range to work around it, given my limited time to get this launched.


Tony

  • Support Staff

January 18, 2019 at 12:48 pm

No problem, I’m glad you found a workaround.

Viewing 5 reply threads

The support post ‘Recurring event manager – last event date error’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso