While helping out on another site, I noticed that the Picasa Plugin for S9y is not compatible to PHP5. The reason is the use of some domxml function, which doesn't exist anymore in PHP5.
Thanks to Alexandre Alapetite there is a pretty easy workaround. This is what you have to do:
- Save the translation file written by Alexandre from here to the directory of the plugin. Strip the ending .txt (so it ends on .php). The location of the plugin is usually BLOGBASEDIR/plugins/serendipity_event_picasa/.
- Edit the file serendipity_event_picasa.php in the same directory.
- After the "Don't hack" statement insert the following lines:
// Quick Hack for compatibility with PHP5if (version_compare(PHP_VERSION,
'5',
'>=')) { require_once(dirname(__FILE__) .
'/domxml-php4-to-php5.php');
//Load the PHP5 converter}
That's it. Now the plugin checks for the PHP version and if it is 5 or higher, it includes the converter file. Now the needed functions are available again.
I hope, this helps somebody, who stumbles upon the same problem.
Sebastian meint, mein Blog hätte einen größeren LeserInnenkreis, danke für diese Einschätzung Er ersucht mich daher um einen Hinweis auf seine Lösung wie man das S9y Picasa Plugin für Serendipity auch unter PHP5 zum Laufen bekommt. Der Blogeintrag ist au
Tracked: Jul 22, 22:02
Geht doch, myndian.de ist nach einer Woche mit wenig Zeit zur Fehlersuche endlich wieder online! Da denke ich mir letze Woche, so langsam wären mal wieder ein paar Sicherheitsupdates für den Server angebracht. Also schnell die Updates eingespielt und
Tracked: Oct 07, 19:54
Landesgartenschau Ja, er hat sie alle doppelt. Nein, wieso, weiß ich jetzt so schnell nicht. Ja, Lightbox geht da auch nicht mehr. Schade, aber mir ist die Galerie-Funktion wichtiger. Ach, und wenn
Tracked: May 06, 13:24
Ich hatte ja mal darüber berichtet, dass mein Blog im Administrations-Bereich einen Error 500 wirft. Auf die Lösung bin ich heute per Zufall gestoßen -> in der .htaccess muss man einfach einstellen, dass man PHP5 verwenden will. Folgende Zeilen muss man
Tracked: Jun 23, 16:09