Project

General

Profile

Actions

Demande #6345

closed

impossible de modifier une page du wiki administration

Added by Pierre-Louis Bonicoli 10 months ago. Updated 9 months ago.

Status:
Fermé
Priority:
Normale
Assignee:
-
Category:
-
Start date:
01/28/2024
Due date:
% Done:

100%

Estimated time:

Description

Cette erreur apparaît lorsque j'essaie de modifier le dernier paragraphe de la page https://admin.chapril.org/admin/services/forge.chapril.org:

dokuwiki\Exception\FatalException: Array and string offset access syntax with curly braces is no longer supported

An unforeseen error has occured. This is most likely a bug somewhere. It might be a problem in the gallery plugin.

More info has been written to the DokuWiki error log.

Le fichier /var/log/nginx/admin.chapril.org/admin.chapril.org.error_log sur admin.cluster.chapril.org contient :

2024/01/28 00:47:41 [error] 40298#40298: *289671 FastCGI sent in stderr: ";
  PHP message: PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/lib/dokuwiki/lib/plugins/gallery/syntax.php on line 195;
  PHP message: PHP Warning:  Undefined array key "dontlog" in /usr/share/dokuwiki/inc/Logger.php on line 35" while reading upstream,
  client: [...],
  server: admin.chapril.org,
  request: "POST /admin/services/forge.chapril.org HTTP/1.0",
  upstream: "fastcgi://unix:/run/php/php-fpm.sock:",
  host: "admin.chapril.org",
  referrer: "https://admin.chapril.org/admin/services/forge.chapril.org" 
Actions #1

Updated by Pierre-Louis Bonicoli 10 months ago

  • Description updated (diff)
Actions #2

Updated by Pierre-Louis Bonicoli 10 months ago

  • Status changed from Nouveau to En cours de traitement
  • Target version changed from Backlog to Sprint 2024 février
  • % Done changed from 0 to 50

Je mets à jour les plugins dokuwiki:

Mise à jour de gallery via les sources.

Puis utilisation de la cli pour mettre à jour les autres (non fournis par Debian) qui peuvent l'être :

/usr/share/dokuwiki/bin/plugin.php extension list
PHP Warning:  Undefined array key "HTTP_HOST" in /usr/share/dokuwiki/inc/preload.php on line 70
acl                  b   2015-07-25   ACL Manager de Andreas Gohr                                                                                                           
authad               b   2015-07-13   Active Directory Auth Plugin de Andreas Gohr                                                                                          
authldap             b   2015-07-13   LDAP Auth Plugin de Andreas Gohr                                                                                                      
authpdo              b   2016-08-20   authpdo plugin de Andreas Gohr                                                                                                        
authplain            b   2015-07-18   Plain Auth Plugin de Andreas Gohr                                                                                                     
config               b   2015-07-18   Configuration Manager de Christopher Smith                                                                                            
extension            b   2015-07-26   Extension Manager de Michael Hamann                                                                                                   
gallery              i   2023-12-08   Gallery Plugin de Andreas Gohr                                                                                                        
info                 b   2020-06-04   Info Plugin de Andreas Gohr                                                                                                           
logviewer            b   2020-08-13   logviewer plugin de Andreas Gohr                                                                                                      
move                 i   2022-01-23   Move plugin de Michael Hamann, Gary Owen, Arno Puschmann, Christoph Jähnigen                                                          
note                 i   2020-06-28   Note Plugin de Olivier Cortès, Eric Hameleers, Christopher Smith, Aurélien Bompard, LarsDW223                                         
nspages              iu  2022-11-27   nspages plugin de Guillaume Turri                                                                                                     
popularity           b   2015-07-15   Popularity Feedback Plugin de Andreas Gohr                                                                                            
removeold            i   2016-07-07   removeold de Taggic                                                                                                                   
revert               b   2015-07-15   Revert Manager de Andreas Gohr                                                                                                        
safefnrecode         b   2012-07-28   safefnrecode plugin de Andreas Gohr                                                                                                   
styling              b   2020-06-14   styling plugin de Andreas Gohr                                                                                                        
template:dokuwiki    b   2015-07-26   DokuWiki Template de Anika Henke                                                                                                      
testing              bd  2012-07-28   Testing Plugin de Tobias Sarnowski                                                                                                    
usermanager          b   2015-07-15   User Manager de Chris Smith                                                                                                           
wrap                 iu  2018-04-22   Wrap Plugin de Anika Henke            
/usr/share/dokuwiki/bin/plugin.php extension upgrade 
PHP Warning:  Undefined array key "HTTP_HOST" in /usr/share/dokuwiki/inc/preload.php on line 70
✓ Greffon nspages mis à jour avec succès
✓ Greffon wrap mis à jour avec succès

et changement des droits :

chown root\: -R /var/lib/dokuwiki/lib/plugins

Actions #3

Updated by Pierre-Louis Bonicoli 10 months ago

L'erreur devient :

2024/01/28 01:27:39 [error] 40298#40298: *290668 FastCGI sent in stderr: ";
  PHP message: PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/lib/dokuwiki/lib/plugins/removeold/admin.php on line 218;
  [...]

J'applique ce [patch](https://github.com/Taggic/removeold/pull/7/files) pour corriger.

Actions #4

Updated by Pierre-Louis Bonicoli 10 months ago

Le fichier de configuration /etc/dokuwiki/dokuwiki.php a été synchronisé (39c52c66a0a8da89d962bed7d3aabdd56b8a19b6).

Actions #5

Updated by Pierre-Louis Bonicoli 10 months ago

La page de la doc de la syntax rest ne s'affiche pas: la version Debian de la bibliothèque simplefie n'est pas compatible avec PHP 8.2.

J'applique ces patchs pour corriger :
- https://github.com/simplepie/simplepie/commit/1111dab1baced14aaf05509c41ee416c3fc6a961
- https://github.com/simplepie/simplepie/commit/38b504969ed08903cb12718e8270263a8c93080e

Actions #6

Updated by Pierre-Louis Bonicoli 9 months ago

  • Status changed from En cours de traitement to Fermé
  • % Done changed from 50 to 100

Concernant le problème avec simplepie, c'est ce ticket: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1054623 (qui devrait pointer vers ce bug)

Ce ticket est dorénavant mentionné dans la doc d'installation.

Actions

Also available in: Atom PDF