Kritischer Fehler nach Bild-Upload

  • Hallo!

    auf einer von mir erstellten Website wird im Front-End oft (nicht immer) ein kritischer Fehler angezeigt, wenn man Bilder in die Mediathek hochgeladen hat. Wenn man die Seite neu lädt, ist der Fehler wieder weg. Manchmal hilft es (glaube ich) den Cache zu löschen. Im Website-Zustand steht aber kein kritisches Problem.

    Weiß vielleicht jemand, woran der kritische Fehler liegen könnte?

    Im Error log von Strato stehen folgende Zeilen:
    11.02.2021 16:30:47 alberthartmair.com [client 2003:d6:2f00::] PHP Fatal error: Out of memory (allocated 4194304) (tried to allocate 1318912 bytes) in /mnt/web021/c3/80/511041380/htdocs/STRATO-apps/wordpress_01/app/wp-content/plugins/wp-smushit/core/class-helper.php on line 50
    11.02.2021 16:38:31 alberthartmair.com [client 2003:d6:2f00::] PHP Fatal error: Out of memory (allocated 12582912) (tried to allocate 20480 bytes) in /mnt/web021/c3/80/511041380/htdocs/STRATO-apps/wordpress_01/app/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 823
    11.02.2021 16:38:31 alberthartmair.com [client 2003:d6:2f00::] PHP Fatal error: Out of memory (allocated 12582912) (tried to allocate 32768 bytes) in /mnt/web021/c3/80/511041380/htdocs/STRATO-apps/wordpress_01/app/wp-includes/class-phpass.php on line 1
    11.02.2021 16:39:23 alberthartmair.com [client 2003:d6:2f00::] PHP Fatal error: Out of memory (allocated 8388608) (tried to allocate 32768 bytes) in /mnt/web021/c3/80/511041380/htdocs/STRATO-apps/wordpress_01/app/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 823
    11.02.2021 16:40:12 alberthartmair.com [client 2a02:908:500::] PHP Fatal error: Out of memory (allocated 4194304) (tried to allocate 253952 bytes) in /mnt/web021/c3/80/511041380/htdocs/STRATO-apps/wordpress_01/app/wp-admin/includes/file.php on line 1596
    11.02.2021 21:04:49 alberthartmair.com [client 37.201.25.0] AH00132: file permissions deny server access: /home/strato/http/premium/rid/13/80/511041380/htdocs/STRATO-apps/wordpress_01/app/wp-content/cache/all/index.html
    11.02.2021 21:45:18 alberthartmair.com [client 37.201.25.0] AH00132: file permissions deny server access: /home/strato/http/premium/rid/13/80/511041380/htdocs/STRATO-apps/wordpress_01/app/wp-content/cache/all/index.html

    Ich habe Wordpress 5.61, PHP 7.4, nutze das Divi-(Child)-Theme & habe folgende Plugins installiert:

    Borlabs Cookie - Cookie Opt-in Version 2.2.16 von Benjamin A. Bornschein, Borlabs
    Etsy Shop Version 2.3.2 von Frédéric Sheedy
    Smash Balloon Instagram Feed Version 2.7 von Smash Balloon
    Smush Version 3.8.2 von WPMU DEV
    SVG Support Version 2.3.18 von Benbodhi
    UpdraftPlus - Backup/Restore Version 1.16.47 von UpdraftPlus.Com, DavidAnderson
    Use Any Font Version 6.0.4 von Dnesscarkey
    WP Fastest Cache Version 0.9.1.5 von Emre Vona
    WP GDPR Compliance Version 1.5.5 von Van Ons
    Yoast SEO Version 15.8 von Team Yoast

    Bei Strato habe ich den Server-Side-Security-Filter ausgestellt (wie in einigen Blog-Atrikeln empfohlen).

    Ich würde mich sehr freuen, wenn jemand helfen könnte!

    Vera

    • Anzeige

    Hallo!

    Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.

    • ✔️ Schnelle Ladezeiten (optimiert für WordPress & Co.)
    • ✔️ Deutsche Server & DSGVO-konform
    • ✔️ Persönlicher Support (kein 0815-Ticket-System)

    Mehr erfahren

  • An deiner PHP allocated Memory
    PHP Fatal error: Out of memory (allocated 4194304)
    Da wirst du ein mehr an Speicher brauchen.
    STRATO Probleme mit Speicher. Ich frage mich wie der Hoster so erfolgreich werden konnte.

  • PHP Fatal error: Out of memory (allocated 4194304)

    Was mich nur etwas irritiert, das da auch andere Werte stehen:
    PHP Fatal error: Out of memory (allocated 8388608)
    PHP Fatal error: Out of memory (allocated 12582912)

    Also stehen manchmal 4MB, 8MB oder 12MB Arbeitsspeicher zur Verfügung.
    Und "Out of Memory" hat auch nichts mit dem PHP-Memory-Limit (Parameter memory_limit) zu tun. Das kommt vom übergeordneten Prozess, also z.B. der Speicherverwaltung des Betriebssystems.

    Interessant wäre noch zu wissen, welches Webhosting-Paket genau verwendet wird und wie alt es ist.

    Gruß
    Ingo

    Wenn ich helfen konnte, bitte [ Gefällt mir ] klicken. :-)

  • Was mich nur etwas irritiert, das da auch andere Werte stehen:
    PHP Fatal error: Out of memory (allocated 8388608)
    PHP Fatal error: Out of memory (allocated 12582912)

    Also stehen manchmal 4MB, 8MB oder 12MB Arbeitsspeicher zur Verfügung.
    Und "Out of Memory" hat auch nichts mit dem PHP-Memory-Limit (Parameter memory_limit) zu tun. Das kommt vom übergeordneten Prozess, also z.B. der Speicherverwaltung des Betriebssystems.

    Interessant wäre noch zu wissen, welches Webhosting-Paket genau verwendet wird und wie alt es ist.

    Gruß
    Ingo

    Vielen Dank für die Antworten schonmal! Lieber Ingo, es ist das aktuelle WordPress Hosting Basic-Paket (bei PHP 7.4 soll das memory_limit bei 256 MB liegen).

  • Ich selbst habe bei Strato nur ein "normales" Hostingpaket (Hosting Plus). Ich weiß nicht, was bei den Wordpress-Paketen anders konfiguriert ist, aber bei mir stehen die 256MB tatsächlich zur Verfügung.

    Testen kann man das mit einem einfachen PHP-Skript. Datei herunterladen, entpacken, per FTP auf der Server hochladen und aufrufen.
    Das Skript fordert in einer Endlosschleife Speicher an (erzeugt ein neues Bild per GD) und läuft halt nur so lange, bis das Speicherlimit erreicht ist.

    Im Logfile findet man dann so etwas:

    Code
    PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 4096 bytes)

    Gruß
    Ingo

    Wenn ich helfen konnte, bitte [ Gefällt mir ] klicken. :-)

  • Bei einem VPS mit 2 GB RAM und Vestacp und einer einfachen PHP App, ohne Wordpress, sind wir so knapp unter 2 GB Ram geblieben.
    256 MB ist arg wenig. Und PHP Memory level ist ja auch nicht das gleiche wie die RAM die man zugeteilt bekommt.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!