tagList et ordre de trie
Bonjour,
Depuis la version 5.5 dans la fonction $plxShow->TagList(), si on ajoute une contrainte de trie l'erreur suivante apparait :
Voici le code que j'utilise dans mon thème
Si je remplace alpha par random, l'erreur disparait.
Depuis la version 5.5 dans la fonction $plxShow->TagList(), si on ajoute une contrainte de trie l'erreur suivante apparait :
[== Indéfini ==] stderr: PHP Warning: array_multisort(): Array sizes are inconsistent in /var/www/xxxx/core/lib/class.plx.show.php on line 1685
Voici le code que j'utilise dans mon thème
[== PHP ==]
<?php $plxShow->tagList('<li class="tags #tag_size"><a href="#tag_url" title="#tag_name">#tag_name</a></li>', 20, 'alpha'); ?>
Si je remplace alpha par random, l'erreur disparait.
J'ai un string de l'array
0
Connectez-vous ou Inscrivez-vous pour répondre.

Réponses
s'il n'y a rien de confidentiel dans tes mots-clés, est ce que tu peux nous donner la liste qui s'affiche avec ce code :
array ( '0068' => array ( 'tags' => '', 'date' => '200906051638', 'active' => '1', ), '0052' => array ( 'tags' => '', 'date' => '200903150936', 'active' => '1', ), '0043' => array ( 'tags' => '', 'date' => '200902131227', 'active' => '1', ), '0040' => array ( 'tags' => '', 'date' => '200901291758', 'active' => '1', ), '0115' => array ( 'tags' => '', 'date' => '201106020951', 'active' => '1', ), '0095' => array ( 'tags' => '', 'date' => '201004121604', 'active' => '1', ), '0114' => array ( 'tags' => '', 'date' => '201205280753', 'active' => '1', ), '0122' => array ( 'tags' => '', 'date' => '201107271850', 'active' => '1', ), '0039' => array ( 'tags' => '', 'date' => '200901250953', 'active' => '1', ), '0130' => array ( 'tags' => '', 'date' => '201203061546', 'active' => '1', ), '0041' => array ( 'tags' => '', 'date' => '200902071149', 'active' => '1', ), '0118' => array ( 'tags' => '', 'date' => '201107041612', 'active' => '1', ), '0096' => array ( 'tags' => '', 'date' => '201004151122', 'active' => '1', ), '0078' => array ( 'tags' => '', 'date' => '200907161654', 'active' => '1', ), '0131' => array ( 'tags' => '', 'date' => '201203240708', 'active' => '1', ), '0098' => array ( 'tags' => '', 'date' => '201006021358', 'active' => '1', ), '0070' => array ( 'tags' => '', 'date' => '200906191548', 'active' => '1', ), '0103' => array ( 'tags' => '', 'date' => '201007171255', 'active' => '1', ), '0121' => array ( 'tags' => '', 'date' => '201107261300', 'active' => '1', ), '0124' => array ( 'tags' => '', 'date' => '201108181327', 'active' => '1', ), '0123' => array ( 'tags' => '', 'date' => '201108111614', 'active' => '1', ), '0119' => array ( 'tags' => '', 'date' => '201107061309', 'active' => '1', ), '0120' => array ( 'tags' => '', 'date' => '201107141040', 'active' => '1', ), '0134' => array ( 'tags' => '', 'date' => '201204121641', 'active' => '1', ), '0090' => array ( 'tags' => '', 'date' => '201002171313', 'active' => '1', ), '0055' => array ( 'tags' => '', 'date' => '200903291019', 'active' => '1', ), '0113' => array ( 'tags' => '', 'date' => '201105211415', 'active' => '1', ), '0063' => array ( 'tags' => '', 'date' => '200905171941', 'active' => '1', ), '0059' => array ( 'tags' => '', 'date' => '200905011737', 'active' => '1', ), '0116' => array ( 'tags' => '', 'date' => '201106050842', 'active' => '1', ), '0083' => array ( 'tags' => '', 'date' => '200908241403', 'active' => '1', ), '0126' => array ( 'tags' => '', 'date' => '201112211415', 'active' => '1', ), '0132' => array ( 'tags' => '', 'date' => '201203271344', 'active' => '1', ), '0051' => array ( 'tags' => '', 'date' => '200903081440', 'active' => '1', ), '0110' => array ( 'tags' => '', 'date' => '201102082051', 'active' => '1', ), '0026' => array ( 'tags' => '', 'date' => '200811070821', 'active' => '1', ), '0099' => array ( 'tags' => '', 'date' => '201006131932', 'active' => '1', ), '0106' => array ( 'tags' => '', 'date' => '201008191114', 'active' => '1', ), '0074' => array ( 'tags' => '', 'date' => '200906221628', 'active' => '1', ), '0031' => array ( 'tags' => '', 'date' => '200901131545', 'active' => '1', ), '0032' => array ( 'tags' => '', 'date' => '200901140834', 'active' => '1', ), '0085' => array ( 'tags' => '', 'date' => '200909181659', 'active' => '1', ), '0091' => array ( 'tags' => '', 'date' => '201002231317', 'active' => '1', ), '0036' => array ( 'tags' => '', 'date' => '200901182151', 'active' => '1', ), '0035' => array ( 'tags' => '', 'date' => '200901161100', 'active' => '1', ), '0027' => array ( 'tags' => '', 'date' => '200812221150', 'active' => '1', ), '0071' => array ( 'tags' => '', 'date' => '200906200840', 'active' => '1', ), '0072' => array ( 'tags' => '', 'date' => '200906200848', 'active' => '1', ), '0049' => array ( 'tags' => '', 'date' => '200903020945', 'active' => '1', ), '0047' => array ( 'tags' => '', 'date' => '200902220951', 'active' => '1', ), '0038' => array ( 'tags' => '', 'date' => '200901211249', 'active' => '1', ), '0082' => array ( 'tags' => '', 'date' => '200908171444', 'active' => '1', ), '0077' => array ( 'tags' => '', 'date' => '200907121502', 'active' => '1', ), '0076' => array ( 'tags' => '', 'date' => '200907020942', 'active' => '1', ), '0058' => array ( 'tags' => '', 'date' => '200904220929', 'active' => '1', ), '0087' => array ( 'tags' => '', 'date' => '200910080710', 'active' => '1', ), '0105' => array ( 'tags' => '', 'date' => '201008111354', 'active' => '1', ), '0127' => array ( 'tags' => '', 'date' => '201201271226', 'active' => '1', ), '0092' => array ( 'tags' => '', 'date' => '201002240829', 'active' => '1', ), '0089' => array ( 'tags' => '', 'date' => '201002161310', 'active' => '1', ), '0088' => array ( 'tags' => '', 'date' => '201001261606', 'active' => '1', ), '0079' => array ( 'tags' => '', 'date' => '200907191728', 'active' => '1', ), '0062' => array ( 'tags' => '', 'date' => '200905141659', 'active' => '1', ), '0066' => array ( 'tags' => '', 'date' => '200905261911', 'active' => '1', ), '0045' => array ( 'tags' => '', 'date' => '200902201840', 'active' => '1', ), '0104' => array ( 'tags' => '', 'date' => '201008262033', 'active' => '1', ), '0129' => array ( 'tags' => '', 'date' => '201205260836', 'active' => '1', ), '0023' => array ( 'tags' => '', 'date' => '200809301117', 'active' => '1', ), '0057' => array ( 'tags' => '', 'date' => '200904031118', 'active' => '1', ), '0081' => array ( 'tags' => '', 'date' => '200908061541', 'active' => '1', ), '0024' => array ( 'tags' => '', 'date' => '200810071654', 'active' => '1', ), '0112' => array ( 'tags' => '', 'date' => '201105061010', 'active' => '1', ), '0012' => array ( 'tags' => '', 'date' => '200806061203', 'active' => '1', ), '0067' => array ( 'tags' => '', 'date' => '200906021316', 'active' => '1', ), '0102' => array ( 'tags' => '', 'date' => '201006272036', 'active' => '1', ), '0101' => array ( 'tags' => '', 'date' => '201006231315', 'active' => '1', ), '0100' => array ( 'tags' => '', 'date' => '201006211843', 'active' => '1', ), '0021' => array ( 'tags' => '', 'date' => '200808261440', 'active' => '1', ), '0133' => array ( 'tags' => '', 'date' => '201204031452', 'active' => '1', ), '0117' => array ( 'tags' => '', 'date' => '201106161332', 'active' => '1', ), '0050' => array ( 'tags' => '', 'date' => '200903081137', 'active' => '1', ), '0075' => array ( 'tags' => '', 'date' => '200906291529', 'active' => '1', ), '0001' => array ( 'tags' => '', 'date' => '200805221344', 'active' => '1', ), '0034' => array ( 'tags' => '', 'date' => '200901141951', 'active' => '1', ), '0125' => array ( 'tags' => '', 'date' => '201111201459', 'active' => '1', ), '0006' => array ( 'tags' => '', 'date' => '200805230817', 'active' => '1', ), '0005' => array ( 'tags' => '', 'date' => '200805230811', 'active' => '1', ), '0002' => array ( 'tags' => '', 'date' => '200805221353', 'active' => '1', ), '0004' => array ( 'tags' => '', 'date' => '200805221543', 'active' => '1', ), '0086' => array ( 'tags' => '', 'date' => '200910061057', 'active' => '1', ), '0097' => array ( 'tags' => '', 'date' => '201005181306', 'active' => '1', ), '0094' => array ( 'tags' => '', 'date' => '201002261041', 'active' => '1', ), '0093' => array ( 'tags' => '', 'date' => '201002251625', 'active' => '1', ), '0017' => array ( 'tags' => '', 'date' => '200806181457', 'active' => '1', ), '0080' => array ( 'tags' => '', 'date' => '200907211536', 'active' => '1', ), '0061' => array ( 'tags' => '', 'date' => '200905131437', 'active' => '1', ), '0060' => array ( 'tags' => '', 'date' => '200905041448', 'active' => '1', ), '0053' => array ( 'tags' => '', 'date' => '200903171402', 'active' => '1', ), '0044' => array ( 'tags' => '', 'date' => '200902201135', 'active' => '1', ), '0020' => array ( 'tags' => '', 'date' => '200807181259', 'active' => '1', ), '0015' => array ( 'tags' => '', 'date' => '200806121342', 'active' => '1', ), '0013' => array ( 'tags' => '', 'date' => '200806091531', 'active' => '1', ), '0014' => array ( 'tags' => '', 'date' => '200806100929', 'active' => '1', ), '0011' => array ( 'tags' => '', 'date' => '200806051011', 'active' => '1', ), '0073' => array ( 'tags' => '', 'date' => '200906221136', 'active' => '1', ), '0065' => array ( 'tags' => '', 'date' => '200905251417', 'active' => '1', ), '0054' => array ( 'tags' => '', 'date' => '200903241032', 'active' => '1', ), '0037' => array ( 'tags' => '', 'date' => '200901201046', 'active' => '1', ), '0084' => array ( 'tags' => '', 'date' => '200908271059', 'active' => '1', ), '0108' => array ( 'tags' => '', 'date' => '201009061327', 'active' => '1', ), '0107' => array ( 'tags' => '', 'date' => '201009060940', 'active' => '1', ), '0111' => array ( 'tags' => '', 'date' => '201103111748', 'active' => '1', ), '0046' => array ( 'tags' => '', 'date' => '200902211031', 'active' => '1', ), '0042' => array ( 'tags' => '', 'date' => '200902111339', 'active' => '1', ), '0064' => array ( 'tags' => '', 'date' => '200905241542', 'active' => '1', ), '0109' => array ( 'tags' => '', 'date' => '201009121907', 'active' => '1', ), '0136' => array ( 'tags' => '', 'date' => '201205240912', 'active' => '1', ), '0137' => array ( 'tags' => '', 'date' => '201303290810', 'active' => '1', ), '0138' => array ( 'tags' => 'udev,sauvegarde,script', 'date' => '201207270949', 'active' => '1', ), '0139' => array ( 'tags' => 'fichiers,échanges,dropbox, script', 'date' => '201209261552', 'active' => '1', ), '0140' => array ( 'tags' => '', 'date' => '201211151044', 'active' => '1', ), '0141' => array ( 'tags' => 'bashrc', 'date' => '201212030834', 'active' => '1', ), '0142' => array ( 'tags' => 'python,vsftp', 'date' => '201308260934', 'active' => '1', ), '0143' => array ( 'tags' => 'lsof', 'date' => '201302121302', 'active' => '1', ), '0144' => array ( 'tags' => 'dhcp,domain-search', 'date' => '201302201118', 'active' => '1', ), '0145' => array ( 'tags' => 'koken,images,galerie,gestion', 'date' => '201303101841', 'active' => '1', ), '0147' => array ( 'tags' => '', 'date' => '201305010725', 'active' => '1', ), '0148' => array ( 'tags' => 'koken,, galerie, script', 'date' => '201305031839', 'active' => '1', ), '0149' => array ( 'tags' => 'pdf, fichiers, images, script', 'date' => '201305301408', 'active' => '1', ), '0150' => array ( 'tags' => '', 'date' => '201306081010', 'active' => '1', ), '0151' => array ( 'tags' => '', 'date' => '201307081901', 'active' => '1', ), '0152' => array ( 'tags' => 'photo, galerie, koken', 'date' => '201308151213', 'active' => '1', ), '0153' => array ( 'tags' => 'darktable, profil, couleur, icc, raw', 'date' => '201309020614', 'active' => '1', ), '0155' => array ( 'tags' => '', 'date' => '201312221959', 'active' => '1', ), '0156' => array ( 'tags' => 'raspberry,pi,media center', 'date' => '201401180641', 'active' => '1', ), '0157' => array ( 'tags' => 'timelapse,picamera,rpi,raspberry,photo,time lapse,python,berrycam', 'date' => '201406150920', 'active' => '1', ), '0158' => array ( 'tags' => 'outlook, 0x8004010F', 'date' => '201408291220', 'active' => '1', ), '0159' => array ( 'tags' => 'impôts,citoyen,majoration', 'date' => '201410051126', 'active' => '1', ), '0160' => array ( 'tags' => 'thème, responsive, css', 'date' => '201604121255', 'active' => '1', ), '0162' => array ( 'tags' => 'spam,opendkim,dkim,postifx,dns,ispconfig', 'date' => '201501201405', 'active' => '1', ), '0163' => array ( 'tags' => 'vmware,esx,esxtop', 'date' => '201502061224', 'active' => '1', ), '0164' => array ( 'tags' => '', 'date' => '201503171127', 'active' => '1', ), '0165' => array ( 'tags' => 'uptime', 'date' => '201503241148', 'active' => '1', ), '0166' => array ( 'tags' => 'dsm,synology,backup,sauvegarde', 'date' => '201504271519', 'active' => '1', ), '0167' => array ( 'tags' => 'photo, etsy, boutique', 'date' => '201509221620', 'active' => '1', ), '0168' => array ( 'tags' => 'thème,administration,admin,plucss,pluxml,responsive,css', 'date' => '201510261712', 'active' => '1', ), '0169' => array ( 'tags' => 'netapp,ssh', 'date' => '201512081100', 'active' => '1', ), '0170' => array ( 'tags' => 'volumio,médiacenter,raspberry, media center', 'date' => '201601021223', 'active' => '1', ), '0171' => array ( 'tags' => 'dhcp,dns,linux,named,bind', 'date' => '201601261647', 'active' => '1', ), '0172' => array ( 'tags' => 'spanning-tree,procurve,réseau,network, admin, administration', 'date' => '201602221702', 'active' => '1', ), )J'ai un string de l'array
le problème se pose quand on limite le nombre de mots-clé avec le 2e argument
ça se corrige en mettant le découpage après l'appel de "array_multisort", je ferai un pull request dès que j'ai le temps
J'ai un string de l'array
https://github.com/pluxml/PluXml/pull/173
J'ai un string de l'array
Merci pour ton orientation (en attendant avec ta correction, le site fonctionne correctement)