JcDenis / arlequin

Dotclear plugin - Theme selector from frontend
GNU General Public License v2.0
0 stars 0 forks source link

fatal error quand on veut prévisualiser un thème côté admin alors qu'il est sélectionné côté public #2

Closed brol closed 10 months ago

brol commented 11 months ago

coucou dc 2.28-dev-r20230814.0320 - php 8.1 - arlequin 2.3 tu me diras que c'est probablement normal mais le message fait peur, bouh ! manip pour avoir le message qui fout la trouille : admin, choix du thème blowup. public, choix du thème chestnut avec le plugin arlequin. admin je clique sur chestnut et je prévisualise (je sais c'est débile puisque j'ai déjà l'affichage côté public mais bon), et zou, message d'erreur : `

( ! ) Fatal error: Cannot redeclare chestnutPublicHeadContent() (previously declared in F:\wamp64\www\labodc2\lab\themes\chestnut\_public.php:27) in F:\wamp64\www\labodc2\lab\themes\chestnut\_public.php on line 27
Call Stack
#TimeMemoryFunctionLocation
10.0002364328{main}( )...\index.php:0
20.0003364736require( 'F:\wamp64\www\labodc2\dotclear\inc\public\prepend.php )...\index.php:3
30.0004364736Dotclear\App::bootstrap( $utility = 'Frontend', $process = ??? )...\prepend.php:15
40.0046494576Dotclear\App::utility( $utility = 'Dotclear\\Core\\Frontend\\Utility', $next = TRUE )...\App.php:69
50.0046494576Dotclear\Core\Frontend\Utility::process( )...\App.php:596
60.12351601800dcUrlHandlers->getDocument( )...\Utility.php:299
70.12361604688Dotclear\Helper\Network\UrlHandler->callHandler( $type = 'try', $args = 'admin/86608317128af50561936ff4f16f3f371442cb0f/chestnut' )...\lib.urlhandlers.php:249
80.12361604688Dotclear\Helper\Network\UrlHandler->callHelper( $handler = [0 => 'dcUrlHandlers', 1 => 'try'], $args = 'admin/86608317128af50561936ff4f16f3f371442cb0f/chestnut', $type = 'try' )...\UrlHandler.php:263
90.12361604688call_user_func:{F:\wamp64\www\labodc2\dotclear\src\Helper\Network\UrlHandler.php:237}( $callback = [0 => 'dcUrlHandlers', 1 => 'try'], $args = 'admin/86608317128af50561936ff4f16f3f371442cb0f/chestnut' )...\UrlHandler.php:237
100.12361604760dcUrlHandlers::try( $args = 'admin/86608317128af50561936ff4f16f3f371442cb0f/chestnut' )...\UrlHandler.php:237
110.12571653696dcThemes->loadNsFile( $id = 'chestnut', $ns = 'public' )...\lib.urlhandlers.php:690
120.12611653952dcModules->loadModuleFile( $________ = 'F:\\wamp64\\www\\labodc2\\dotclear/../lab/themes\\chestnut\\_public.php', $globals = TRUE, $catch = ??? )...\class.dc.themes.php:237
`

JcDenis commented 11 months ago

Joli celui-là, et je comprend qu'il n'aime pas, par contre j'ai aucune idée de comment je vais le corriger 😅

brol commented 11 months ago

en l'occurrence, c'est chestnut qui était sélectionné côté public avec arlequin (je corrige mon premier message).

JcDenis commented 10 months ago

Normalement corrigé avec la version arlequin 2.4