Vanilla 1.1.2 Forum von Lussumo. Weitere Informationen: Dokumentation, Community.

    • CommentAuthorfabelhaft
    • CommentTime15.05.2012 bearbeitet
     permalink
    Ich versuche mich gearde das erste Mal mit phpthumb. Ich verwende Revo2.2.2 und entwickle das ganze unter Xampp 1.7.4 auf windows.

    Mein code sieht so aus. In einem getResources Chunk steht u.a.
    <a href="[[~[[+id]]]]" title="Details"><img src="[[+tv.teaser:phpthumbof=`w=236&h=127&zc=1`]]" alt="[[+pagetitle]]" /></a>

    Die Fehler sind wie folgt.

    <b>Strict Standards</b>: Non-static method phpthumb_functions::GetAllFilesInSubfolders() should not be called statically, assuming $this from incompatible context in <b>C:\xampp53\htdocs\development\dorf\core\model\phpthumb\phpthumb.class.php</b> on line <b>658</b><br />
    <br />
    <b>Strict Standards</b>: Non-static method phpthumb_functions::CaseInsensitiveInArray() should not be called statically, assuming $this from incompatible context in <b>C:\xampp53\htdocs\development\dorf\core\model\phpthumb\phpthumb.class.php</b> on line <b>893</b><br />
    <br />
    <b>Strict Standards</b>: Non-static method phpthumb_functions::CaseInsensitiveInArray() should not be called statically, assuming $this from incompatible context in <b>C:\xampp53\htdocs\development\dorf\core\model\phpthumb\phpthumb.class.php</b> on line <b>900</b><br />
    <br />
    <b>Strict Standards</b>: Non-static method phpthumb_functions::gd_version() should not be called statically, assuming $this from incompatible context in <b>C:\xampp53\htdocs\development\dorf\core\model\phpthumb\phpthumb.class.php</b> on line <b>1217</b><br />
    <br />
    <b>Strict Standards</b>: Non-static method phpthumb_functions::gd_version() should not be called statically, assuming $this from incompatible context in <b>C:\xampp53\htdocs\development\dorf\core\model\phpthumb\phpthumb.class.php</b> on line <b>1234</b><br />
    <br />
    <b>Strict Standards</b>: Non-static method phpthumb_functions::OneOfThese() should not be called statically, assuming $this from incompatible context in <b>C:\xampp53\htdocs\development\dorf\core\model\phpthumb\phpthumb.class.php</b> on line <b>2883</b><br />
    <br />
    <b>Strict Standards</b>: Non-static method phpthumb_functions::OneOfThese() should not be called statically, assuming $this from incompatible context in <b>C:\xampp53\htdocs\development\dorf\core\model\phpthumb\phpthumb.class.php</b> on line <b>2884</b><br />
    <br />
    <b>Strict Standards</b>: Non-static method phpthumb_functions::version_compare_replacement() should not be called statically, assuming $this from incompatible context in <b>C:\xampp53\htdocs\development\dorf\core\model\phpthumb\phpthumb.class.php</b> on line <b>2935</b><br />
    <br />
    <b>Strict Standards</b>: Non-static method phpthumb_functions::version_compare_replacement() should not be called statically, assuming $this from incompatible context in <b>C:\xampp53\htdocs\development\dorf\core\model\phpthumb\phpthumb.class.php</b> on line <b>2946</b><br />
    <br />
    <b>Strict Standards</b>: Non-static method phpthumb_functions::gd_version() should not be called statically, assuming $this from incompatible context in <b>C:\xampp53\htdocs\development\dorf\core\model\phpthumb\phpthumb.class.php</b> on line <b>1217</b><br />
    <br />
    <b>Strict Standards</b>: Non-static method phpthumb_functions::gd_version() should not be called statically, assuming $this from incompatible context in <b>C:\xampp53\htdocs\development\dorf\core\model\phpthumb\phpthumb.class.php</b> on line <b>1234</b><br />
    <br />
    <b>Strict Standards</b>: Non-static method phpthumb_functions::ImageCreateFunction() should not be called statically, assuming $this from incompatible context in <b>C:\xampp53\htdocs\development\dorf\core\model\phpthumb\phpthumb.class.php</b> on line <b>2845</b><br />
    <br />
    <b>Strict Standards</b>: Non-static method phpthumb_functions::gd_version() should not be called statically, assuming $this from incompatible context in <b>C:\xampp53\htdocs\development\dorf\core\model\phpthumb\phpthumb.functions.php</b> on line <b>363</b><br />
    <br />
    <b>Strict Standards</b>: Non-static method phpthumb_functions::gd_version() should not be called statically, assuming $this from incompatible context in <b>C:\xampp53\htdocs\development\dorf\core\model\phpthumb\phpthumb.class.php</b> on line <b>3844</b><br />
    <br />
    <b>Strict Standards</b>: Non-static method phpthumb_functions::gd_version() should not be called statically, assuming $this from incompatible context in <b>C:\xampp53\htdocs\development\dorf\core\model\phpthumb\phpthumb.class.php</b> on line <b>2675</b><br />

    Im internationalen Forum habe ich auch einen Eintrag gefunden aber da gibt es auch keine Antwort und die haben vor allem das neuerste php.
    http://forums.modx.com/thread/76413/2-2-1-pl-with-php-5-4-1

    Ich lade die Bilder wie in der Doku beschrieben in eine TV mit der Eingabe-Option "Bild" und der Ausgabeoption als Text. Die Bilder speichere ich unter assets/bilder. Die Bilder in den Verzeichnissen sind nicht schreibgeschützt. Auch jene unter assets\components\phpthumbof\cache sind nicht schreibgeschützt.
    • CommentAuthorfabelhaft
    • CommentTime15.05.2012
     permalink
    Nach langem Suchen und ausprobieren denke ich es ist einfach nur das die imageUrl des Bildes nicht richtig übergeben wird ich habe aber noch keine Ahnung wie ich das ändern soll.

    Ich nehme an die imageUrl wird von der baseUrl bezogen aber falls das nicht so ist, wo muss ich die eintragen?
    Noch etwas was ich bis jetzt nicht voll kapiert habe. Da gibt es doch unter "Tools" im manager die Medienquellen. Brauche ich die für das phpthumbof?
    Wie im ersten Posting schon erwähnt habe ich unter assets einfach ein Verzeichnis "Bilder" angelegt und dort lade ich über die TV dann mein Bild hinein.
    • CommentAuthorBruno
    • CommentTime15.05.2012 bearbeitet
     permalink
    probier doch mal die Systemeinstellung 'debug' auf 0 zu setzen

    die medienquellen brauchst Du nicht
    nur wenn Du zb. einer Bild-TV einen bestimmten Pfad zuweisen möchtest oder bestimmten Nutzern unterschiedliche Pfade über den filemanager zugänglich machen möchtest, verwendest Du die medienquellen.
    • CommentAuthorfabelhaft
    • CommentTime16.05.2012
     permalink
    Ich werde verrückt genau das war das Problem. Da wäre ich wohl lange nicht drauf gekommen. Vielen Dank Bruno.