S9y 2.0: Fatal error mit Karma Plugin

Hier können Probleme und alles andere in Deutscher Sprache gelöst werden.
Post Reply
User avatar
moonchild
Regular
Posts: 187
Joined: Mon Nov 21, 2005 11:23 pm
Location: Esslingen
Contact:

S9y 2.0: Fatal error mit Karma Plugin

Post by moonchild » Fri Feb 27, 2015 12:26 pm

Hallo zusammen,
nach dem Update von 2.0rc2 eben auf die finale 2.0 habe ich ein Problem mit dem karma Plugin:

Fatal error: Call to undefined function serendipity_getimagesize() in /home/www/plugins/serendipity_event_karma/serendipity_event_karma.php on line 2106

Ich habe überhaupt keinen Plan, sobald ich das Verzeichnis des Plugins lösche und versuche über das Adminfrontend wieder neu zu installieren tritt der Fehler erneut auf.

Serendipity 2.0 und PHP 5.4.38

Any hints?

Danke im Voraus!
Bonan tagon,
Thomas Trueten

User avatar
onli
Regular
Posts: 2355
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: S9y 2.0: Fatal error mit Karma Plugin

Post by onli » Fri Feb 27, 2015 12:42 pm

Die Funktion sollte in https://github.com/s9y/Serendipity/blob ... .php#L1972 definiert sein, also in include/function_images.inc.php. Kannst du dir die Datei auf deinem Server anschauen und prüfen, ob die Funktion dort ist?

User avatar
moonchild
Regular
Posts: 187
Joined: Mon Nov 21, 2005 11:23 pm
Location: Esslingen
Contact:

Re: S9y 2.0: Fatal error mit Karma Plugin

Post by moonchild » Fri Feb 27, 2015 12:58 pm

Hallo,
Danke für die Antwort. Ist vorhanden.

Code: Select all

/**
 * Get the imagesize for a file
 *
 * @access public
 * @param   string      The filename of the image
 * @param   string      The mimetype of an image (can be autodetected)
 * @param   string      The file extension of an image
 * @return  array       The width/height of the file
 */
function serendipity_getimagesize($file, $ft_mime = '', $suf = '') {
    if (empty($ft_mime) && !empty($suf)) {
        $ft_mime = serendipity_guessMime($suf);
    }

    if ($ft_mime == 'application/pdf') {
        $fdim = array(1000,1000,24, '', 'bits'=> 24, 'channels' => '3', 'mime' => 'application/pdf');
    } else {
        $fdim = @getimagesize($file);
    }

    if (is_array($fdim)) {
        if (empty($fdim['mime'])) {
            $fdim['mime'] = $ft_mime;
        }

        if ($fdim['mime'] == 'image/vnd.wap.wbmp' && $ft_mime == 'video/x-quicktime') {
            // PHP Versions prior to 4.3.9 reported .mov files wrongly as WAP. Fix this and mark the file as 'non-image' with 0x0 dimensions
            $fdim['mime'] = $ft_mime;
        }
    } else {
        // The file is no image. Return a fake array so that files are inserted (but without a thumb)
        $fdim = array(
            0         => 0,
            1         => 0,
            'mime'    => $ft_mime,
            'noimage' => true
        );
    }

    return $fdim;
}
onli wrote:Die Funktion sollte in https://github.com/s9y/Serendipity/blob ... .php#L1972 definiert sein, also in include/function_images.inc.php. Kannst du dir die Datei auf deinem Server anschauen und prüfen, ob die Funktion dort ist?
Bonan tagon,
Thomas Trueten

User avatar
onli
Regular
Posts: 2355
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: S9y 2.0: Fatal error mit Karma Plugin

Post by onli » Fri Feb 27, 2015 1:18 pm

Dann wird diese Datei nicht vor dem Plugin eingebunden, was ich nicht erklären kann :/

Bei mir im Testblog (allerdings 2.1-alpha) sehe ich die Fehlermeldung nicht. Kann den Fehler sonst jemand nachstellen oder hat eine Idee?

User avatar
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: S9y 2.0: Fatal error mit Karma Plugin

Post by yellowled » Fri Feb 27, 2015 2:12 pm

onli wrote:Bei mir im Testblog (allerdings 2.1-alpha) sehe ich die Fehlermeldung nicht. Kann den Fehler sonst jemand nachstellen oder hat eine Idee?
Kann ich gerade nicht probieren, aber mal so als Schuss ins Blaue: PHP-Version? Dein Testblog läuft vermutlich nicht mit PHP 5.4. Irgendwas in die Richtung?

