Ticket Hash: daf6d91e6f4913dc78f5f067a41bb29194c3fc9c
Title: AssertionError assert(isset($current_only) && is_bool($current_only))
Status: Fixed Type: Bug
Severity: Critique Priority: Immediate
Subsystem: Resolution: Fixed
Last Modified: 2023-02-04 00:09:58
Version Found In: 1.2.5
User Comments:

fr.ventabren added on 2023-02-03 17:49:07:

Erreur après avoir cliqué sur le bouton "inscrire à une activité" à partir de la fiche d'un membre.

Une erreur s'est produite AssertionError assert(isset($current_only) && is_bool($current_only)) in ...datacachesharedcompiled/0cbd8e56e11565af155604bf83250527e5411739.tpl.php.tmp:6

2namespace Garradin; 3if (!isset($this) || !is_object($this) || (!($this instanceof KD2Smartyer) && !is_subclass_of($this, 'KD2Smartyer', 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 ...datacachesharedcompiled/0cbd8e56e11565af155604bf83250527e5411739.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 KD2Smartyer) && !is_subclass_of($this, 'KD2Smartyer', 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 ...includelibKD2/Smartyer.php:607 → include (1 arg.) 0

string(83) "...datacachesharedcompiled0cbd8e56e11565af155604bf83250527e5411739.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 ...includelibKD2/Smartyer.php:363 → KD2Smartyer->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 ...includelibKD2/Smartyer.php:285 → KD2Smartyer->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 ...datacachesharedcompiled/467c0c4a1f613108bc002a10ac78e80c5feb0ff4.tpl.php.tmp:12 → KD2Smartyer->display (0 arg.)

8 9<?php echo $this->functions'form_errors'; //#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 ...includelibKD2/Smartyer.php:607 → include (1 arg.) 0

string(83) "...datacachesharedcompiled467c0c4a1f613108bc002a10ac78e80c5feb0ff4.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 ...includelibKD2/Smartyer.php:363 → KD2Smartyer->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 ...includelibKD2/Smartyer.php:318 → KD2Smartyer->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 ...includelibKD2/Smartyer.php:285 → KD2Smartyer->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 ...includelibGarradin/Template.php:32 → KD2Smartyer->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 ...wwwadminservicesuser/subscribe.php:86 → GarradinTemplate->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-02-03T17:37:13+00:00 duration 1215.3398990631 environment development garradin_data_root C:wamp64wwwpaheko/data garradin_version 1.2.5 hostname paheko.local http_files array(0) { } http_method GET http_post array(0) { } http_referrer http://paheko.local/admin/membres/fiche.php?id=192 http_user_agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0 id 94ev0jna language PHP 8.1.0 memory_peak 2097152 memory_used 2097152 os WINNT php_sapi apache2handler remote_ip ::1 root_directory C:wamp64wwwpaheko server_addr ::1 user_addr ::1 url http://paheko.local/admin/services/user/subscribe.php?user=192


bohwaz added on 2023-02-03 23:09:58:

Bonjour, problème déjà réglé hier, une version corrective sera sortie quand j'aurais un peu de temps.

Voir les discussions : https://admin.kd2.org/lists/hebergement@paheko.cloud/archives/25374

https://admin.kd2.org/lists/hebergement@paheko.cloud/archives/25386