WordPress.org

Ready to get started?Download WordPress

Forums

Football Pool
[resolved] One prediction stop (5 posts)

  1. Maly77
    Member
    Posted 1 year ago #

    When I fill date and time from the past, error occurred:
    Fatal error: Call to undefined method DateTime::createFromFormat() in /virtual/konkurseuro2012.cba.pl/wp-content/plugins/football-pool/admin/class-football-pool-admin.php on line 187
    and on the pages:
    Fatal error: Call to undefined method DateTime::createFromFormat() in /virtual/konkurseuro2012.cba.pl/wp-content/plugins/football-pool/classes/class-football-pool-pool.php on line 15
    Dates also can not be changed :(

    http://wordpress.org/extend/plugins/football-pool/

  2. Maly77
    Member
    Posted 1 year ago #

    And one more time - player can watch typing others platers after this time (One prediction stop). Would be nice ;)

  3. AntoineH
    Member
    Plugin Author

    Posted 1 year ago #

    Fatal error: Call to undefined method DateTime::createFromFormat() in /virtual/konkurseuro2012.cba.pl/wp-content/plugins/football-pool/admin/class-football-pool-admin.php on line 187

    DateTime::createFromFormat needs PHP 5.3 or higher. What version are you running?

    And one more time - player can watch typing others platers after this time (One prediction stop). Would be nice ;)

    You don't want users to see what the predictions of other users are? Sorry, at the moment that is not possible in this plugin. It would need an extra configuration option and to be honest I really like the fact that you can check what others said.

  4. AntoineH
    Member
    Plugin Author

    Posted 1 year ago #

    If you cannot upgrade your PHP version, you can change the method calls:
    DateTime::createFromFormat( 'Y-m-d H:i', $var )

    with:
    new DateTime( $var )

    (replace $var with the correct variable name in the code.)

    Hope that will help.

  5. Maly77
    Member
    Posted 1 year ago #

    OK - changed version to 5.3 and works - thanks.
    No, I want users to see predictions of other users - and when I filled 'One prediction stop' I see all the predictions. Thanks ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.