Voici l’erreur que j’ai avec la v8 sur mon NAS Synology (je ne rencontre pas cette
erreur sur mon Mac avec MAMP.
Cette fonction dans uti.php est nouvelle dans la v8 (est-elle liée à la version de
sqlite3?)
\__/
(xx)
//||\\
Une erreur s'est produite
PHP error
Call to a member function getTimestamp() on null
in .../include/lib/Garradin/Utils.php:53
49 return $ts;
50 }
51
52 $ts = self::get_datetime($ts);
53 $date = strftime($format, $ts->getTimestamp());
54
55 $date = strtr($date, self::FRENCH_DATE_NAMES);
56 $date = strtolower($date);
57 return $date;
in .../include/lib/Garradin/Squelette_Filtres.php:107
→ Garradin\Utils::strftime_fr (2 arg.)
$ts
NULL
$format
string(10) "1510748280"
103 $jour = strtolower(Utils::strftime_fr('%A %e %B', $date));
104 }
105 else
106 {
107 $jour = strtolower(Utils::strftime_fr('%e %B %Y', $date));
108 }
109
110 if ($avec_heure)
111 {
→ Garradin\Squelette_Filtres::date_intelligente (1 arg.)
$date
string(10) "1510748280"
in .../cache/compiled/s_228297b5068f1ede97e3571308e402076160c395.php:35
→ call_user_func_array (2 arg.)
$function_name
array(2) {
[0]=> string(26) "Garradin\Squelette_Filtres"
[1]=> string(17) "date_intelligente"
}
$parameters
array(1) {
[0]=> string(10) "1510748280"
}
31 <h5>Posté : <?php $value = $this->getVariable('date_creation');
32$value = call_user_func_array(array (
33 0 => 'Garradin\\Squelette_Filtres',
34 1 => 'date_intelligente',
35), [$value,
36]);
37if (is_string($value) && trim($value)) $value = htmlspecialchars($value,
ENT_QUOTES, 'UTF-8', false);
38if ($value === true || trim($value) !== ''):
39echo is_bool($value) ? "" : $value;
in .../include/lib/Garradin/Squelette.php:779
→ require (1 arg.)
0
string(65) ".../cache/compiled/s_228297b5068f1ede97e3571308e402076160c395.php"
775
776
777 if (!$no_display)
778 {
779 require self::compile_get_path($tpl_id);
780 }
781 else
782 {
783 eval($tpl_id);
in .../include/lib/KD2/MiniSkel.php:847
→ Garradin\Squelette->fetch (1 arg.)
$template
string(13) "sommaire.html"
843 * Displays the parsed template file $template
844 */
845 public function display($template)
846 {
847 echo $this->fetch($template);
848 }
849}
850
851?>
in .../include/lib/Garradin/Squelette.php:844
→ KD2\MiniSkel->display (1 arg.)
$template
string(13) "sommaire.html"
840 $skel = 'article.html';
841 }
842 }
843
844 $this->display($skel);
845 }
846
847 static private function compile_get_path($path)
848 {
in .../www/index.php:17
→ Garradin\Squelette->dispatchURI (0 arg.)
13 Utils::redirect(ADMIN_URL);
14}
15
16$squelette = new Squelette;
17$squelette->dispatchURI();
18
Context
id b4mv4myu
date 2020-11-26T10:42:08+01:00
os Linux
language PHP 7.4.9
environment development
php_sapi fpm-fcgi
remote_ip 192.168.0.254
http_method GET
files_sent array(0) { }
rootDirectory /volume1/web/garradinb8
garradin_data_root /volume1/web/garradinb8
garradin_version 1.0.0-beta8
url http://88.121.149.161:8160/