Des notice PHP en pagaille avec SPIP 2.1.12
En mettant dans config/mesoptions.php : `
` Je suis tombé sur pleins de Notice PHP sur la page d'accueil de l'espace privé.
Voici un patch qui les enlève presque tous.
Il reste :
Notice: Undefined index: spip_lang in \ecrire\inc\lang.php on line 269 Call Stack # Time Memory Function Location 1 0.0003 369512 {main}( ) ..\index.php:0 2 0.0791 759616 include_spip( ) ..\index.php:48 3 0.0791 759752 find_in_path( ) ..\utils.php:66 4 0.0819 766184 include_once( '\ecrire\inc\lang.php' ) ..\utils.php:706 5 0.0820 766184 utiliser_langue_site( ) ..\lang.php:358
que je n'ai pas sû enlever
Et des tas dus au compilo :
Notice: Undefined index: id_rubrique in \ecrire\public\composer.php(49) : eval()'d code on line 61 Call Stack # Time Memory Function Location 1 0.0003 369512 {main}( ) ..\index.php:0 2 0.1683 923032 exec_accueil_dist( ) ..\index.php:156 3 0.4758 2300264 afficher_objets( ) ..\accueil.php:448 4 0.4779 2305744 inc_afficher_objets( ) ..\presentation.php:331 5 0.4798 2309424 recuperer_fond( ) ..\afficher_objets.php:71 6 0.4799 2310824 evaluer_fond( ) ..\utils.php:1777 7 0.4799 2310824 inclure_page( ) ..\assembler.php:593 8 0.4816 2313664 public_produire_page_dist( ) ..\assembler.php:264 9 0.5172 2389472 public_parametrer_dist( ) ..\assembler.php:289 10 0.5411 2718424 html_9c1ab0a39b0639b8b095ef7f0dfd7314( ) ..\parametrer.php:105 11 0.5412 2720224 BOUCLE_liste_arthtml_9c1ab0a39b0639b8b095ef7f0dfd7314( ) ..\composer.php(49) : eval()'d code:201
à noter dans le patch : sur le list avec explode, j'ai été inspiré par http://www.php.net/manual/fr/function.explode.php#99841