WampServer

Apache, PHP, MySQL on Windows 

 
  • Accueil forum
  • Retour à WampServer
  • presentation
  • Download
  • Addons
  • Formations
  • Alter Way

 
Voir le sujet: Précédent•Suivant
Aller à : Liste des Forums•Liste des messages•Nouvelle discussion•Recherche•Connexion•Imprimer la vue
Erreur PHP
Envoyé par: BobV (---.subs.proxad.net)
Date: 30 March 2026 à 15:24

Bonjour,

J'avais installé Paheko sur mon Wampserver qui jusqu'à présent fonctionnait très bien et j'ai maintenant un problème pour y accéder. ça m'affiche ce message d'erreur PHP :


\__/
(xx)
//||\\

Une erreur s'est produite
PHP error
Deprecated: Paheko\UserTemplate\CommonModifiers::date(): Implicitly marking parameter $format as nullable is deprecated, the explicit nullable type must be used instead
in ...\include\lib\Paheko\UserTemplate/CommonModifiers.php:235

231
232 return @strftime($format, $ts->getTimestamp());
233 }
234
235 static public function date($ts, string $format = null, string $locale = 'fr'): ?string
236 {
237 if (null === $format) {
238 $format = 'd/m/Y à H:i';
239 }

in ...\include/init.php:114
→ require_once (0 arg.)

110 $path = ROOT . '/include/lib/' . $filename . '.php';
111 }
112
113 if (file_exists($path)) {
114 require_once $path;
115 }
116}, true);
117
118if (!defined('Paheko\DATA_ROOT')) {

in ...\include\lib\Paheko/Template.php:223
→ {closure:C:\wamp64\www\paheko\include\init.php:87} (1 arg.)
0

string(35) "Paheko\UserTemplate\CommonModifiers"

219 $this->register_modifier('restore_snippet_markup', function ($str) {
220 return preg_replace('!&lt;(/?mark)&gt;!', '<$1>', $str);
221 });
222
223 foreach (CommonModifiers:tongue sticking out smileyHP_MODIFIERS_LIST as $name => $params) {
224 $this->register_modifier($name, [CommonModifiers::class, $name]);
225 }
226
227 foreach (CommonModifiers::MODIFIERS_LIST as $key => $name) {

in ...\include\lib\Paheko/Template.php:23
→ Paheko\Template->__construct (0 arg.)

19 static protected $_instance = null;
20
21 static public function getInstance()
22 {
23 return self::$_instance ?: self::$_instance = new Template;
24 }
25
26 public function display(?string $template = null): self
27 {

in ...\www\admin/_inc.php:25
→ Paheko\Template::getInstance (0 arg.)

21{
22 return isset($_GET[$key]) ? $_GET[$key] : null;
23}
24
25$tpl = Template::getInstance();
26
27$form = new Form;
28$tpl->assign_by_ref('form', $form);
29

in ...\www\admin/index.php:12
→ require_once (1 arg.)
0

string(22) "...\www\admin\_inc.php"

8use Paheko\Entities\Files\File;
9use Paheko\Extensions;
10use Paheko\Plugins;
11
12require_once __DIR__ . '/_inc.php';
13
14$session = Session::getInstance();
15
16$banner = '';

Context
date 2026-03-30T14:50:06+02:00
duration 1303.5221099854
environment development
hostname paheko.local
http_files array(0) { }
http_method GET
http_post array(0) { }
http_user_agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:149.0) Gecko/20100101 Firefox/149.0
id 74xq1hmz
language PHP 8.5.1
memory_peak 2097152
memory_used 2097152
os WINNT
paheko_data_root C:\wamp64\www\paheko/data
paheko_version 1.3.13
php_sapi apache2handler
remote_ip ::1
root_directory C:\wamp64\www\paheko
server_addr ::1
user_addr ::1
url [paheko.local]

Merc d'avance pour votre aide.

Options: Répondre•Citer ce Message
Re: Erreur PHP
Envoyé par: Otomatic (Modérateur)
Date: 30 March 2026 à 16:04

Bonjour,

C'est clair ! Il y a une erreur dans votre code :
PHP error
Deprecated: Paheko\UserTemplate\CommonModifiers::date(): Implicitly marking parameter $format as nullable is deprecated, the explicit nullable type must be used instead
in ...\include\lib\Paheko\UserTemplate/CommonModifiers.php:235

Il faut le modifier ou revenir à une version PHP antérieure.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: Répondre•Citer ce Message


Aller à : Liste des Forums•Liste des messages•Recherche•Connexion
Désolé, seuls les utilisateurs connectés peuvent envoyer des messages dans ce forum.
Cliquer ici pour se connecter

design by jidePowered by Alter Way get firefoxget PHP