[Web_Gallery_Creator] mehrere Bugs
hallo,
die Erweiterung Web_Gallery_Creator funktioniert nicht einwandfrei mit Contao 2.9.2.
Sobald Contao in einem Unterverzeichnis liegt, wie z.B. bei mir lokal auf meinem Testsystem findet er keine Pfade da an mehreren Stellen "$GLOBALS['TL_CONFIG']['websitePath']" fehlt.
\system\modules\web_gallery_creator\dca\tl_gallery _albums.php
PHP-Code:
Line 222: $this->img_dir = $this->Environment->documentRoot .$GLOBALS['TL_CONFIG']['websitePath']. "/". $GLOBALS['TL_CONFIG']['uploadPath'] . "/Gallery/";
Line 223: $this->rel_img_dir = $GLOBALS['TL_CONFIG']['websitePath']. $GLOBALS['TL_CONFIG']['uploadPath'] . "/Gallery/";
Line 249: $uploader = $this->Environment->documentRoot . $GLOBALS['TL_CONFIG']['websitePath'] . "/contao/web_gallery_creator_fileuploader.php";
\system\modules\web_gallery_creator\dca\tl_gallery _pictures.php
PHP-Code:
Line 211: $this->rel_img_dir = $GLOBALS['TL_CONFIG']['websitePath']. $GLOBALS['TL_CONFIG']['uploadPath'] . "/Gallery/";
Könnte das der Autor der Erweiterung bitte korrigieren und selbst mal in einer Testumgebung in einem Unterverzeichnis testen?
Warum AlbumID auf redonly ist kann ich ja noch verstehen, aber warum ist auch Besitzer/Ersteller auf readonly?
Gruß
Marcel
Liste der Anhänge anzeigen (Anzahl: 2)
Editieren von Alben gibt Fehlermeldung
Hallo Marko,
deine Erweiterung ist sehr interresant und, glaube ich, genau das was ich für unsere Orchesterhomepage brauchen könnte. Leider kann ich zwar ein Album anlegen, beim klick auf das Stiftsymbol "editieren des Albums" kommt bei mir allerdings diese Fehlermeldung.
Zitat:
Warning: mb_detect_encoding() expects parameter 1 to be string, array given in C:\xampp\htdocs\contao\system\mbstring.php on line 228
#0 [internal function]: __error(2, 'mb_detect_encod...', 'C:\xampp\htdocs...', 228, Array)
#1 C:\xampp\htdocs\contao\system\mbstring.php(228): mb_detect_encoding(Array, Array)
#2 C:\xampp\htdocs\contao\system\mbstring.php(149): utf8_detect_encoding(Array)
#3 C:\xampp\htdocs\contao\system\mbstring.php(263): utf8_convert_encoding(Array, 'UTF-8')
#4 C:\xampp\htdocs\contao\system\drivers\DC_Table.php (3999): utf8_romanize(Array)
#5 C:\xampp\htdocs\contao\system\drivers\DC_Table.php (3869): DC_Table->searchMenu()
#6 C:\xampp\htdocs\contao\system\drivers\DC_Table.php (344): DC_Table->panel()
#7 C:\xampp\htdocs\contao\system\modules\backend\Back end.php(234): DC_Table->showAll()
#8 C:\xampp\htdocs\contao\contao\main.php(101): Backend->getBackendModule('web_gallery_cre...')
#9 C:\xampp\htdocs\contao\contao\main.php(304): Main->run()
#10 {main}
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\contao\system\functions.php:134) in C:\xampp\htdocs\contao\system\libraries\Template.p hp on line 186
#0 [internal function]: __error(2, 'Cannot modify h...', 'C:\xampp\htdocs...', 186, Array)
#1 C:\xampp\htdocs\contao\system\libraries\Template.p hp(186): header('Content-Type: t...')
#2 C:\xampp\htdocs\contao\system\modules\backend\Back endTemplate.php(142): Template->output()
#3 C:\xampp\htdocs\contao\contao\main.php(295): BackendTemplate->output()
#4 C:\xampp\htdocs\contao\contao\main.php(104): Main->output()
#5 C:\xampp\htdocs\contao\contao\main.php(304): Main->run()
#6 {main}
Das Plussymbol ist ohne Text. Der Bildupload klappt zwar aber beim bearbeiten des Bildes sieht der Bildschirm nicht gut aus.
Zum Test hab ich die Web_Gallery lokal unter Xampp auf einer neuen Contao-Installation installiert. Ist das noch ein Fehler der Erweiterung oder mache ich etwas falsch?
Viele Grüße
Jürgen