WordPress.org

Support

Support » Plugins and Hacks » Football Pool » [Resolved] [Plugin: Football Pool] One prediction stop

[Resolved] [Plugin: Football Pool] One prediction stop

  • 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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • And one more time – player can watch typing others platers after this time (One prediction stop). Would be nice 😉

    Plugin Author AntoineH

    @antoineh

    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.

    Plugin Author AntoineH

    @antoineh

    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.

    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 😉

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] [Plugin: Football Pool] One prediction stop’ is closed to new replies.
Skip to toolbar