YL
amazon Wishlist - Serendipity-Podcast (German only, sorry)

User avatar
onli
Regular
Posts: 2355
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: S9y 2.0: Fatal error mit Karma Plugin

Post by onli » Fri Feb 27, 2015 3:59 pm

PHP 5.5.9 - möglich, aber die Änderungen im Core in die Richtung sind nur, include_once statt Konstanten zu benutzen. Da sollten sich PHP 5.4 und 5.5 nicht unterscheiden.

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: S9y 2.0: Fatal error mit Karma Plugin

Post by garvinhicking » Fri Feb 27, 2015 11:51 pm

Hey,

kannst Du evtl im Plugin in Zeile 2106 VOR dem serendipity_getimagesize() Aufruf mal ein:

Code: Select all

print_r(get_included_files());
einfügen? Ich kann mir das auch nicht wirklich erklären. Die include/functions.inc.php müsste die images-Datei nämlich einbinden; ohne functions.inc.php wiederrum würde das Plugin gar nicht laden können.

VG,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

User avatar
moonchild
Regular
Posts: 187
Joined: Mon Nov 21, 2005 11:23 pm
Location: Esslingen
Contact:

Re: S9y 2.0: Fatal error mit Karma Plugin

Post by moonchild » Sat Feb 28, 2015 3:00 pm

Hallo Garv,
in der Pluginverwaltung kommt dann

Code: Select all

Fehler!Fehler: 
serendipity_event_karma:0949a3627041b62276da390a796f792e
Bonan tagon,
Thomas Trueten

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: S9y 2.0: Fatal error mit Karma Plugin

Post by garvinhicking » Sun Mar 01, 2015 10:05 am

Hm, das dürfte nicht passieren, mit welchem Editor hast du die Datei angepasst?! Kannst du sie mir mal zippen und irgendwo hinladen? Durch die eine Codezeile dürfte es eigentlich nicht passieren.

LG,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

User avatar
moonchild
Regular
Posts: 187
Joined: Mon Nov 21, 2005 11:23 pm
Location: Esslingen
Contact:

Re: S9y 2.0: Fatal error mit Karma Plugin

Post by moonchild » Sun Mar 01, 2015 11:30 am

Hallo,
Editor ist NotePad++.

Von der serendipity_event_karma.php habe ich Dir ein Zip via PM geschickt.
Bonan tagon,
Thomas Trueten

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: S9y 2.0: Fatal error mit Karma Plugin

Post by garvinhicking » Mon Mar 02, 2015 11:50 am

Hi!

Hm, ich kann das nicht wirklich reproduzieren, das ist schon komisch.

Wenn du nach der eingefügten print_r() Zeile direkt mal ein "return true;" einfügst, siehst Du dann die Ausgabe von eingebundenen Dateien anstelle einer Fehlermeldung?

Ich wüsste leider sonst nicht so recht wie wir es debuggen können. Wäre es möglich mir temporär Zugriff auf Dein Blog zu gewähren damit ich das mal "live" sehen kann? Ich bräuchte einen s9y Zugang mit Plugin-Konfigrechten (am einfachsten ein admin-account), und vermutlich auch Schreibrechte (FTP/SSH) auf die serendipity_event_karma.php (ggf. aber auch andere Dateien der Installation).
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

User avatar
moonchild
Regular
Posts: 187
Joined: Mon Nov 21, 2005 11:23 pm
Location: Esslingen
Contact:

Re: S9y 2.0: Fatal error mit Karma Plugin

Post by moonchild » Mon Mar 02, 2015 2:04 pm

Hallo Garvin,
ich habe das jetzt mal so eingegeben. Ergebnis bereits beim Loginversuch:

Code: Select all

