Support » Plugin: Timed Content » Timed Content rule w/ exception = ignored

  • Resolved 1f2ns

    (@1f2ns)


    1. Love the plugin, it’s fantastic.
    2. Using it to show an online ordering form for a restaurant.
    3. We display a different form for each day of the week (different menu options).
    4. When adding an exception for Thursday, the 4th of July it is ignored.
    5. Here is the following code for “thursday”;

    Show the content on 2019-03-21 @ 10:00 until 2019-03-21 @ 21:15.
    Repeat this action every week on Thursday.
    This rule will be active until 2025-03-18.
    This rule will be inactive on the following dates: 2025-03-18.
    All times are in the America/Detroit timezone.

    [It is adding the date from the “active until” to the “inactive on”. If I change this to be “active for XXX instances” the above output will display correctly, but is still ignored on the front end. Under either selection the “projected date/times” exclude the date in question]

    I have removed caching plugins, cleared any other cache I can find and created a new page to test the code on.

    Is this a known issue?
    Thank you in advance.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Arno Welzel

    (@awelzel)

    I think you misunderstood something. The execption list is a list of specific dates, where the rule should not apply. In your case – based on what you shown here – it is 2025-03-18.

    So the execption is 18th March 2025. If you want to the rule to be inactive on every 4th July every year you have to add all the years manually in the exception list:

    2019-07-04
    2020-07-04
    2021-07-04
    2022-07-04
    2023-07-04
    2024-07-04
    2025-07-04

    (Edit: of course YEAR-07-04 and not YEAR-04-07)

    Thank you for the extremely fast reply!

    I understand exactly what you are saying but I think I may not have explained myself as well as I could have.

    2025-03-18 is the date I have set to end the rule on.

    2025-03-18 is not added under the “exceptions list”.

    The only date under the “exceptions list” is 2019-07-04 as today is the only day they are closed for.

    With the above (hopefully) better defined, I am receiving the following output for the rule as originally mentioned:

    Show the content on 2019-03-21 @ 10:00 until 2019-03-21 @ 21:15.
    Repeat this action every week on Thursday.
    This rule will be active until 2025-03-18.
    This rule will be inactive on the following dates: 2025-03-18.
    All times are in the America/Detroit timezone.

    I am not sure why it’s showing the 2025-03-18 and not the 2019-07-04 date as defined.

    Again, I thank you.

    Note: If I add multiple dates to the exception list the following changes from/to;

    This rule will be inactive on the following dates: 2025-03-18.

    To

    This rule will be inactive on the following dates: 2019-07-03, 2019-07-04.

    Unfortunately, the content is still shown on the front end. I have checked in a clean testing browser as well.

    Plugin Author Arno Welzel

    (@awelzel)

    Ah, ok, now I understand the problem.

    I can reproduce this on my test server. It seems there is a bug with the exception list – I’ll fix this as soon as possible.

    I’m glad you were able to replicate it and I’m not crazy 🤪. is there a way for me to toss you a few bucks for your time and effort 🍻

    Plugin Author Arno Welzel

    (@awelzel)

    Thank you for your support!

    You can send me some bucks via Paypal: https://paypal.me/ArnoWelzel

    Plugin Author Arno Welzel

    (@awelzel)

    Just a quick update: I found the cause of the problem. In fact exceptions don’t work at all the moment :-(. Fixing it will take a day or so. I hope, I can publish an update this weekwend. This will also fix the strange numerical date display in the rule description when adding or removing an exception before the rule is published.

    Plugin Author Arno Welzel

    (@awelzel)

    Release 2.60 should fix the broken handling of rule exceptions – they should work now work as expected.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.