Bonjour, Je suis tombé sur cette anomalie avec la version 1.2.5, quelqu’un l’a-t-il
aussi rencontré. Je l’ai eu avec une version locale avec wampserver et le l’ai aussi
avec la version Windows 10. Je n’avais pas de problème avec la 1.2.4. Je n’ose pas
mettre la version en ligne sur mon hébergement OVH. Cordialement Patrick Jorion Une
erreur s'est produite AssertionError assert(isset($current_only) &&
is_bool($current_only)) in
...\data\cache\shared\compiled/b61cf1a972e5b4aa4182fe175f8a3c2ee387ba65.tpl.php.tmp:6
2namespace Garradin; 3if (!isset($this) || !is_object($this) || (!($this instanceof
\KD2\Smartyer) && !is_subclass_of($this, '\KD2\Smartyer', true))) {
die("Wrong call context."); } if (!isset($_i)) { $_i = []; } if
(!isset($_blocks)) { $_blocks = []; } ?><?php 4assert(isset($create) &&
is_bool($create)); 5assert(isset($has_past_services) &&
is_bool($has_past_services)); 6assert(isset($current_only) &&
is_bool($current_only)); 7assert(isset($form_url) && is_string($form_url));
8assert(isset($today) && $today instanceof \DateTimeInterface); 9assert($create
=== false || isset($account_targets)); 10assert(isset($grouped_services) &&
is_array($grouped_services)); in
...\data\cache\shared\compiled/b61cf1a972e5b4aa4182fe175f8a3c2ee387ba65.tpl.php.tmp:6 →
assert (2 arg.) $assertion bool(false) $description string(54)
"assert(isset($current_only) && is_bool($current_only))" 2namespace
Garradin; 3if (!isset($this) || !is_object($this) || (!($this instanceof \KD2\Smartyer)
&& !is_subclass_of($this, '\KD2\Smartyer', true))) { die("Wrong
call context."); } if (!isset($_i)) { $_i = []; } if (!isset($_blocks)) { $_blocks =
[]; } ?><?php 4assert(isset($create) && is_bool($create));
5assert(isset($has_past_services) && is_bool($has_past_services));
6assert(isset($current_only) && is_bool($current_only)); 7assert(isset($form_url)
&& is_string($form_url)); 8assert(isset($today) && $today instanceof
\DateTimeInterface); 9assert($create === false || isset($account_targets));
10assert(isset($grouped_services) && is_array($grouped_services)); in
...\include\lib\KD2/Smartyer.php:607 → include (1 arg.) 0 string(83)
"...\data\cache\shared\compiled\b61cf1a972e5b4aa4182fe175f8a3c2ee387ba65.tpl.php.tmp"
603 extract($this->variables, EXTR_REFS); 604
605 ob_start(); 606
607 include $this->compiled_template_path .
'.tmp'; 608 609 $out = ob_get_clean();
610 } 611 catch (\Exception $e) in
...\include\lib\KD2/Smartyer.php:363 → KD2\Smartyer->compile (0 arg.)
359 $time = @filemtime($this->compiled_template_path); 360
361 if (!$time || (!is_null($this->template_path) &&
filemtime($this->template_path) > $time)) 362 {
363 return $this->compile();
364 } 365 366 extract($this->variables,
EXTR_REFS); 367 in ...\include\lib\KD2/Smartyer.php:285 → KD2\Smartyer->fetch (1
arg.) $template NULL 281 * @return Smartyer 282 */ 283 public
function display($template = null) 284 { 285 echo
$this->fetch($template); 286 return $this; 287 } 288
289 protected function _isPathRelative(string $path): bool in
...\data\cache\shared\compiled/ead645183dcce5a6fb23b0b69274f85e50b6c462.tpl.php.tmp:12 →
KD2\Smartyer->display (0 arg.) 8 9<?php echo
$this->functions['form_errors']([], $this); //#5?> 10 11 12<?php $_s =
get_class($this); $_s = new $_s('services/user/_service_user_form.tpl', $this);
$_s->assign(array_merge(get_defined_vars(), ['create' => true, ]));
$_s->display(); unset($_s); //#7?> 13 14 15<?php $_s = get_class($this); $_s =
new $_s('admin/_foot.tpl', $this); $_s->assign(get_defined_vars());
$_s->display(); unset($_s); //#9?> in ...\include\lib\KD2/Smartyer.php:607 →
include (1 arg.) 0 string(83)
"...\data\cache\shared\compiled\ead645183dcce5a6fb23b0b69274f85e50b6c462.tpl.php.tmp"
603 extract($this->variables, EXTR_REFS); 604
605 ob_start(); 606
607 include $this->compiled_template_path .
'.tmp'; 608 609 $out = ob_get_clean();
610 } 611 catch (\Exception $e) in
...\include\lib\KD2/Smartyer.php:363 → KD2\Smartyer->compile (0 arg.)
359 $time = @filemtime($this->compiled_template_path); 360
361 if (!$time || (!is_null($this->template_path) &&
filemtime($this->template_path) > $time)) 362 {
363 return $this->compile();
364 } 365 366 extract($this->variables,
EXTR_REFS); 367 in ...\include\lib\KD2/Smartyer.php:318 → KD2\Smartyer->fetch (0
arg.) 314 { 315 // Compatibility with legacy Smarty calls
316 if (!is_null($template)) 317 {
318 return (new Smartyer($template,
$this))->fetch(); 319 } 320 321 if
(is_null($this->compiled_dir)) 322 { in
...\include\lib\KD2/Smartyer.php:285 → KD2\Smartyer->fetch (1 arg.) $template
string(27) "services/user/subscribe.tpl" 281 * @return Smartyer
282 */ 283 public function display($template = null) 284 {
285 echo $this->fetch($template); 286
return $this; 287 } 288 289 protected function _isPathRelative(string
$path): bool in ...\include\lib\Garradin/Template.php:32 → KD2\Smartyer->display (1
arg.) $template string(27) "services/user/subscribe.tpl"
28 if (isset($_GET['_pdf'])) {
29 return $this->PDF($template);
30 } 31 32 return
parent::display($template); 33 } 34 35 public function PDF(?string
$template = null, ?string $title = null) 36 { in
...\www\admin\services\user/subscribe.php:86 → Garradin\Template->display (1 arg.)
$template string(27) "services/user/subscribe.tpl" 82
83$tpl->assign(compact('csrf_key', 'users',
'account_targets', 'service_user', 'allow_users_edit',
'copy_service', 'copy_fee', 'copy_only_paid'));
84$tpl->assign('projects', Projects::listAssocWithEmpty()); 85
86$tpl->display('services/user/subscribe.tpl'); 87 Context date
2023-01-31T14:37:40+00:00 duration 101.89604759216 environment development
garradin_data_root C:\wamp64\www\paheko-1.2.5/data garradin_version 1.2.5 hostname
paheko125 http_files array(0) { } http_method GET http_post array(0) { } http_referrer
http://paheko125/admin/services/user/?id=12 http_user_agent Mozilla/5.0 (Windows NT 10.0;
Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 id
5yr6o2oi language PHP 8.0.13 memory_peak 2097152 memory_used 2097152 os WINNT php_sapi
apache2handler remote_ip ::1 root_directory C:\wamp64\www\paheko-1.2.5 server_addr ::1
user_addr ::1 url http://paheko125/admin/services/user/subscribe.php?user=12