• Ciao,
    sto riscontrando problemi rilevati dal server in merito all’utilizzo di memoria.
    Ho letto dal file log del server un Fatal error che riporto:

    PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 16384 bytes) in /home/e127gk2y/miosito.it/wp-includes/media.php on line 2829

    Questo errore capita spesso. Lo script in questione è questo:

    /**
    * Create new GD image resource with transparency support
    *
    * @todo: Deprecate if possible.
    *
    * @since 2.9.0
    *
    * @param int $width Image width in pixels.
    * @param int $height Image height in pixels..
    * @return resource The GD image resource.
    */
    function wp_imagecreatetruecolor($width, $height) {
    $img = imagecreatetruecolor($width, $height);
    if ( is_resource($img) && function_exists(‘imagealphablending’) && function_exists(‘imagesavealpha’) ) {
    imagealphablending($img, false);
    imagesavealpha($img, true);
    }
    return $img;
    }

    e la linea 2829 che crea problemi è questa:
    $img = imagecreatetruecolor($width, $height);

    Non sono esperto, ma avete qualcosa da consigliarmi per risolvere questo errore?
    Grazie mille!

    • Questo topic è stato modificato 7 anni, 9 mesi fa da 11roro22.
  • Il topic ‘Fatal error da file media.php. Sapete aiutarmi?’ è chiuso a nuove risposte.