• Resolved Nicker_82

    (@nicker_82)


    Hi,

    My old shortcode has stopped working and it’s writing out alot of warnings in a loop since the new update v. 1.53 of We′re Open:

    Warning: Undefined array key “start” in?/public/wp-content/plugins/opening-hours/index.php?on line?2771

    Warning: Undefined array key “end” in?/public/wp-content/plugins/opening-hours/index.php?on line?2771

    My old shortcode, worked before the update:
    [open closed=”Closed” class=”hours-right closed-bold” day_format=”full_date_month_nos” regular=false count=”31″]

    I tested this shortcode for Conditional special opening hours, with same results:
    [open_special start=0 end=31] <h3>Holiday opening times</h3> [open regular=false special=true day_format=”short_date_short_month” start=0 end=31] [/open_special]

    What is odd is when I’am logged in as Admin the Warnings is not displayed and not working, but in incognito (not logged in) it shows warnings and I have wp_config set to define( ‘WP_DEBUG’, false );

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Design Extreme

    (@designextreme)

    Thanks @nicker_82! I can see how this is occurring in the code and will issue a fix very soon (within 24 hours).

    Thanks again for letting me know.

    Plugin Author Design Extreme

    (@designextreme)

    @nicker_82 Please download version 1.54.

    I didn’t wait around as it’s a simple fix and I don’t want people getting lots of these warnings appearing in their logs.

    Thread Starter Nicker_82

    (@nicker_82)

    Thanks for fast response!

    No warnings now, but it doesn’t work as intended.
    I have set some special opening hours for “Holiday opening times”.

    I tested this code:
    [open_special start=0 end=31] <h3>Holiday opening times</h3> [open regular=false special=true day_format=”short_date_short_month” start=0 end=31] [/open_special]

    But it writes out every standard opening hours for 31 days.

    Same with my old code (that worked before the update v.1.53):
    [open closed=”Closed” class=”hours-right closed-bold” day_format=”full_date_month_nos” regular=false count=”31″]

    It writes out all 31 days, it should only write out the special hours days.

    Plugin Author Design Extreme

    (@designextreme)

    @nicker_82 I didn’t see this when I made the change – but I will recheck with no temporary closure as I think this is the missing part of the puzzle.

    Plugin Author Design Extreme

    (@designextreme)

    @nicker_82?Fixed in version 1.55.

    I did check with and without temporary closure and it now runs as expected.

    Apologies for the inconvenience here.

    Thread Starter Nicker_82

    (@nicker_82)

    Now it works!
    Many thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Shortcode open_special writes out Warnings’ is closed to new replies.