Title: Problem adding new event
Last modified: August 21, 2016

---

# Problem adding new event

 *  Resolved [drreeder](https://wordpress.org/support/users/drreeder/)
 * (@drreeder)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/problem-adding-new-event/)
 * Hey Stephen,
 * Having a problem adding or editing an event with EO 2.7.3. Think it may have 
   started after updating WP to 3.8.2. I’m developing on localhost and when I click
   the Publish button, the URL displayed is [http://localhost/sitename/wp-admin/post.php](http://localhost/sitename/wp-admin/post.php),
   but the page is completely blank.
 * I’ve tried deactivating/deleting then reinstalling the plugin but no luck. Any
   other reports like this or any ideas?
 * Thanks!
    Dorian
 * [https://wordpress.org/plugins/event-organiser/](https://wordpress.org/plugins/event-organiser/)

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

 *  Plugin Author [Stephen Harris](https://wordpress.org/support/users/stephenharris/)
 * (@stephenharris)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/problem-adding-new-event/#post-4793205)
 * Have you enabled [debug mode](http://codex.wordpress.org/Function_Reference/wp_debug_mode)?
   Does that give you any error messages?
 *  Thread Starter [drreeder](https://wordpress.org/support/users/drreeder/)
 * (@drreeder)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/problem-adding-new-event/#post-4793226)
 * I enabled debug mode in wp-config.php, but no WP errors were displayed. After
   clicking the Publish/Update button and the blank page displays as noted in my
   original post, Firebug shows “NetworkError: 500 Internal Server Error – [http://localhost/lapoa/wp-admin/post.php&#8221](http://localhost/lapoa/wp-admin/post.php&#8221);.
 * The event is actually saved, but the start and end date and time are apparently
   not. The Events page in Dashboard displays the old events fine, but for the new
   events, Start Date/Time and End Date/Time are both blank. When I reopen the new
   event to edit, the dates and times are set to the current date and time.
 *  Plugin Author [Stephen Harris](https://wordpress.org/support/users/stephenharris/)
 * (@stephenharris)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/problem-adding-new-event/#post-4793227)
 * That’s odd. What do the error logs say?
 *  Thread Starter [drreeder](https://wordpress.org/support/users/drreeder/)
 * (@drreeder)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/problem-adding-new-event/#post-4793229)
 * I set `define('WP_DEBUG_LOG', true);` and reedited the event, but no debug.log
   file got created in /wp-content/. I’m probably doing something wrong. I’m a retired
   programming manager, but I’m new to WP and php…still have a lot to learn.
 *  Thread Starter [drreeder](https://wordpress.org/support/users/drreeder/)
 * (@drreeder)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/problem-adding-new-event/#post-4793238)
 * The same thing also happens with the Preview and Save Draft buttons.
 *  Plugin Author [Stephen Harris](https://wordpress.org/support/users/stephenharris/)
 * (@stephenharris)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/problem-adding-new-event/#post-4793239)
 * The missing log file could be related to file permissions. Your server should
   keep its own error log somewhere, but in any case I’m suprised `WP_DEBUG` hasn’t
   thrown up anything.
 * Have you disabled all other plug-ins/themes to check that there isn’t a conflict?
 * There were updates in 1.7.* to how event dates are validated. Basically it uses`
   date_create_from_format()` if you’re running php5.3 and otherwise falls back 
   to a php5.2 compatible version. My hunch is that you’re running php5.3, but that
   function isn’t available.
 * The relevant code is in `eo_check_datetime()`, and you test that theory by altering
   [this line](https://github.com/stephenharris/Event-Organiser/blob/2.7.3/includes/event-organiser-utility-functions.php#L556)
   so that the `else` part of that if statement always runs.
 *  Thread Starter [drreeder](https://wordpress.org/support/users/drreeder/)
 * (@drreeder)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/problem-adding-new-event/#post-4793240)
 * I use XAMPP for Windows 1.7.1 and it reports php 5.2.9. I will dig into some 
   of your suggestions. Thanks.
 *  Thread Starter [drreeder](https://wordpress.org/support/users/drreeder/)
 * (@drreeder)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/problem-adding-new-event/#post-4793280)
 * Stephen, I have looked into `function eo_check_datetime()` and with a little 
   debugging, I find that I get into the else portion of the if…else statement (
   php 5.2.9), but everything fails with the call to `strptime` (line 580).
 * As I mentioned, I am developing on localhost using XAMPP for Windows 1.7.1. Checking
   the PHP manual, I find that `strptime` is not implemented on Windows platforms.
   I think my next step will be to migrate to php 5.3.
 *  [Illuminatus_PPM](https://wordpress.org/support/users/illuminatus_ppm/)
 * (@illuminatus_ppm)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/problem-adding-new-event/#post-4793308)
 * I am experiencing the exact same problem as drreeder, which only started after
   upgrading to EO 2.7.3 a few days ago.
 * Thanks
 *  Plugin Author [Stephen Harris](https://wordpress.org/support/users/stephenharris/)
 * (@stephenharris)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/problem-adding-new-event/#post-4793313)
 * Hi Illuminatus_PPM,
 * Can you confirm if you are running this on a Windows server too?
 *  Thread Starter [drreeder](https://wordpress.org/support/users/drreeder/)
 * (@drreeder)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/problem-adding-new-event/#post-4793328)
 * Hi Stephen,
 * Just a follow-up to close the loop on this, at least from my perspective.
 * I got my localhost upgraded to PHP 5.3.8 and now that `date_create_from_format()`
   is being called (in the `if` statement) instead of `strptime` being called (in
   the `else` statement), I can create, publish and update events just fine.
 * I think the fact that the plugin uses a call to a function (`strptime`) that 
   is not implemented on Windows platforms is still a problem, but the workaround
   for me was to upgrade to PHP 5.3.x.
 * Thanks for your help!
 *  Plugin Author [Stephen Harris](https://wordpress.org/support/users/stephenharris/)
 * (@stephenharris)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/problem-adding-new-event/#post-4793343)
 * Great, thanks for letting me know.
 * I’ll implement something very basic for Windows php5.2 servers. Fortunately they
   seem fairly rare, but it’d be nice for users not to have to worry about their
   server set up.
 * [@illuminatus_ppm](https://wordpress.org/support/users/illuminatus_ppm/) – would
   you be able to test a patch for this when it’s released?
 *  Thread Starter [drreeder](https://wordpress.org/support/users/drreeder/)
 * (@drreeder)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/problem-adding-new-event/#post-4793370)
 * Marked topic as resolved.

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

The topic ‘Problem adding new event’ is closed to new replies.

 * ![](https://ps.w.org/event-organiser/assets/icon-256x256.png?rev=978123)
 * [Event Organiser](https://wordpress.org/plugins/event-organiser/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/event-organiser/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/event-organiser/)
 * [Active Topics](https://wordpress.org/support/plugin/event-organiser/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/event-organiser/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/event-organiser/reviews/)

 * 13 replies
 * 3 participants
 * Last reply from: [drreeder](https://wordpress.org/support/users/drreeder/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/problem-adding-new-event/#post-4793370)
 * Status: resolved