Get started with PHP-Fusion

Start a New Thread

Users Participated

  • Falk
    Post made: 1
  • Kvido
    Post made: 3
  • robo123
    Post made: 1

  1. PHP-Fusion Support Forums
  2. PHP-Fusion 9 Support
  3. Content Administration

validation/date.php

Questions related to 9īs Articles, Blogs, Custom Pages, Downloads, Forums, Galleries, News, Web Links, FaQs, Polls and Image handling.

4 Replies 105 Views Last Updated on 7 days ago

Kvido


Senior Member

#1

Posted 9 days ago

includes / defender / validation / date.php
line 37
// $ timestamp = $ date_format-> getTimestamp ();
I had to comment out, because I worked in the store NEWS Editor administration.
Someone noticed a similar problem?

Code Gist: Download source  

public function verify_date() {
        $locale = fusion_get_locale();
        if (self::$inputValue && !empty(self::$inputConfig['date_format'])) {
            $date = new \DateTime();
            $date_format = $date->createFromFormat(self::$inputConfig['date_format'], self::$inputValue);
            //$timestamp = $date_format->getTimestamp();
            $dateParams = getdate($timestamp);

Posts: 451

Joined: 01/08/2007

robo123


Junior Member

#2

Posts: 46

Joined: 10/11/2014

Kvido


Senior Member

#3

Posted 7 days ago

Fatal error: Call to a member function getTimestamp() on a non-object in /home/www/pc-politika.cz/www/pc-politika.cz/includes/defender/validation/date.php on line 37

Posts: 451

Joined: 01/08/2007

Falk


Super Admin

#4

Posted 7 days ago

Ran a full lap today, I could not replicate this error.

Posts: 3662

Joined: 27/09/2005

Kvido


Senior Member

#5

Posted 7 days ago

Yes I understand. I'll wait.

On the second sharp Server
http://2.pc-polit...t-15042017

to me this error does not occur. Well, I do not know...

Posts: 451

Joined: 01/08/2007

Jump to Forum:
10 users are online
0 member and 10 guests