Warning: include(../plugins/glossaire/conf_defaut2.inc): Failed to open stream: No such file or directory in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 29

Warning: include(): Failed opening '../plugins/glossaire/conf_defaut2.inc' for inclusion (include_path='.:/opt/cpanel/ea-php80/root/usr/share/pear') in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 29

Warning: Undefined variable $res_group in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 33

Warning: Trying to access array offset on value of type null in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 33

Warning: include(../plugins/glossaire/gloss_inc1.inc): Failed to open stream: No such file or directory in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 36

Warning: include(): Failed opening '../plugins/glossaire/gloss_inc1.inc' for inclusion (include_path='.:/opt/cpanel/ea-php80/root/usr/share/pear') in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 36

Warning: include(../plugins/glossaire/gloss_mob_inc2.inc): Failed to open stream: No such file or directory in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 37

Warning: include(): Failed opening '../plugins/glossaire/gloss_mob_inc2.inc' for inclusion (include_path='.:/opt/cpanel/ea-php80/root/usr/share/pear') in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 37
Centre d aide GuppY

  Accueil 
GuppY 4.6.22 -Fonction glob() qui pose problème chez certains hébergeurs

Pour solutionner ce problème de fonction glob() qui pose problème chez certains hébergeurs, voici une solution.

Ouvrir le fichier inc/hpage.inc à l'aide d'un éditeur comme notepad++ ou à défaut le bloc notes de windows, surtout ne pas utiliser de traitement de textes comme Word ou LibreOffice, et remplacer les lignes 238 à 258 inclue, c'est à dire ces lignes :
 
Code : php
// CSS located in directory inc/csshead are automatically charged in part HEAD of the page
$allcss = glob(CHEMIN.'inc/csshead/*{.css,.css.php}', GLOB_BRACE);
if (FALSE !== $allcss) {
sort($allcss);
foreach ($allcss as $onecss) {
echo '
<link type="text/css" rel="stylesheet" href="../'.$onecss.'" />';
}
unset($allcss, $onecss);
}
// javascript located in directory inc/jshead are automatically charged in part HEAD of the page
$alljs = glob(CHEMIN.'inc/jshead/*{.js,.js.php}', GLOB_BRACE);
if (FALSE !== $alljs) {
sort($alljs);
foreach ($alljs as $onejs) {
echo '
<script language="javascript" type="text/javascript" src="../'.$onejs.'"></script>';
}
unset($alljs, $onejs);
}
 
par celles-ci :
 
Code : php
// CSS located in directory inc/csshead are automatically charged in part HEAD of the page
$dir = CHEMIN.'inc/csshead';
if (is_dir($dir)) {
$allcss = scandir($dir);
if (FALSE !== $allcss) {
sort($allcss);
foreach ($allcss as $onecss) {
$info = pathinfo($onecss);
if ($info['extension'] == 'css')
echo '
<link type="text/css" rel="stylesheet" href="../'.$dir.'/'.$onecss.'" />';
}
unset($allcss, $onecss);
}
}
// javascript located in directory inc/jshead are automatically charged in part HEAD of the page
$dir = CHEMIN.'inc/jshead';
if (is_dir($dir)) {
$alljs = scandir($dir);
if (FALSE !== $alljs) {
sort($alljs);
foreach ($alljs as $onejs) {
$info = pathinfo($onejs);
if ($info['extension'] == 'js')
echo '
<script language="javascript" type="text/javascript" src="../'.$dir.'/'.$onejs.'"></script>';
}
unset($alljs, $onejs);
}
}
 
Ce sont les seuls endroits dans GuppY 4.6.22 où est utilisée la fonction glob().
Ceux qui ont installé ou installeront le plugin jmForks de jeanMi, ils pourront se référer à cet article sur son site en cas de problème : http://www.jmmis.com/articles.php?lng=fr&pg=12479.
Et utilisez son forum en cas de problème avec ce plugin. Le fichier inc/hpage.inc est pris en compte dans son plugin.

ATTENTION, ceci ne concerne que ceux qui rencontrent ces problèmes chez leur hébergeur. Les autres peuvent utiliser la 4.6.22 sans modifier.

 


Date de création : 09/01/2013 @ 13:39
Dernière modification : 09/01/2013 @ 13:39
Catégorie : Problèmes liés aux différents hébergeurs
Page lue 19438 fois
Haut

© 2004-2024

Document généré en 0.02 seconde