Archives de la liste a​i​d​e​@p​a​h​e​k​o​.c​l​o​u​d​

version 0.9.8

volley ball loisir malouin VBLM

25/08/2020 15:36:58

bonjour,

je viens de mettre à jour ma version de 0.9.7 vers 0.9.8.

j'ai un message d'erreur lorsque je clique sur l'édition d'une page
wiki.
du coup je ne peux pas modifier les pages du wiki. Merci de votre aide,

cordialament, Michel
---------------------------------------------------------------------------------------

Une erreur s'est produite KD2\Smartyer_ExceptionWarning: Use of undefined
constant php - assumed 'php' (this will throw an Error in a future version
of PHP)in .../templates/admin/wiki/*editer.tpl*:*103*

*99*        </dl>*100*    </fieldset>*101**102*    <p
class="submit">*103        {csrf_field
key="wiki_edit_%d"|args:$page.id <http://page.id>}**104*        <input
type="hidden" name="revision_edition" value="{form_field
name=revision_edition default=$page.revision}" />*105*        <input
type="hidden" name="debut_edition" value="{form_field
name=debut_edition default=$time}" />*106*        <input id="f_id"
value="{$page.id}" type="hidden" />*107*        <input
type="submit"
name="save" value="Enregistrer &rarr;" />

in .../include/lib/KD2/*Smartyer.php*:*666*→ KD2\Smartyer->parseError *(3
arg.)*
$line

string(3) "103"

$message

string(108) "Warning: Use of undefined constant php - assumed 'php'
(this will throw an Error in a future version of PHP)"

$previous

object(ErrorException) (8) {
}

*662*			$compiled = implode("\n", $compiled);*663**664*			if
(preg_match('!//#(\d+)\?>!', $compiled,
$match))*665*			{*666				$this->parseError($match[1],
$e->getMessage(), $e);**667*			}*668*			else*669*			{*670*				throw
$e;

in .../include/lib/KD2/*Smartyer.php*:*395*→ KD2\Smartyer->compile *(0
arg.)*

*391*		$time = @filemtime($this->compiled_template_path);*392**393*		if
(!$time || (!is_null($this->template_path) &&
filemtime($this->template_path) > $time))*394*		{*395			return
$this->compile();**396*		}*397**398*		extract($this->variables,
EXTR_REFS);*399*

in .../include/lib/KD2/*Smartyer.php*:*350*→ KD2\Smartyer->fetch *(0 arg.)*

*346*	{*347*		// Compatibility with legacy Smarty calls*348*		if
(!is_null($template))*349*		{*350			return (new Smartyer($template,
$this))->fetch();**351*		}*352**353*		if
(is_null($this->compiled_dir))*354*		{

in .../include/lib/KD2/*Smartyer.php*:*334*→ KD2\Smartyer->fetch *(1 arg.)*
$template

string(21) "admin/wiki/editer.tpl"

*330*	 * @return Smartyer*331*	 */*332*	public function
display($template = null)*333*	{*334		echo
$this->fetch($template);**335*		return $this;*336*	}*337**338*	/**

in .../www/admin/wiki/*editer.php*:*86*→ KD2\Smartyer->display *(1 arg.)*
$template

string(21) "admin/wiki/editer.tpl"

*82*$tpl->assign('date', $date ? strtotime($date) :
$page->date_creation);*83**84*$tpl->assign('custom_js',
['wiki_editor.js',
'wiki-encryption.js']);*85**86$tpl->display('admin/wiki/editer.tpl');**87*

PHP errorWarning: Use of undefined constant php - assumed 'php' (this will
throw an Error in a future version of PHP)in .../cache/compiled/
*115a9a56dd334c4d7942528736a2ca569f4b502a.tpl.php.tmp*:*116*

*112*    <fieldset class="wikiRevision">*113*        <dl>*114*
   <dt><label for="f_modification">Résumé des
modifications</label>
<i>(facultatif)</i></dt>*115*            <dd><input
type="text"
name="modification" id="f_modification" value="<?php echo
$this->functions['form_field'](['data' => $page,
'name' =>
'modification', ], $this); //#92?>" /></dd>*116
<?php/*#3#**117**118**119**120*

in .../include/lib/KD2/*Smartyer.php*:*646*→ include *(1 arg.)*
0

string(71)
".../cache/compiled/115a9a56dd334c4d7942528736a2ca569f4b502a.tpl.php.tmp"

*642*			extract($this->variables,
EXTR_REFS);*643**644*			ob_start();*645**646			include
$this->compiled_template_path . '.tmp';**647**648*			$out =
ob_get_clean();*649*		}*650*		catch (\Exception $e)

in .../include/lib/KD2/*Smartyer.php*:*395*→ KD2\Smartyer->compile *(0
arg.)*

*391*		$time = @filemtime($this->compiled_template_path);*392**393*		if
(!$time || (!is_null($this->template_path) &&
filemtime($this->template_path) > $time))*394*		{*395			return
$this->compile();**396*		}*397**398*		extract($this->variables,
EXTR_REFS);*399*

in .../include/lib/KD2/*Smartyer.php*:*350*→ KD2\Smartyer->fetch *(0 arg.)*

*346*	{*347*		// Compatibility with legacy Smarty calls*348*		if
(!is_null($template))*349*		{*350			return (new Smartyer($template,
$this))->fetch();**351*		}*352**353*		if
(is_null($this->compiled_dir))*354*		{

in .../include/lib/KD2/*Smartyer.php*:*334*→ KD2\Smartyer->fetch *(1 arg.)*
$template

string(21) "admin/wiki/editer.tpl"

*330*	 * @return Smartyer*331*	 */*332*	public function
display($template = null)*333*	{*334		echo
$this->fetch($template);**335*		return $this;*336*	}*337**338*	/**

in .../www/admin/wiki/*editer.php*:*86*→ KD2\Smartyer->display *(1 arg.)*
$template

string(21) "admin/wiki/editer.tpl"

*82*$tpl->assign('date', $date ? strtotime($date) :
$page->date_creation);*83**84*$tpl->assign('custom_js',
['wiki_editor.js',
'wiki-encryption.js']);*85**86$tpl->display('admin/wiki/editer.tpl');**87*

Context
id 9z2k5bby
date 2020-08-17T17:32:02+02:00
os Linux
language PHP 7.3.16
environment development
php_sapi fpm-fcgi
remote_ip 192.168.0.254
http_method GET
files_sent array(0) { }
rootDirectory /volume1/web/garradin
garradin_data_root /volume1/web/garradin
garradin_version 0.9.8
url https://vblm.goanag.fr/admin/wiki/editer.php?id=2

Re: version 0.9.8

Jacques Lacroute

25/08/2020 16:04:23

Problème partagé par un certain nombre mais pas résolu je pense ( en tout cas pas pour
moi)

Jacques Lacroute

>> Le 25 août 2020 à 15:36, volley ball loisir malouin VBLM
<vbloisirmalouin@gmail.com> a écrit :
> 
> bonjour,
> 
> je viens de mettre à jour ma version de 0.9.7 vers 0.9.8.
> 
> j'ai un message d'erreur lorsque je clique sur l'édition
d'une page wiki. du coup je ne peux pas modifier les pages du wiki. Merci de votre
aide,
> 
> cordialament, Michel
>
---------------------------------------------------------------------------------------
> 
> Une erreur s'est produite
> 
> KD2\Smartyer_Exception
> 
> Warning: Use of undefined constant php - assumed 'php' (this will throw
an Error in a future version of PHP)
> 
> in .../templates/admin/wiki/editer.tpl:103
> 
> 99        </dl>
> 100    </fieldset>
> 101
> 102    <p class="submit">
> 103        {csrf_field key="wiki_edit_%d"|args:$page.id}
> 104        <input type="hidden" name="revision_edition"
value="{form_field name=revision_edition default=$page.revision}" />
> 105        <input type="hidden" name="debut_edition"
value="{form_field name=debut_edition default=$time}" />
> 106        <input id="f_id" value="{$page.id}"
type="hidden" />
> 107        <input type="submit" name="save"
value="Enregistrer &rarr;" />
> in .../include/lib/KD2/Smartyer.php:666
> 
> → KD2\Smartyer->parseError (3 arg.)
> 
> $line	
> string(3) "103"
> $message	
> string(108) "Warning: Use of undefined constant php - assumed 'php'
(this will throw an Error in a future version of PHP)"
> $previous	
> object(ErrorException) (8) {
> }
> 662			$compiled = implode("\n", $compiled);
> 663
> 664			if (preg_match('!//#(\d+)\?>!', $compiled, $match))
> 665			{
> 666				$this->parseError($match[1], $e->getMessage(), $e);
> 667			}
> 668			else
> 669			{
> 670				throw $e;
> in .../include/lib/KD2/Smartyer.php:395
> 
> → KD2\Smartyer->compile (0 arg.)
> 
> 391		$time = @filemtime($this->compiled_template_path);
> 392
> 393		if (!$time || (!is_null($this->template_path) &&
filemtime($this->template_path) > $time))
> 394		{
> 395			return $this->compile();
> 396		}
> 397
> 398		extract($this->variables, EXTR_REFS);
> 399
> in .../include/lib/KD2/Smartyer.php:350
> 
> → KD2\Smartyer->fetch (0 arg.)
> 
> 346	{
> 347		// Compatibility with legacy Smarty calls
> 348		if (!is_null($template))
> 349		{
> 350			return (new Smartyer($template, $this))->fetch();
> 351		}
> 352
> 353		if (is_null($this->compiled_dir))
> 354		{
> in .../include/lib/KD2/Smartyer.php:334
> 
> → KD2\Smartyer->fetch (1 arg.)
> 
> $template	
> string(21) "admin/wiki/editer.tpl"
> 330	 * @return Smartyer
> 331	 */
> 332	public function display($template = null)
> 333	{
> 334		echo $this->fetch($template);
> 335		return $this;
> 336	}
> 337
> 338	/**
> in .../www/admin/wiki/editer.php:86
> 
> → KD2\Smartyer->display (1 arg.)
> 
> $template	
> string(21) "admin/wiki/editer.tpl"
> 82$tpl->assign('date', $date ? strtotime($date) :
$page->date_creation);
> 83
> 84$tpl->assign('custom_js', ['wiki_editor.js',
'wiki-encryption.js']);
> 85
> 86$tpl->display('admin/wiki/editer.tpl');
> 87
> PHP error
> 
> Warning: Use of undefined constant php - assumed 'php' (this will throw
an Error in a future version of PHP)
> 
> in .../cache/compiled/115a9a56dd334c4d7942528736a2ca569f4b502a.tpl.php.tmp:116
> 
> 112    <fieldset class="wikiRevision">
> 113        <dl>
> 114            <dt><label for="f_modification">Résumé des
modifications</label>  <i>(facultatif)</i></dt>
> 115            <dd><input type="text"
name="modification" id="f_modification" value="<?php echo
$this->functions['form_field'](['data' => $page,
'name' => 'modification', ], $this); //#92?>"
/></dd>
> 116            <?php/*#3#
> 117
> 118
> 119
> 120
> in .../include/lib/KD2/Smartyer.php:646
> 
> → include (1 arg.)
> 
> 0	
> string(71)
".../cache/compiled/115a9a56dd334c4d7942528736a2ca569f4b502a.tpl.php.tmp"
> 642			extract($this->variables, EXTR_REFS);
> 643
> 644			ob_start();
> 645
> 646			include $this->compiled_template_path . '.tmp';
> 647
> 648			$out = ob_get_clean();
> 649		}
> 650		catch (\Exception $e)
> in .../include/lib/KD2/Smartyer.php:395
> 
> → KD2\Smartyer->compile (0 arg.)
> 
> 391		$time = @filemtime($this->compiled_template_path);
> 392
> 393		if (!$time || (!is_null($this->template_path) &&
filemtime($this->template_path) > $time))
> 394		{
> 395			return $this->compile();
> 396		}
> 397
> 398		extract($this->variables, EXTR_REFS);
> 399
> in .../include/lib/KD2/Smartyer.php:350
> 
> → KD2\Smartyer->fetch (0 arg.)
> 
> 346	{
> 347		// Compatibility with legacy Smarty calls
> 348		if (!is_null($template))
> 349		{
> 350			return (new Smartyer($template, $this))->fetch();
> 351		}
> 352
> 353		if (is_null($this->compiled_dir))
> 354		{
> in .../include/lib/KD2/Smartyer.php:334
> 
> → KD2\Smartyer->fetch (1 arg.)
> 
> $template	
> string(21) "admin/wiki/editer.tpl"
> 330	 * @return Smartyer
> 331	 */
> 332	public function display($template = null)
> 333	{
> 334		echo $this->fetch($template);
> 335		return $this;
> 336	}
> 337
> 338	/**
> in .../www/admin/wiki/editer.php:86
> 
> → KD2\Smartyer->display (1 arg.)
> 
> $template	
> string(21) "admin/wiki/editer.tpl"
> 82$tpl->assign('date', $date ? strtotime($date) :
$page->date_creation);
> 83
> 84$tpl->assign('custom_js', ['wiki_editor.js',
'wiki-encryption.js']);
> 85
> 86$tpl->display('admin/wiki/editer.tpl');
> 87
> Context
> 
> id	9z2k5bby
> date	2020-08-17T17:32:02+02:00
> os	Linux
> language	PHP 7.3.16
> environment	development
> php_sapi	fpm-fcgi
> remote_ip	192.168.0.254
> http_method	GET
> files_sent	array(0) { }
> rootDirectory	/volume1/web/garradin
> garradin_data_root	/volume1/web/garradin
> garradin_version	0.9.8
> url	https://vblm.goanag.fr/admin/wiki/editer.php?id=2

Re: version 0.9.8

BohwaZ/Garradin

28/08/2020 10:39:50

Yep, j'étais en congés bien mérités, je m'en occupe la semaine
prochaine au plus tard :)

Re: version 0.9.8

BohwaZ/Garradin

28/08/2020 10:53:27

Corrigé !

tu peux re-télécharger la
0.9.8 https://fossil.kd2.org/garradin/uvlist

ça devrait être bon :)

Désolé du délai.