Get started with PHP-Fusion

Start a New Thread

Users Participated

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

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

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 667 Views Last Updated on 5 months ago

Kvido


Senior Member

#1

Posted 6 months 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: 448

Joined: 01/08/2007

RobiNN


Member

#2

Posts: 77

Joined: 10/11/2014

Kvido


Senior Member

#3

Posted 5 months 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: 448

Joined: 01/08/2007

Falk


Super Admin

#4

Posted 5 months ago

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

Posts: 3844

Joined: 27/09/2005

Kvido


Senior Member

#5

Posted 5 months 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: 448

Joined: 01/08/2007

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