WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
Solution : Warning: date() expects parameter 2 to be long, string given in (3 posts)

  1. Carsten Bach
    Member
    Posted 1 year ago #

    I got an Error "Warning: date() expects parameter 2 to be long, string given in" in line "plugins/events-manager/templates/templates/ical.php on line 36"

    I solved it by changing the related core file on this line from this:
    $dateModified = date('Ymd\THis\Z', $EM_Event->event_date_modified);
    into this
    $dateModified = date('Ymd\THis\Z', (int)$EM_Event->event_date_modified);

    http://wordpress.org/extend/plugins/events-manager/

  2. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    thx, already fixed in the dev version last week, but better to wrap those in strtotime()

  3. Carsten Bach
    Member
    Posted 1 year ago #

    You are right, strtotime() is much more friendly.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic