• Resolved rkwonline

    (@rkwonline)


    My client let me know that the calendar suddenly stopped working – without them ever having had access to the backend of their website. In stead of puling events, it just says

    https://jensen-bugge.dk/en/calendar/.Warning: Invalid argument supplied for foreach() in/var/www/jensen-bugge.dk/public_html/wp-content/plugins/eventprime-event-calendar-management/public/partials/themes/default/events/views/card.php on line 12

    Any way you can help me?
    THANK YOU!!

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support epsupport

    (@epsupport)

    Hi @rkwonline

    Thank you for reporting the warning message. 

    The message suggests that event data is unavailable for the frontend event listing views, specifically the square grid view in your case. 

    To better understand and resolve this, could you please confirm the following:

    1. Are you using a specific shortcode for the event listing? If so, please share the shortcode for further investigation.
    2. Were the events listed in the backend sub-menu imported, or were they previously created by you?
    Thread Starter rkwonline

    (@rkwonline)

    Hi @epsupport,

    Thank you very much for your swift reply. I’ve always admired your support!

    1. I’m using the short code: [em_events]

    2. The events were created by me. The import/export plugin was/is deactivated (but expected to be needed)


    Additional information:

    The auto-update of the plugin has been left active since 2023.

    I created the website back in 2023, and installed the plugin at that time. No one has edited or touched the website since then (also didn’t add or delete any events). I just got the information that it seemed like there was a problem with the calendar-page, and when I went to the website, the plugin isn’t working.

    – I’ve tried to simply changed the event dates to 2025 to see if the events would appear, but still the same error.

    – I deleted and reinstalled the plugin, but still the same error.

    – I tried to create a new event, and got the following error code (in the “date and time” tab):

    Fatal error: Uncaught Exception: DateTime::__construct() [<a href=’http://php.net/manual/en/datetime.construct’>datetime.construct</a>%5D: Failed to parse time string (2025-09-17 6:i A) at position 11 (6): Unexpected character in /var/www/jensen-bugge.dk/public_html/wp-content/plugins/eventprime-event-calendar-management/includes/class-eventprime-functions.php:1768 Stack trace: #0 /var/www/jensen-bugge.dk/public_html/wp-content/plugins/eventprime-event-calendar-management/includes/class-eventprime-functions.php(1768): DateTime->__construct(‘2025-09-17 6:i …’) #1 /var/www/jensen-bugge.dk/public_html/wp-content/plugins/eventprime-event-calendar-management/includes/class-eventprime-functions.php(3602): Eventprime_Basic_Functions->ep_get_event_date_time_diff(Object(stdClass)) #2 /var/www/jensen-bugge.dk/public_html/wp-content/plugins/eventprime-event-calendar-management/admin/class-eventprime-event-calendar-management-admin.php(1370): Eventprime_Basic_Functions->get_single_event(1025, Object(WP_Post)) #3 /var/www/jensen-bugge in /var/www/jensen-bugge.dk/public_html/wp-content/plugins/eventprime-event-calendar-management/includes/class-eventprime-functions.php on line 1768


    When trying to create a new event, the start and end time looks weird:
    Please see screen shot: https://jensen-bugge.dk/wp-content/uploads/2025/09/event-time.png


    Please let me know, if you need full access to the backend.

    Once again, thank you very much for your support!

    Moderator Support Moderator

    (@moderator)

    Please let me know if you want full access to the backend.

    @rkwonline   Please don’t offer to send or post logon credentials on these forums: https://wordpress.org/support/guidelines#the-bad-stuff

    It is not OK to offer, enter, or send site credentials on these forums. Thanks for your cooperation.

    Thread Starter rkwonline

    (@rkwonline)

    I also got this email below, 4 hours ago from WordPress. Maybe that can also help pinpoint the problem:

    WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

    In this case, WordPress caught an error with one of your plugins, EventPrime – Modern Events Calendar, Bookings and Tickets.

    First, visit your website (https://jensen-bugge.dk/) and check for any visible issues. Next, visit the page where the error was caught (https://jensen-bugge.dk/wp-admin/post.php?post=1025&action=edit&message=6) and check for any visible issues.

    Please contact your host for assistance with investigating this issue further.

    If your site appears broken and you can't access your dashboard normally, WordPress now has a special "recovery mode". This lets you safely login to your dashboard and investigate further.

    https://jensen-bugge.dk/wp-login.php?action=enter_recovery_mode&rm_token=TOKENREMOVED

    To keep your site safe, this link will expire in 1 day. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 6.8.2
    Active theme: Divi (version 4.27.4)
    Current plugin: EventPrime – Modern Events Calendar, Bookings and Tickets (version 4.1.4.0)
    PHP version 7.4.33

    Error Details
    =============
    An error of type E_ERROR was caused in line 1768 of the file /var/www/jensen-bugge.dk/public_html/wp-content/plugins/eventprime-event-calendar-management/includes/class-eventprime-functions.php. Error message: Uncaught Exception: DateTime::__construct() [datetime.construct]: Failed to parse time string (2025-09-17 6:i A) at position 11 (6): Unexpected character in /var/www/jensen-bugge.dk/public_html/wp-content/plugins/eventprime-event-calendar-management/includes/class-eventprime-functions.php:1768
    Stack trace:
    #0 /var/www/jensen-bugge.dk/public_html/wp-content/plugins/eventprime-event-calendar-management/includes/class-eventprime-functions.php(1768): DateTime->__construct('2025-09-17 6:i ...')
    #1 /var/www/jensen-bugge.dk/public_html/wp-content/plugins/eventprime-event-calendar-management/includes/class-eventprime-functions.php(3602): Eventprime_Basic_Functions->ep_get_event_date_time_diff(Object(stdClass))
    #2 /var/www/jensen-bugge.dk/public_html/wp-content/plugins/eventprime-event-calendar-management/admin/class-eventprime-event-calendar-management-admin.php(1370): Eventprime_Basic_Functions->get_single_event(1025, Object(WP_Post))
    #3 /var/www/jensen-bugge


    • This reply was modified 8 months ago by threadi.
    • This reply was modified 8 months ago by Dion Hulse.
    Plugin Support epsupport

    (@epsupport)

    @rkwonline
    Thank you for bringing this issue to our attention. We appreciate your feedback, and we want to assure you that we are committed to resolving this issue in our upcoming releases. 

    Your input is valuable to us, and we look forward to delivering an improved experience in the future.

    • This reply was modified 8 months ago by epsupport.
    Thread Starter rkwonline

    (@rkwonline)

    Hi @epsupport,

    I’m not really understanding your answer, which doesn’t address the issues.

    Can you please support me in fixing the problem with the plugin?

    Once again, thank you for your time!!

    Plugin Support epsupport

    (@epsupport)

    Hi @rkwonline

    Our apologies for the delayed response.

    The warning you reported —
    Warning: Invalid argument supplied for foreach() in .../eventprime-event-calendar-management/public/partials/themes/default/events/views/card.php on line 12

    We have fixed this issue, and the resolution is included in our latest release v4.1.5.0. Could you please update to the latest version, test it, and confirm if it resolves the problem on your end?

    Thank you for bringing this to our attention and for your patience while we worked on the fix.

    Looking forward to your response.

    Thread Starter rkwonline

    (@rkwonline)

    Hi @epsupport !

    I updated, and it seems to work! Thank you!!

    Though, when I create a new event, I’m not able to chose the time – it just says “12:i A”.

    Please see print screen on this link: https://jensen-bugge.dk/wp-content/uploads/2025/09/time-not-working.png

    Only after having saved the new event (without adding the start time), and I go back to edit the newly created event, it lets me change the time… But that’s not optimal for my client..

    Can you please help me??

    Plugin Support epsupport1

    (@epsupport1)

    Thank you for your message — we’re happy to hear the update resolved your previous issue!

    Regarding the problem with selecting the time when creating a new event, it appears this may be caused by a time format conflict. Please ensure that the Start Time and End Time fields in EventPrime are displayed as dropdown menus, which is the default and expected behavior.

    We also recommend temporarily deactivating other plugins to check if any might be causing a conflict.

    Please let us know if the issue continues even after verifying the correct settings — we’ll be glad to assist further.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Invalid argument in line 12’ is closed to new replies.