News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Bug administration des sections avec Pretty URL

Started by vodkaorange, November 30, 2014, 08:16:41 AM

Previous topic - Next topic

vodkaorange

Bonjour,

Je suis sous la version 2.0.9 avec le mod PrettyURL 1.1.2 et depuis la mise à jour j'ai une erreur fatal lors de l'accès à la gestion des sections :
QuoteFatal error: Cannot redeclare PrettyBoardUrls() (previously declared in /home/dashcamf/www/Sources/ManageBoards.php:808) in /home/dashcamf/www/Sources/ManageBoards.php on line 999

La ligne 999 est la dernière ligne du fichier qui contient deux fois la fonction PrettyBoardUrls() mais je ne vois pas la différence entre les deux. Si je supprime l'une ou l'autre, j'ai un nouveau bug :
QuoteFatal error: Cannot redeclare template_pretty_board_url() (previously declared in /home/dashcamf/www/Sources/Load.php(2151) : eval()'d code:637) in /home/dashcamf/www/Sources/Load.php(2151) : eval()'d code on line 720

Merci de votre aide :)

maximus23

Bonjour,

Tu as des doubles déclarations là c'est bizarre c'est comme ci le mod était installé deux fois. Il faut retirer toutes les doubles déclarations indiquées dans les erreurs y compris dans le fichier Sources/Load.

:)
Pas de support par PM ou Courrier...Veuillez utiliser le forum pour vous avoir une réponse rapide à votre demande d'aide. Merci.
Amitiés et à Bientôt...
No support by PM or Mail...You will get better and faster responses in the support forums. Thank you.
Have a nice day...

vodkaorange

Effectivement :
$subActions = array(
'board' => array('EditBoard', 'manage_boards'),
'board2' => array('EditBoard2', 'manage_boards'),
'cat' => array('EditCategory', 'manage_boards'),
'cat2' => array('EditCategory2', 'manage_boards'),
'main' => array('ManageBoardsMain', 'manage_boards'),
'move' => array('ManageBoardsMain', 'manage_boards'),
'newcat' => array('EditCategory', 'manage_boards'),
'newboard' => array('EditBoard', 'manage_boards'),
'settings' => array('EditBoardSettings', 'admin_forum'),

'pretty' => array('PrettyBoardUrls', 'admin_forum'),

'pretty' => array('PrettyBoardUrls', 'admin_forum'),
);


Il est deux fois dans la fonction ManageBoard.

Dans le fichier Sources/Load.php, la fonction n'existe pas.

vodkaorange

Bonsoir, le bug est toujours d'actualité sans trouver la cause !
D'après ce que j'ai pu trouvé, c'est la MAJ qui en serait la cause. Pourtant, PrettyURL est bien compatible avec la version 2.0.9 :-\

maximus23

Bonsoir,

Comme le mod a été installé en doublon il faut reprendre toutes les instructions du mod en manuel et nettoyer tout les fichiers de leurs doublons.

:)
Pas de support par PM ou Courrier...Veuillez utiliser le forum pour vous avoir une réponse rapide à votre demande d'aide. Merci.
Amitiés et à Bientôt...
No support by PM or Mail...You will get better and faster responses in the support forums. Thank you.
Have a nice day...

Advertisement: