Meine Buchung auf Wordpress pluging nicht arbeiten sagen, es Fatal error: Call auf eine Elementfunktion Format() auf boolean in ...Fatal error: Call auf eine Elementfunktion Format() auf boolean
und Sag mir, ich gehe zu dieser Zeile des Archivs
public static function convert_date_to_mdY($date_string, $date_format = null) {
if (! $date_format) {
$date_format = AWE_function::get_current_date_format();
}
if ('m/d/Y' == $date_format) {
return $date_string;
}
$d = DateTime::createFromFormat($date_format, $date_string);
return $d->format('m/d/Y');
}
Was ist das Problem?
Die Antwort unten ist richtig Überprüfung der [Dokumentation auf Datetime :: createFromFormat Rückgabewert] (http: //php.net/manual/en/datetime.createfromformat.php#refsect1-datetime.createfromformat-returnvalues) –