As previously announced via banners and our newsletters, support is no longer available through this platform.

For easier navigation, you can still click on "Submit a Ticket" here, choose the appropriate category, and you'll be redirected to the correct support channel for your plugin.

You can still access your previous tickets and browse public tickets, but please note that responding to tickets is no longer possible.

Paid customers: Please log in to your store account for support.

Pre-purchase questions: Use the support widget in the bottom-right corner of our websites:
https://wpamelia.com
https://wpdatatables.com
https://wpreportbuilder.com

Okay
  Public Ticket #1857262
not working after update
Closed

Comments

  •  1
    akifersoy started the conversation

    after update to version 1.4.1 my site is not working.

    inspecting page said:

    Failed to load resource: the server responded with a status of 500 ()
    Selected Element
    <div class="so-widget-sow-editor so-widget-sow-editor-base">…</div>

    https://www.terapistim.com/wp-admin/admin-ajax.php?action=wpamelia_api&call=/slots&serviceId=1&providerIds[]=1&extras=[]&group=1&persons=1

    Please help!

  • [deleted] replied

    Hi akifersoy,

    It is fixed and it should work now.

  •  1
    akifersoy replied

    Thanks a lot.

    May I learn how you fixed it, so that I may solve if a similar problem arises and I will have a deeper understanding of the plugin.

  • [deleted] replied

    Hi akifersoy,

    There was some code in version 1.4.1 that was not supported by PHP 5.6 that you have. In file ../wp-content/plugins/ameliabooking/src/Domain/Services/TimeSlot/TimeSlotService.php in function getProviderSpecialDayOccupiedTimeIntervals I have replaced this code:

    $specialDaysPeriod = new \DatePeriod(
    $specialDay->getStartDate()->getValue(),
        new \DateInterval('P1D'),
        (clone $specialDay->getEndDate()->getValue())->modify('+1 day')
    );

    with:

    $endDateCopy = clone $specialDay->getEndDate()->getValue();
    $specialDaysPeriod = new \DatePeriod(
        $specialDay->getStartDate()->getValue(),
        new \DateInterval('P1D'),    $endDateCopy->modify('+1 day')
    );