Wordpress Templates abrufen (wp_remote_get error)

  • Hallo,


    ich nutze für meine Wordpress Instanzen den relativ neuen BricksBuilder. Hier gibt es die Option auf Remote Templates zuzugreifen. Dies funktioniert bei mir seit ca. 6 Wochen nicht mehr. Ein Downgrade auf PHP 7.4 wurde vom Bricks Support vorgeschlagen, aber brachte nichts. Der Support hat alles probiert und am Ende nur diese Fehler im Debug entdeckt:


    Bricks is only performing a wp_remote_get and for some reason in this WP installation it throws an error.
    Deprecated: setcookie(): Passing null to parameter #5 ($domain) of type string is deprecated in /var/www/vhosts/hosting177717.a2eb2.netcup.net/loadweb.de/httpdocs/wp-includes/option.php on line 1112

    Deprecated: setcookie(): Passing null to parameter #5 ($domain) of type string is deprecated in /var/www/vhosts/hosting177717.a2eb2.netcup.net/loadweb.de/httpdocs/wp-includes/option.php on line 1113

    Deprecated: strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/vhosts/hosting177717.a2eb2.netcup.net/loadweb.de/httpdocs/wp-includes/functions.php on line 1143

    Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/vhosts/hosting177717.a2eb2.netcup.net/loadweb.de/httpdocs/wp-includes/functions.php on line 1150

    Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/vhosts/hosting177717.a2eb2.netcup.net/loadweb.de/httpdocs/wp-includes/functions.php on line 1153

    Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/vhosts/hosting177717.a2eb2.netcup.net/loadweb.de/httpdocs/wp-includes/functions.php on line 1160

    Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/vhosts/hosting177717.a2eb2.netcup.net/loadweb.de/httpdocs/wp-includes/functions.php on line 1163

  • Hay,


    für mich sieht es nicht danach aus, dass die PHP-Version auf 7.4 heruntergesetzt wurde. Diese deprecated null statt string Meldung wurde meiner Meinung mit 8.1 eingeführt. Vielleicht mal ein


    <?php

    phpinfo();

    ?>


    in eine info.php schreiben, ins httpdocs legen und aufrufen - welche PHP-Version wird angezeigt?


    Natürlich kann der Fehler auch ein anderer sein und man hat diese Einträge nur "zufällig" im Logfile gefunden, weil sie auffällig sind.


    Auf jeden Fall benötigen die PHP-Scripte ein Update. Welchen Versionsstand hat denn die WP-Instanz?


    CU, Peter

    Peter Kleemann // https://www.pkleemann.de // +49 621 1806222-0 // Kann Programme, Internet, Netzwerke und Telefon.

    Einmal editiert, zuletzt von CmdrXay ()

  • CmdrXay


    Besten Dank schon einmal für deine Antwort, Peter.


    Die Fehlermeldungen sind von PHP 8.1 mit Wordpress 6.0.3. Mit PHP 7.4 und Wordpress 5.9.5 funktionierten die remote Templates allerdings auch nicht. Laut Support liegt es daran, dass wp_remote_get nicht durchgeht.

  • Hay,

    liegt es daran, dass wp_remote_get nicht durchgeht.

    dann war es also doch was anderes. Ich habe halbwegs geahnt, dass die Fehlermeldung einen in die Irre führen :D

    Nur was sollte einen normalen GET request blocken (darauf ist der Code von wp_remote_get zurückzuführen)? Seltsame Dinge...


    CU, Peter

    Peter Kleemann // https://www.pkleemann.de // +49 621 1806222-0 // Kann Programme, Internet, Netzwerke und Telefon.

  • CmdrXay

    Ich habe vom Support die Nachricht bekommen, dass ich einen Proxy Server deaktivieren soll. Ist das sinnvoll und wo kann ich das einstellen?




    remote response: Array

    (
    [headers] => Requests_Utility_CaseInsensitiveDictionary Object
    (
    [data:protected] => Array
    (
    [date] => Thu, 27 Oct 2022 15:33:42 GMT
    [content-type] => text/html
                       [server] => imunify360-webshield/1.18
    [last-modified] => Thursday, 27-Oct-2022 15:33:42 GMT
    [cache-control] => private, no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0, s-maxage=0
    [cf-edge-cache] => no-cache
    )
    )

    ...