Plugin LightBox macht Probleme....

Hier können Probleme und alles andere in Deutscher Sprache gelöst werden.
Post Reply
HadleyB
Regular
Posts: 837
Joined: Sat Feb 11, 2006 11:47 pm

Plugin LightBox macht Probleme....

Post 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
mfg
Hadley
HadleyB
Regular
Posts: 837
Joined: Sat Feb 11, 2006 11:47 pm

Re: Plugin LightBox macht Probleme....

Post by HadleyB »

Niemand eine Idee?
mfg
Hadley
onli
Regular
Posts: 2825
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Plugin LightBox macht Probleme....

Post 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.
HadleyB
Regular
Posts: 837
Joined: Sat Feb 11, 2006 11:47 pm

Re: Plugin LightBox macht Probleme....

Post by HadleyB »

PERFEKT! Du bist der BESTE!
mfg
Hadley
onli
Regular
Posts: 2825
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Plugin LightBox macht Probleme....

Post 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.
HadleyB
Regular
Posts: 837
Joined: Sat Feb 11, 2006 11:47 pm

Re: Plugin LightBox macht Probleme....

Post by HadleyB »

onli wrote: Tue Feb 28, 2023 4:04 pm 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.
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
mfg
Hadley
onli
Regular
Posts: 2825
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Plugin LightBox macht Probleme....

Post by onli »

Sicher, dass du das Plugin jetzt nicht zweimal im Dateisystem liegen hast?
Post Reply