Array ( [0] => /home/www/serendipity_admin.php [1] => /home/www/serendipity_config.inc.php [2] => serendipity_config.inc.php [3] => /home/www/include/compat.inc.php [4] => /home/www/include/lang.inc.php [5] => /home/www/lang/serendipity_lang_.inc.php [6] => /home/www/bundled-libs/autoload.php [7] => /home/www/bundled-libs/composer/autoload_real.php [8] => /home/www/bundled-libs/composer/ClassLoader.php [9] => /home/www/bundled-libs/composer/autoload_namespaces.php [10] => /home/www/bundled-libs/composer/autoload_classmap.php [11] => /home/www/serendipity_config_local.inc.php [12] => /home/www/include/functions.inc.php [13] => /home/www/include/db/db.inc.php [14] => /home/www/include/db/mysql.inc.php [15] => /home/www/include/functions_config.inc.php [16] => /home/www/include/plugin_api.inc.php [17] => /home/www/include/functions_images.inc.php [18] => /home/www/include/functions_installer.inc.php [19] => /home/www/include/functions_entries.inc.php [20] => /home/www/include/functions_comments.inc.php [21] => /home/www/include/functions_permalinks.inc.php [22] => /home/www/include/functions_smarty.inc.php [23] => /home/www/ww7401/html/plugins/serendipity_event_spamblock_bee/serendipity_event_spamblock_bee.php [24] => /home/www/plugins/serendipity_event_spamblock_bee/serendipity_event_spamblock_bee.php [25] => /home/www/plugins/serendipity_event_spamblock_bee/UTF-8/lang_de.inc.php [26] => /home/www/plugins/serendipity_event_spamblock_bee/lang_en.inc.php [27] => /home/www/plugins/serendipity_event_spamblock_bee/version.inc.php [28] => /home/www/plugins/serendipity_event_spamblock_bee/json/json.php4.include.php [29] => /home/www/ww7401/html/plugins/serendipity_event_spamblock/serendipity_event_spamblock.php [30] => /home/www/plugins/serendipity_event_spamblock/serendipity_event_spamblock.php [31] => /home/www/plugins/serendipity_event_spamblock/UTF-8/lang_de.inc.php [32] => /home/www/plugins/serendipity_event_spamblock/lang_en.inc.php [33] => /home/www/ww7401/html/plugins/serendipity_event_karma/serendipity_event_karma.php [34] => /home/www/plugins/serendipity_event_karma/serendipity_event_karma.php [35] => /home/www/plugins/serendipity_event_karma/UTF-8/lang_de.inc.php [36] => /home/www/plugins/serendipity_event_karma/lang_en.inc.php [37] => /home/www/ww7401/html/plugins/serendipity_event_custom_permalinks/serendipity_event_custom_permalinks.php [38] => /home/www/plugins/serendipity_event_custom_permalinks/serendipity_event_custom_permalinks.php [39] => /home/www/plugins/serendipity_event_custom_permalinks/UTF-8/lang_de.inc.php [40] => /home/www/plugins/serendipity_event_custom_permalinks/lang_en.inc.php [41] => /home/www/ww7401/html/plugins/serendipity_event_userprofiles/serendipity_event_userprofiles.php [42] => /home/www/plugins/serendipity_event_userprofiles/serendipity_event_userprofiles.php [43] => /home/www/plugins/serendipity_event_userprofiles/UTF-8/lang_de.inc.php [44] => /home/www/plugins/serendipity_event_userprofiles/lang_en.inc.php [45] => /home/www/ww7401/html/plugins/serendipity_event_s9ymarkup/serendipity_event_s9ymarkup.php [46] => /home/www/plugins/serendipity_event_s9ymarkup/serendipity_event_s9ymarkup.php [47] => /home/www/plugins/serendipity_event_s9ymarkup/UTF-8/lang_de.inc.php [48] => /home/www/plugins/serendipity_event_s9ymarkup/lang_en.inc.php [49] => /home/www/ww7401/html/plugins/serendipity_event_bbcode/serendipity_event_bbcode.php [50] => /home/www/plugins/serendipity_event_bbcode/serendipity_event_bbcode.php [51] => /home/www/plugins/serendipity_event_bbcode/UTF-8/lang_de.inc.php [52] => /home/www/plugins/serendipity_event_bbcode/lang_en.inc.php [53] => /home/www/ww7401/html/plugins/serendipity_event_nl2br/serendipity_event_nl2br.php [54] => /home/www/plugins/serendipity_event_nl2br/serendipity_event_nl2br.php [55] => /home/www/plugins/serendipity_event_nl2br/UTF-8/lang_de.inc.php [56] => /home/www/plugins/serendipity_event_nl2br/lang_en.inc.php [57] => /home/www/ww7401/html/plugins/serendipity_event_linklist/serendipity_event_linklist.php [58] => /home/www/plugins/serendipity_event_linklist/serendipity_event_linklist.php [59] => /home/www/plugins/serendipity_event_linklist/lang_en.inc.php [60] => /home/www/ww7401/html/plugins/serendipity_event_relatedlinks/serendipity_event_relatedlinks.php [61] => /home/www/plugins/serendipity_event_relatedlinks/serendipity_event_relatedlinks.php [62] => /home/www/plugins/serendipity_event_relatedlinks/UTF-8/lang_de.inc.php [63] => /home/www/plugins/serendipity_event_relatedlinks/lang_en.inc.php [64] => /home/www/ww7401/html/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php [65] => /home/www/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php [66] => /home/www/bundled-libs/HTTP/Request.php [67] => /home/www/bundled-libs/PEAR.php [68] => /home/www/bundled-libs/PEAR5.php [69] => /home/www/bundled-libs/Net/Socket.php [70] => /home/www/bundled-libs/Net/URL.php [71] => /home/www/plugins/serendipity_event_weblogping/UTF-8/lang_de.inc.php [72] => /home/www/plugins/serendipity_event_weblogping/lang_en.inc.php [73] => /home/www/plugins/serendipity_event_weblogping/servicesdb_de.inc.php [74] => /home/www/ww7401/html/plugins/serendipity_event_randomblogdescription/serendipity_event_randomblogdescription.php [75] => /home/www/plugins/serendipity_event_randomblogdescription/serendipity_event_randomblogdescription.php [76] => /home/www/plugins/serendipity_event_randomblogdescription/UTF-8/lang_de.inc.php [77] => /home/www/plugins/serendipity_event_randomblogdescription/lang_en.inc.php [78] => /home/www/ww7401/html/plugins/serendipity_event_staticpage/serendipity_event_staticpage.php [79] => /home/www/plugins/serendipity_event_staticpage/serendipity_event_staticpage.php [80] => /home/www/plugins/serendipity_event_staticpage/UTF-8/lang_de.inc.php [81] => /home/www/plugins/serendipity_event_staticpage/lang_en.inc.php [82] => /home/www/ww7401/html/plugins/serendipity_event_xmlrpc/serendipity_event_xmlrpc.php [83] => /home/www/plugins/serendipity_event_xmlrpc/serendipity_event_xmlrpc.php [84] => /home/www/plugins/serendipity_event_xmlrpc/UTF-8/lang_de.inc.php [85] => /home/www/plugins/serendipity_event_xmlrpc/lang_en.inc.php [86] => /home/www/ww7401/html/plugins/serendipity_event_lightbox/serendipity_event_lightbox.php [87] => /home/www/plugins/serendipity_event_lightbox/serendipity_event_lightbox.php [88] => /home/www/plugins/serendipity_event_lightbox/UTF-8/lang_de.inc.php [89] => /home/www/plugins/serendipity_event_lightbox/lang_en.inc.php [90] => /home/www/ww7401/html/plugins/serendipity_event_entryproperties/serendipity_event_entryproperties.php [91] => /home/www/plugins/serendipity_event_entryproperties/serendipity_event_entryproperties.php [92] => /home/www/plugins/serendipity_event_entryproperties/UTF-8/lang_de.inc.php [93] => /home/www/plugins/serendipity_event_entryproperties/lang_en.inc.php [94] => /home/www/ww7401/html/plugins/serendipity_event_recaptcha/serendipity_event_recaptcha.php [95] => /home/www/plugins/serendipity_event_recaptcha/serendipity_event_recaptcha.php [96] => /home/www/plugins/serendipity_event_recaptcha/UTF-8/lang_de.inc.php [97] => /home/www/plugins/serendipity_event_recaptcha/lang_en.inc.php [98] => /home/www/plugins/serendipity_event_recaptcha/recaptcha/recaptchalib.php [99] => /home/www/ww7401/html/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php [100] => /home/www/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php [101] => /home/www/plugins/serendipity_event_spartacus/UTF-8/lang_de.inc.php [102] => /home/www/plugins/serendipity_event_spartacus/lang_en.inc.php [103] => /home/www/ww7401/html/plugins/serendipity_event_trackback/serendipity_event_trackback.php [104] => /home/www/plugins/serendipity_event_trackback/serendipity_event_trackback.php [105] => /home/www/plugins/serendipity_event_trackback/UTF-8/lang_de.inc.php [106] => /home/www/plugins/serendipity_event_trackback/lang_en.inc.php [107] => /home/www/ww7401/html/plugins/serendipity_event_creativecommons/serendipity_event_creativecommons.php [108] => /home/www/plugins/serendipity_event_creativecommons/serendipity_event_creativecommons.php [109] => /home/www/plugins/serendipity_event_creativecommons/UTF-8/lang_de.inc.php [110] => /home/www/plugins/serendipity_event_creativecommons/lang_en.inc.php [111] => /home/www/ww7401/html/plugins/serendipity_event_findmore/serendipity_event_findmore.php [112] => /home/www/plugins/serendipity_event_findmore/serendipity_event_findmore.php [113] => /home/www/plugins/serendipity_event_findmore/lang_en.inc.php [114] => /home/www/ww7401/html/plugins/serendipity_event_dbclean/serendipity_event_dbclean.php [115] => /home/www/plugins/serendipity_event_dbclean/serendipity_event_dbclean.php [116] => /home/www/plugins/serendipity_event_dbclean/UTF-8/lang_de.inc.php [117] => /home/www/plugins/serendipity_event_dbclean/lang_en.inc.php [118] => /home/www/ww7401/html/plugins/serendipity_event_page_nugget/serendipity_event_page_nugget.php [119] => /home/www/plugins/serendipity_event_page_nugget/serendipity_event_page_nugget.php [120] => /home/www/plugins/serendipity_event_page_nugget/lang_en.inc.php [121] => /home/www/ww7401/html/plugins/serendipity_event_spamblock_bayes/serendipity_event_spamblock_bayes.php [122] => /home/www/plugins/serendipity_event_spamblock_bayes/serendipity_event_spamblock_bayes.php [123] => /home/www/plugins/serendipity_event_spamblock_bayes/UTF-8/lang_de.inc.php [124] => /home/www/plugins/serendipity_event_spamblock_bayes/lang_en.inc.php [125] => /home/www/ww7401/html/plugins/serendipity_event_head_nugget/serendipity_event_head_nugget.php [126] => /home/www/plugins/serendipity_event_head_nugget/serendipity_event_head_nugget.php [127] => /home/www/plugins/serendipity_event_head_nugget/UTF-8/lang_de.inc.php [128] => /home/www/plugins/serendipity_event_head_nugget/lang_en.inc.php [129] => /home/www/ww7401/html/plugins/serendipity_event_statistics/serendipity_event_statistics.php [130] => /home/www/plugins/serendipity_event_statistics/serendipity_event_statistics.php [131] => /home/www/plugins/serendipity_event_statistics/UTF-8/lang_de.inc.php [132] => /home/www/plugins/serendipity_event_statistics/lang_en.inc.php [133] => /home/www/ww7401/html/plugins/serendipity_event_assigncategories/serendipity_event_assigncategories.php [134] => /home/www/plugins/serendipity_event_assigncategories/serendipity_event_assigncategories.php [135] => /home/www/plugins/serendipity_event_assigncategories/UTF-8/lang_de.inc.php [136] => /home/www/plugins/serendipity_event_assigncategories/lang_en.inc.php [137] => /home/www/ww7401/html/plugins/serendipity_event_freetag.org/serendipity_event_freetag.php [138] => /home/www/plugins/serendipity_event_freetag.org/serendipity_event_freetag.php [139] => /home/www/plugins/serendipity_event_freetag.org/UTF-8/lang_de.inc.php [140] => /home/www/plugins/serendipity_event_freetag.org/lang_en.inc.php [141] => /home/www/lang/UTF-8/serendipity_lang_de.inc.php ) == SERENDIPITY ERROR ==
Division by zero in /home/www/plugins/serendipity_event_karma/serendipity_event_karma.php on line 728
Ich habe jetzt die Originalfassung von serendipity_event_karma.php wieder hochgeladen. Komischerweise läuft jetzt alles. :shock:
Bonan tagon,
Thomas Trueten

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: S9y 2.0: Fatal error mit Karma Plugin

Post by garvinhicking » Mon Mar 02, 2015 4:14 pm

Hi!

Hm....Ich habe keine AHnung. Denn die include/functions_images.inc.php is ja enthalten in deiner Listung...
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

User avatar
onli
Regular
Posts: 2355
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: S9y 2.0: Fatal error mit Karma Plugin

Post by onli » Mon Mar 02, 2015 4:19 pm

Ein opcode cache bug oder sowas?

Post Reply