Page 1 of 1
Plugin LightBox macht Probleme....
Posted: Sun Feb 19, 2023 7:32 pm
by HadleyB
....naja, nicht wirklich Probleme, aber unter meinen Artikeln mit Bildern taucht diese Fehlermeldung auf. Ich verwende "Lightbox 2 jQuery"
Warning: Undefined variable $headcss in /is/htdocs/wp12250357_4YYQG09J6H/www/cms/plugins/serendipity_event_lightbox/serendipity_event_lightbox.php on line 212
Re: Plugin LightBox macht Probleme....
Posted: Mon Feb 27, 2023 3:53 pm
by HadleyB
Niemand eine Idee?
Re: Plugin LightBox macht Probleme....
Posted: Tue Feb 28, 2023 12:13 am
by onli
Zeile 212 ff der serendipity_event_lightbox.php sieht so aus:
Code: Select all
if ($headcss) {
echo ' <link rel="stylesheet" type="text/css" href="' . $pluginDir . '/lightbox2-jquery/css/lightbox.css" />' . "\n";
} else {
Mach daraus bitte mal:
Code: Select all
if (isset($headcss) && $headcss) {
echo ' <link rel="stylesheet" type="text/css" href="' . $pluginDir . '/lightbox2-jquery/css/lightbox.css" />' . "\n";
} else {
Wenn das bei dir funktioniert würde ich es für alle Nutzer als Update pushen.
Re: Plugin LightBox macht Probleme....
Posted: Tue Feb 28, 2023 12:38 pm
by HadleyB
PERFEKT! Du bist der BESTE!
Re: Plugin LightBox macht Probleme....
Posted: Tue Feb 28, 2023 4:04 pm
by onli
Danke für die Rückmeldung Hadley :)
https://github.com/s9y/additional_plugi ... da03f94b40 ist der Spartacus-Commit, wenn du also ab morgen ein Update für lightbox 2.5.5 bekommst kannst du das ruhig installieren.
Re: Plugin LightBox macht Probleme....
Posted: Sun Mar 19, 2023 6:57 pm
by HadleyB
Wohl eher nicht.....
Fatal error: Cannot declare class serendipity_event_lightbox, because the name is already in use in /is/htdocs/wp12250357_4YYQG09J6H/www/cms/plugins/serendipity_event_lightbox/!serendipity_event_lightbox.php on line 13
Re: Plugin LightBox macht Probleme....
Posted: Sun Mar 19, 2023 8:52 pm
by onli
Sicher, dass du das Plugin jetzt nicht zweimal im Dateisystem liegen hast?