version 5.8.9 messages d'erreurS

bg62bg62 Member
novembre 2022 modifié dans Entraide

je commence à passer mes sites dans la version " 5.8.9 "
et premier problème:
"Notice: Undefined index: thumbnail in G:\laragon\www\www.unesourisetmoi.infoNEW\core\lib\class.plx.motor.php on line 735 "
HEIN , KOI ? que faut-il modifier à cette ligne 735 ?
autre erreur dans la partie admin: (flux rss )
" Notice: Undefined index: enable_rss in G:\laragon\www\www.unesourisetmoi.infoNEW\core\admin\parametres_base.php on line 118 "
activer la récupération de mot de passe:
"Notice: Undefined index: lostpassword in G:\laragon\www\www.unesourisetmoi.infoNEW\core\admin\parametres_avances.php on line 70 "
sos
@+

Mots clés:

Réponses

  • bazooka07bazooka07 PluXml Lead Developer, Moderator

    Problème déjà évoqué début 2021.
    Il faut modifié les lignes relatives à "thumbnail", "thumbnail_title" et "thumbnail_alt" dans la fonction plxMotor::parseArticle() comme précisé avec le lien ci-dessous :
    https://github.com/pluxml/PluXml/pull/518/commits/03065197fbc482cb9ac08e520f0aa1b3b70812cb

  • ok, merci, correction faite, mais les lignes à ajouter notées:
    715,716,717 sur githug
    sont en
    738,739,740
    sur mon fichier
    ... au cas où il te serait utile d'en faire une modification
    ...

  • MAIS j'ai maintenant ceci du coup à la place:
    Notice: Trying to access array offset on value of type null in G:\laragon\www\www.unesourisetmoi.infoNEW\core\lib\class.plx.motor.php on line 746

    Notice: Undefined index: date_update in G:\laragon\www\www.unesourisetmoi.infoNEW\core\lib\class.plx.motor.php on line 747

    Notice: Trying to access array offset on value of type null in G:\laragon\www\www.unesourisetmoi.infoNEW\core\lib\class.plx.motor.php on line 747

  • Ils te manque encore à priori des champs dans tes fichiers articles. En éditant l'article et en l'enregistrant à nouveau, ce message disparait-il ?


    Cordialement,
    gcyrillus

    Mon site PluXml: https://re7net.com | Plugins: https://ressources.pluxopolis.net/banque-plugins/index.php?all_versions | demos sur free http://gcyrillus.free.fr/new | Thèmes: tester et télécharger @ https://pluxthemes.com
    Indiquez [RESOLU] dans le titre de votre question une fois le soucis réglè, Merci

  • re ...
    en attendant de trouver les bonnes versions, à jour, des différents plugins, j'ai fait un test :
    -- désactiver tous les miens
    -- nettoyer le cache
    --ré-activer tous les plugins
    Si certains messages d'erreurs sont disparus, d'autres persistent, je vous en mets quelques exemples :
    1
    ( balise souvent pacée en fin d'article ou autre )
    D'autres fonds d'écran à découvrir au hasard :

    Notice: Undefined index: thumbnail in E:\laragon\www\www.unesourisetmoi.infoNEW\core\lib\class.plx.motor.php on line 735
    
    Notice: Trying to access array offset on value of type null in E:\laragon\www\www.unesourisetmoi.infoNEW\core\lib\class.plx.motor.php on line 735
    
    Notice: Undefined index: thumbnail_title in E:\laragon\www\www.unesourisetmoi.infoNEW\core\lib\class.plx.motor.php on line 736
    
    Notice: Trying to access array offset on value of type null in E:\laragon\www\www.unesourisetmoi.infoNEW\core\lib\class.plx.motor.php on line 736
    
    Notice: Undefined index: thumbnail_alt in E:\laragon\www\www.unesourisetmoi.infoNEW\core\lib\class.plx.motor.php on line 737
    
    Notice: Trying to access array offset on value of type null in E:\laragon\www\www.unesourisetmoi.infoNEW\core\lib\class.plx.motor.php on line 737
    
    Notice: Undefined index: date_creation in E:\laragon\www\www.unesourisetmoi.infoNEW\core\lib\class.plx.motor.php on line 746
    
    Notice: Trying to access array offset on value of type null in E:\laragon\www\www.unesourisetmoi.infoNEW\core\lib\class.plx.motor.php on line 746
    
    Notice: Undefined index: date_update in E:\laragon\www\www.unesourisetmoi.infoNEW\core\lib\class.plx.motor.php on line 747
    
    Notice: Trying to access array offset on value of type null in E:\laragon\www\www.unesourisetmoi.infoNEW\core\lib\class.plx.motor.php on line 747
    

    2
    Notice: Undefined index: enable_rss in E:\laragon\www\www.unesourisetmoi.infoNEW\core\lib\class.plx.show.php on line 928

    3

    ///// une grosse partie des erreurs notées au point "1" 'pas toutes cependant' proviennent d'une ligne de code que j'ai :

    autres articles à lire :
                           <ul>
    <?php include(dirname(__FILE__).'/suggestion.php'); ?>
    </ul>
    

    le contenu du fichier suggestion.php étant :
    <?php /** * Méthode qui affiche une liste d'articles au hasard dans la même catégorie. * * @param max nombre d'articles maximum affichés * @param cat_id id de la catégorie cible (1,home) * @param maxSeek nombres d'articles les plus rescents à parser * @param exclude id de l'article à exclure * @return stdout * @author Amaury GRAILLAT, Florent MONTHEL **/ function suggestion ($max = 8, $cat_id = '', $maxSeek = 350, $exclude = -1) { # Récupération des instances : $plxShow_inst = plxShow::getInstance(); $plxMotor_inst = plxMotor::getInstance(); #Génération de notre motif if (empty ($cat_id)) $motif = '/[0-9]{4}.[0-9,]*.[0-9]{3}.[0-9]{12}.[a-z0-9-]+.xml$/'; elseif ($cat_id == 'home') $motif = '/[0-9]{4}.(home[0-9,]*).[0-9]{3}.[0-9]{12}.[a-z0-9-]+.xml$/'; else $motif = '/[0-9]{4}.[0-9,]*'.str_pad ($cat_id, 3, '0', STR_PAD_LEFT).'[0-9,]*.[0-9]{3}.[0-9]{12}.[a-z0-9-]+.xml$/'; #Nouvel objet plxGlob et récupération des fichiers $plxGlob_arts = plxGlob::getInstance(PLX_ROOT.$plxShow_inst->plxMotor->aConf['racine_articles']); $aFiles = $plxGlob_arts->query ($motif, 'art', 'rsort', 0, $maxSeek, 'before'); #On parse les fichiers if (is_array ($aFiles)) { #On a des fichiers foreach ($aFiles as $v) { #On parcourt tous les fichiers $array[] = $plxShow_inst->plxMotor->parseArticle (PLX_ROOT.$plxShow_inst->plxMotor-> aConf['racine_articles'].$v); #On stocke les enregistrements dans un objet plxRecord $plxRecord_arts = new plxRecord ($array); } } if ($plxGlob_arts->count AND $plxRecord_arts->size) { #On a des articles //Pas plus qu'on en a... if ($maxSeek > $plxGlob_arts->count) $maxPars = $plxGlob_arts->count - 1; else $maxPars = $maxSeek - 1; if ($max > $maxPars) $max = $maxPars; #On boucle sur nos articles $used = array (); $loop = 0; while ($loop < $max) { for ($antilag = 0; $antilag < $maxPars * 2; $antilag++) { $plxRecord_arts->i = rand (1, $maxPars); #if (!$used[$plxRecord_arts->i]) { $used[$plxRecord_arts->i] = true; break; } } $num = intval ($plxRecord_arts->f ('numero')); if ($num != $exclude && $antilag < $maxPars * 2) //Si l'article n'est pas exclu, on l'affiche { #On genère notre ligne $row = 'f ('url').'">'.htmlspecialchars ($plxRecord_arts->f ('title'),ENT_QUOTES, PLX_CHARSET).''; echo '

    '.$row.''; $loop++; } else $loop += 0.1; // Système antilag, mais évite quand même d'afficher // que 4 titres au lieu de 5 quand on a trouvé un exclu. J'assume. } } } $plxShow_inst = plxShow::getInstance(); $plxMotor_inst = plxMotor::getInstance(); $artId = $plxMotor_inst->plxRecord_arts->f ('numero'); //cet article // Gestion du multi-catégorie : prend une des catégories au hasard. $catIdSel = $plxMotor_inst->plxRecord_arts->f ('categorie'); $catIdSel = explode (',', $catIdSel); $catIdSel = array_rand ($catIdSel); suggestion (8, $catIdSel, 350, $artId); ?>

    //// si l'on pouvait déjà commencer par résoudre ces problèmes ce serait TOP ( je sais faire si l'on m'explique, enfin preque, mais moi et le codage c'est une très longue histoire trop longue même ... )
    amitiés
    b. g.

Connectez-vous ou Inscrivez-vous pour répondre.