• Resolved createscape

    (@createscape)


    Hi there,
    A client of mine has been using your plugin for a few years and recently noticed that saving recurring events to the 1st Sunday of the month no longer work. Instead the event is saved for the 1st day of every month. It shows as the first Sunday of the month in the admin but on the calendar it shows as the 1st day of the month.

    Thank you for your help.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Having the same issue here. Happens specifically with monthly recurring events. Weekly recurring work properly. Monthly all show on the 1st each month regardless of the settings in the recurrence pattern. I have 3rd Thursday and 1st Monday events and they all show as June 1, July 1, August 1, etc. making this unusable.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    this issue has been reported before however we can’t able to replicate this; can I know your timezone settings and did you already check option under Events > Settings > Admin Tools > Reset Timezones ?

    Thread Starter createscape

    (@createscape)

    Hello angelo,
    The WordPress Time zone is set to Vancouver. The Events plugin setting (under general) is set to Vancouver.
    I took a look at Events > Settings > Admin Tools > Reset Timezones and this also says Vancouver.

    This plugin has been working fine for them for a couple years before this.

    Thanks

    Thread Starter createscape

    (@createscape)

    Hi there,
    I’ve done some further testing myself. I’ve created a duplicate site where I’ve switched to the Twenty Seventeen theme and deactivated all the other plugins. I’m still seeing the same problem. This is a screenshot of the list of recurring events:

    https://snag.gy/fBKnjw.jpg

    I just installed the plugin on another site and it’s working fine there (also rules out user error in entering the recurring event details wrong).

    Do you have any other suggestions of what I can check?

    Thanks

    I have exactly the same problem. Existing monthly recurring events are showing fine but if I make a change or create a new one then it’s the same as you. This is going to be completely unusable soon as we have dozens of monthly events (church site) that need to be recreated. The lack of response is annoying even though I know the developer wasn’t able to recreate the problem but some communication would be welcome.

    @patsky, Thank you for your suggestion and testing of your proposed solution/work-around.
    I may have to move to a new events management plugin as well. I was hopeful that your work-around would work, but this is sad news. It appears from this layman, that this would be a simple fix given all the other development they’ve done.
    I tried looking in the documentation, and didn’t see anything there.

    I would say if you have an old event that does work and a altered one, than you are able to see what is different in the database. So step 1 is have a look at the details of the working event, and then compare that with the details after it has been altered (and obviously no longer working)
    Ask which table holds the data of the event
    Succes in finding the problem.
    I am a basic user of event, so do have no reoccurring events

    Thanks Peter, however when you alter a recurring event, all the old entries are deleted and new ones created. I will take a look though and see if there is anything obvious. Disappointing still no input from the plugin author.

    Ok if the old ones are deleted, than you can make screenshots of the working event. Than alter it, and take screenshots again. In that way you can compare the contents of the records. There must be a minor difference between the records. I suspect that the records contain a date and time, so the altered record probably has a different date, or dateformat. Probably due to country dependend settings the date is not calculated properly

    Thread Starter createscape

    (@createscape)

    My client has renewed their pro subscription in order to post this problem on their pro support forum. If they or I come up with a solution I will post it here.

    @createscape Thank you. That would be very helpful.
    @psmits1567 as per my reply on the other thread, I did identify differences in fields that weren’t being populated but they seemed imsignificant as weekly repeat events didn’t have them either and they were working fine.

    Hello,

    The issue have already been submitted to EM. I’ll update this thread when the issue is solved.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    OK, so it turns out to be a PHP issue, not an EM bug, which is why we had such a hard time reproducing this, and also why some see it working on some sites and not on others. The issue specifically affects PHP versions 5.3 – 5.5.

    If you’re running PHP 5, we recommend you run the latest version of that version because all other versions are already not supported anymore. However, we’ve fixed the issue anyway.

    We’ve just release a new dev version 5.9.5.1 which has the fix. You can upgrade your site with a few clicks as per these instructions.

    In case you’re interested, here’s a proof of concept which shows with regular PHP functions why this is not working as expected:

    
    <?php
    	echo "PHP Version is : ". phpversion().'<br>';
    	$DateTime = new DateTime("2018-07-02");
    	echo '<strong>$DateTime = new DateTime("2018-07-02");</strong><br>';
    	echo '<strong>echo $EM_DateTime->format("Y-m-d");</strong><br>';
    	echo $DateTime->format("Y-m-d");
    	echo '<br><strong>$DateTime->modify(\'first day of this month\')->setDate( 2018, 7, 22 );</strong><br>';
    	$DateTime->modify('first day of this month')->setDate( 2018, 7, 22 );
    	echo '<strong>echo $DateTime->format("Y-m-d");</strong><br>';
    	echo $DateTime->format('Y-m-d');
    	die();

    Paste this into a new .php file somewhere on your server and visit it directly and see the results.

    Thread Starter createscape

    (@createscape)

    Thank you very much for your help. I updated the PHP version to 7.1 (hosting plan didn’t offer 7.2) and installed 5.9.5.1 dev version of this plugin. I’ve tested the recurring events and it works fine now. Thank you for finding the solution.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Recurring event saved for First Sunday shows on 1st day of the month’ is closed to new replies.