rpgnet.clanmckeen.com :: view topic - fix blank page / page blanche
rpgnet.clanmckeen.com :: view topic - fix blank page / page blanche
rpgnet.clanmckeen.com users-to-users support board for the old rpgnet mods
faq search memberlist usergroups
register log in
the time now is wed nov 14, 2007 5:29 am
all times are utc + 2 (dst in action)
view posts since last visit
view unanswered posts
forum index » mods » [2.0.6/2.0.5/2.0.4] categories hierarchy
fix blank page / page blanche
page 1 of 1 [4 posts]
author
message
easythomas
site admin
joined: 06 jun 2003posts: 132location: arles
fix blank page / page blanchefix for categories hierarchy 2.0.5 version
fix pour la version 2.0.5 de categories hierarchy
this fix is for all phpbb forums running with categories hierarchy.
ce fix est pour tous les forums phpbb avec categories hierarchy.
very important
before apply this fix, backup your database.
très important
avant d'appliquer ce fix, sauvegardez votre base de données.
posted: tue jun 29, 2004 5:24 pm
easythomas
site admin
joined: 06 jun 2003posts: 132location: arles
françaisplantage du board (page blanche) avec la v4.3.6 et supérieure de php
explication :
la variable $to_id a un intval sur la valeur, en conséquence, lorsque l'on choisit root pour déplacer ou supprimer, le programme ne vérifie pas si des sous-forums sont présents. le message d'erreur qui doit indiquer que le contenu doit être supprimé n'est pas affiché permettant au programme de passer outre.
conséquence :
les sous-forums sont toujours présents dans la base de données, ainsi que leurs paramètres dans auth_access avec les modérateurs.
ceci génère un bogue lors de la mise en cache tout simplement parce que $idx n'existe pas dans $tree. pour cette raison le programme qui construit l'arbre ne récupère pas logiquement le forum sans rattachement.
lors de la requête sur les modérateurs, ils trouvent une id de forum inexistante générant ainsi le bogue dans le fichier du cache de l'arborescence includes/def_tree.php.
note : le bogue est peut-être présent dans n'importe quel forum, même s'il n'est pas planté. en effet, une erreur interne à php ne permettait pas de rapporter les erreurs lors d'un include avec @ devant. celle-ci est désormais corrigée dans la version 4.3.6 et supérieure, ce qui explique que tous les boards, sans exception, qui sont plantés tournent sous la version 4.3.6 et supérieure. plus de détail sur : http://www.php.net/changelog-4.php , bug #27731.
----------
procÉdures (2)
procédure avec un board planté (page blanche)
1/ copier (à l'aide de votre client ftp) le fichier de réparation de la base de données fix_cat_hie_205_db.php à la racine de votre forum
2/ appliquer le fix de correction du bogue ci-dessous
3/ désactiver le cache dans le fichier includes/functions_cache.php
4/ recopier (à l'aide de votre client ftp) un fichier def_tree.php vierge dans le dossier includes/ (fourni dans le pack d'installation de categories hierarchie). chmoder 664 (à l'aide de votre client ftp) le fichier pour éviter tout risque d'écriture par le programme
5/ exécuter le fix de réparation de la base de données fix_cat_hie_205_db.php (à l'aide de votre navigateur)
6/ supprimer (à l'aide de votre client ftp) le fichier de réparation de la base de données fix_cat_hie_205_db.php de la racine de votre forum
7/ chmoder 666 (à l'aide de votre client ftp) le fichier includes/def_tree.php à ce moment pour lui redonner le droit en écriture
8/ réactiver le cache dans le fichier includes/functions_cache.php
note : si besoin, aller dans l'acp -> gestion + (admin/admin_forums_extend.php) et cliquer sur resynchroniser
procédure avec un board non planté
le risque de plantage dans l'avenir est réel, il est donc fortement conseillé d'appliquer cette procédure en prévention
1/ copier (à l'aide de votre client ftp) le fichier de réparation de la base de données fix_cat_hie_205_db.php à la racine de votre forum
2/ appliquer le fix de correction du bogue ci-dessous
3/ recopier (à l'aide de votre client ftp) un fichier def_tree.php vierge dans le dossier includes/ (fourni dans le pack d'installation de categories hierarchie). chmoder 664 (à l'aide de votre client ftp) le fichier pour éviter tout risque d'écriture par le programme
4/ exécuter le fix de réparation de la base de données fix_cat_hie_205_db.php (à l'aide de votre navigateur)
5/ supprimer (à l'aide de votre client ftp) le fichier de réparation de la base de données fix_cat_hie_205_db.php de la racine de votre forum
6/ chmoder 666 (à l'aide de votre client ftp) le fichier includes/def_tree.php à ce moment pour lui redonner le droit en écriture
note : si besoin, aller dans l'acp -> gestion + (admin/admin_forums_extend.php) et cliquer sur resynchroniser.
----------
zip du fichier de réparation de la base de données
fix - correction du bogue résultant une page blanche (plantage) avec la v4.3.6 et supérieure de php :
code: #
#-----[ open ]------------------------------------------------
#
admin/admin_forums.php
#
#-----[ find ]------------------------------------------------
#
//-- modify
$sql = "update " . forums_table . "
set cat_id = $to_id" . $sql_feed . "
where cat_id = $from_id" . $sql_where;
//-- fin mod : categories hierarchy ----------------------------------------------------------------
if( !$result = $db->sql_query($sql) )
{
message_die(general_error, "couldn't move forums to other category", "", __line__, __file__, $sql);
}
}
#
#-----[ after, add ]------------------------------------------
#
else if ( $to_fid == 'root' )
{
$found = false;
for ($i=0; $i < count($tree['sub'][post_cat_url . $from_id]); $i++)
{
$found = ($tree['type'][$tree['keys'][$tree['sub'][post_cat_url . $from_id][$i]]] == post_forum_url);
}
if ($found)
{
message_die(general_error, $lang['must_delete_forums']);
}
}
#
#-----[ save/close all files ]--------------------------------
#
# eom
posted: tue jun 29, 2004 5:24 pm
easythomas
site admin
joined: 06 jun 2003posts: 132location: arles
englishboard crashed (white page) with php 4.3.6 (and above) version
explaination:
the variable $to has got an intval on the value, therefore, whenever we choose "root" to move or delete, the program does not verify whether sub-forums do exist or not. the error message which should say that the content has to be deleted isn't displayed, then allows the program to go further.
aftermath:
the sub-forums are still present in the database, as well as their parameters in auth_access, with moderator.
this generates a bug at the time of caching, simply because the $idx doesn't exist in $tree. for this reason, the routine which build the tree doesn't include the unattached forums.
during the request on moderators, a non-existant forum if is found, thus generating a bug in the cache tree file: includes/def_tree.php.
note: the bug can be present in any forum, even if not crashed. indeed, an internal php error didn't allow errors to be reported with an include with a @ before. this error is now corrected in php 4.3.6 version and above. this explains that all boards, without exception, which are crashed, run on 4.3.6 version or above. more details on : http://www.php.net/changelog-4.php , bug #27731.
----------
procedures (2)
how to proceed with a white page error board
1/ copie (with your ftp client) the database fix file "fix_cat_hie_205_db.php" to your board root folder
2/ apply the corrective fix here below
3/ inactivate the cache in the file "includes/functions_cache.php"
4/ copy (with your ftp client), a blank "def_tree.php" in the includes/ folder (a blank def_tree.php is in the original categories hierarchy 2.0.5 installation pack). then chmod 664 (with your ftp client) this file to avoid writing risk from the program.
5/ execute the database fix file "fix_cat_hie_205_db.php" (with your browser)
6/ delete (with your ftp client) the database fix file " fix_cat_hie_205_db.php" from your board root folder
7/ chmod 666 (with your ftp client) the file "includes/def_tree.php" to give writing access back to the file
8/ reactivate the cache in the file "includes/functions_cache.php"
note: if needed, go in the acp -> management+ (admin/admin_forums_extend.php) and click on resync.
process with a non-crashed board
the risk your board is going to crash is real, it is highly recommended to apply this procedure as a prevention measure.
1/ copy (with your ftp client) the database fix file "fix_cat_hie_205_db.php" to your board root folder
2/ apply the corrective fix here below
3/ copy (with your ftp client), a blank "def_tree.php" in the includes/ folder (a blank def_tree.php is in the original categories hierarchy 2.0.5 installation pack). then chmod 664 (with your ftp client) this file to avoid writing risk from the program
4/ execute the database fix file "fix_cat_hie_205_db.php" (with your browser)
5/ delete (with your ftp client) the database fix file " fix_cat_hie_205_db.php" from your board root folder
6/ chmod 666 (with your ftp client) the file "includes/def_tree.php" to give writing access back to the file
note: if needed, go in the acp -> management+ (admin/admin_forums_extend.php) and click on resync.
----------
zip database fix file
fix – bug correction for the white page (crash) with php 4.3.6 version and above:
code: #
#-----[ open ]------------------------------------------------
#
admin/admin_forums.php
#
#-----[ find ]------------------------------------------------
#
//-- modify
$sql = "update " . forums_table . "
set cat_id = $to_id" . $sql_feed . "
where cat_id = $from_id" . $sql_where;
//-- fin mod : categories hierarchy ----------------------------------------------------------------
if( !$result = $db->sql_query($sql) )
{
message_die(general_error, "couldn't move forums to other category", "", __line__, __file__, $sql);
}
}
#
#-----[ after, add ]------------------------------------------
#
else if ( $to_fid == 'root' )
{
$found = false;
for ($i=0; $i < count($tree['sub'][post_cat_url . $from_id]); $i++)
{
$found = ($tree['type'][$tree['keys'][$tree['sub'][post_cat_url . $from_id][$i]]] == post_forum_url);
}
if ($found)
{
message_die(general_error, $lang['must_delete_forums']);
}
}
#
#-----[ save/close all files ]--------------------------------
#
# eom
posted: tue jun 29, 2004 5:25 pm
easythomas
site admin
joined: 06 jun 2003posts: 132location: arles
ggweb team
l'équipe ggweb
great thanks to patricia, who translated this text for all english-speaking and corrected my english grammar faults .
un grand merci à patricia qui a traduit ce texte pour tous les anglophones.
support in this topic.
support dans ce sujet.
posted: tue jun 29, 2004 5:27 pm
display posts from previous: all posts1 day7 days2 weeks1 month3 months6 months1 year sort by: post timepost subjectauthor ascendingdescending
page 1 of 1 [4 posts]
forum index » mods » [2.0.6/2.0.5/2.0.4] categories hierarchy
jump to: = 0){forms[\'jumpbox\'].submit();}">select a forum
-------------------
forum index
|___ categories hierarchy v 2.1.x
|___ mods
| |___ [2.0.6/2.0.5/2.0.4] categories hierarchy
| |___ [2.0.6/2.0.5/2.0.4] profile control panel
| | |___ index_profile_control_panel_tuto
| | |___ add-ons for profile control panel
| | |___ [2.0.6/2.0.5/2.0.4] profile control panel and add-ons v 1.0.1
| | |___ index_profile_control_panel_next
| |
| |___ [2.0.6] advanced pm
| |___ [2.0.6] keep unread
| |___ [2.0.6/2.0.5/2.0.4] topic calendar
| |___ [2.0.6/2.0.5/2.0.4] post icons
| |___ [2.0.6/2.0.5/2.0.4] split topic type
| |___ [2.0.6/2.0.5/2.0.4] announces suite
| |___ [2.0.6/2.0.5/2.0.4] topic display order
| |___ [2.0.6/2.0.5/2.0.4] sub-templates
| |___ [2.0.6/2.0.5/2.0.4] qbar
| |___ [2.0.6/2.0.5/2.0.4] simply merge
| |___ [2.0.6/2.0.5/2.0.4] group moderatorz
| |___ [2.0.6/2.0.5/2.0.4] last topics from
| |___ [2.0.x] ranks summarize
|
|___ announcements
|___ suggestions/comments for further versions and generic questions
|___ some links
| |___ gilgraf's board
| |___ phpbb.com
| |___ phpbbhacks.com
| |___ phpbb.de
| |___ phpbb2.de
|
|___ archives
|___ [2.0.5/2.0.4] categories hierarchy v 1.1.0 : the previous version
|___ oldest mods
you can post new topics in this forumyou can reply to topics in this forumyou can edit your posts in this forumyou can delete your posts in this forumyou can vote in polls in this forum
powered by phpbb © 2001, 2005 phpbb group
[ time: 0.3458s ][ queries: 21 (0.0468s) ][ gzip on - debug on ]
Acceuil
suivante
rpgnet.clanmckeen.com :: view topic - fix blank page / page blanche FIX CONNEXION SERVICES - Partenaires Web hosting, domain name registration and web services by 1&1 Internet Vintage Posters - Fix Masseau SP2 TCP Slowdown Fix Télécharger Télécharger Avi Fix Repair Joiner. Fixez les dossiers d'avi de ... Subzero Fix série V12 : Réparation, Modification, Puces ... Slimline Fix V4 pour Pstwo : Réparation, Modification, Puces ... Hobby & Unterhaltung Fixsuche.com Fix gesucht und schnell gefunden ... [FIX] TTC VIDEO - Dark Matter, Dark Energy [MISSING SEGMENTS ... The Freight Elevator Quartet: Fix It In Post (Live, 1997-2000 ... eBay - Annonces - FIX (: 8819501213) sur eBay.fr - Achat et vente ... Lèvres Fix'Intense Tenue 10 h - Embellisseurs des lèvres - Zlio.com Hama LOT DE 9 SERRE-CABLES MICRO FIX acheter promotion comparer ... Webmaster Fixsuche.com Fix gesucht und schnell gefunden! Suche The Fix -- Chris Cillizza's Politics Blog on washingtonpost.com Security Fix - Brian Krebs on Computer and Internet Security ... Forum AideInfo.com :: Voir le Forum - (FIX) Correctifs et mises à ... Blog de fix-montage - Skyrock.com Mailing list archives Chancelière Cabrio Fix Number One : enfant - article bébé à petit prix Chancelière Cabrio Fix Athletic : enfant - article bébé à petit prix Foro Canciones traducidas en YaTV.com: Fix You - Coldplay Porte-bidon, bottle fix kit de fixation pour porte bidon Eng Com / fix (@l10n Wiki) EniyiProgram.com : Fix My Registry 2.2 VICHY THERMAL FIX MAT Fixsuche.com Fix gesucht und schnell gefunden! Informationen ... Pants'Fix trousers solution women femme - Vidéos Actualités Mode ... The Essential Mac - Troubleshooting RW Contact Form Security Fix Forum Snow-FR -> Les Fix Enfin mon “Fix” at Moofo.com : Beware of Moofo Restaurant Fix Saint Geneys Haute-loire Restaurants Fix Saint Geneys Elizabeth Arden Visible Différence Lip Fix Crème Pour Les Lèvres ... WinSock XP Fix - fix XP internet connectivity download, reviewed ... iPodの復元 MCC PS 100 Homework.ch.22-23 A List Apart: Articles: Fix Your Site With the Right DOCTYPE! Marketing Profs Daily Fix Blog Dangerous spacewalk under way - CNN.com Jeffrey Zeldman Presents : An angry fix Drill Fix DFR : Perçage : L'Expo Permanente : salon de l'industrie ... Profil de Fix (Admin) FreeCreditReport.com - Fix Credit - Using Credit Again Télécharger Fix My Registry 2.3 sur Ratiatum.com - Média ... Fix-Up - Vidéo Object Fix Zip 1.5 WinSock XP Fix download and review - fix XP internet connectivity ... Fix' Mascara - Multi-Eclat Clarins sur Beauté-test.com Air - Fix - Tecni.art Fix L'Oréal Professionnel sur Beauté-test.com AB Soft annonce la disponibilité de Fix-It™ et SystemSuite™ de V-Com Mac OS X and iPod Troubleshooting, Support, and Help - MacFixIt Zip Repair - Repair Zip Files using Zip Repair from GetData VCR repair instruction, VCR parts and Remote Controls Error Scan & Fix Sound Fix Williamsburg's Independent Record Store BUG FIX TRANSPARENCE PNG IE (SIMPLE) png, simple, pngfix, iexplore ... IBM Support: Fix Central How to reinstall or repair Internet Explorer and Outlook Express ... Faz com FIX: código da coleção Garbage que violação de acesso em ...