Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Stephen Harris

    (@stephenharris)

    Have you enabled debug mode? Does that give you any error messages?

    Thread Starter drreeder

    (@drreeder)

    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 – https://localhost/lapoa/wp-admin/post.php”.

    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

    (@stephenharris)

    That’s odd. What do the error logs say?

    Thread Starter drreeder

    (@drreeder)

    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

    (@drreeder)

    The same thing also happens with the Preview and Save Draft buttons.

    Plugin Author Stephen Harris

    (@stephenharris)

    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 so that the else part of that if statement always runs.

    Thread Starter drreeder

    (@drreeder)

    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

    (@drreeder)

    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.

    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

    (@stephenharris)

    Hi Illuminatus_PPM,

    Can you confirm if you are running this on a Windows server too?

    Thread Starter drreeder

    (@drreeder)

    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

    (@stephenharris)

    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 – would you be able to test a patch for this when it’s released?

    Thread Starter drreeder

    (@drreeder)

    Marked topic as resolved.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Problem adding new event’ is closed to new replies.