Tipo contenuto pagina bianca

12 contenuti / 0 new
Ultimo contenuto
Tipo contenuto pagina bianca

Ciao a tutti,
ho un problema nella gestione dei tipi contenuto, ovvero all'improvviso non so perchèse creo in locale un tipo di contenuto mi da pagina bianca, e il tipo di contenuto non viene salvato.
Qualcuno saprebbe dirmi perchè e come posso risolvere?

Grazie!

grazie ealmuno, pensavo ad una soluzione più rapida, mi viene la nausea a leggere quel post, ma grazie lo stesso!

Dice di mettere 3 righe per capire qual è l'errore php che genera la pagina bianca.

ti ringrazio, in pratica per capire ov'è lerrore devo scrivere nell'index.php questo codice:

Quote:
<?php

error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);

// $Id: index.php,v 1.94 2007/12/26...

DOmanda, non ti meravigliare, deve si trova l'index.php in drupal?

cercarlo è così complicato, nella root del tuo sito.
N.B. l'apertura del tag php c'è già

grazie, l'ho trovato, il file index.php si trova nella directory principale:

Quote:
<?php

/**
* @file
* The PHP page that serves all page requests on a Drupal installation.
*
* The routines here dispatch control to the appropriate handler, which then
* prints the appropriate page.
*
* All Drupal code is released under the GNU General Public License.
* See COPYRIGHT.txt and LICENSE.txt.
*/

/**
* Root directory of Drupal installation.
*/
define('DRUPAL_ROOT', getcwd());

require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
menu_execute_active_handler();

se aggiungo ora il codice per restituire l'errore diventa così:

Quote:
<?php

/**
* @file
* The PHP page that serves all page requests on a Drupal installation.
*
* The routines here dispatch control to the appropriate handler, which then
* prints the appropriate page.
*
* All Drupal code is released under the GNU General Public License.
* See COPYRIGHT.txt and LICENSE.txt.
*/

/**
* Root directory of Drupal installation.
*/
define('DRUPAL_ROOT', getcwd());

require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
menu_execute_active_handler();

error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);

// $Id: index.php,v 1.94 2007/12/26...

non sono sicuro di aver fatto giusto ma l'errore non lo segnala e continua a dare pagina bianca oppure non salva il tipo di contenuto!

qualcuno mi dice se è corretto?

<?php
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
/**
* @file
* The PHP page that serves all page requests on a Drupal installation.
*
* The routines here dispatch control to the appropriate handler, which then
* prints the appropriate page.
*
* All Drupal code is released under the GNU General Public License.
* See COPYRIGHT.txt and LICENSE.txt.
*/
/**
* Root directory of Drupal installation.
*/
define('DRUPAL_ROOT', getcwd());
require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
menu_execute_active_handler();

grazie davvero ealmuno, ora ottengo questo errore:

Quote:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 581931 bytes) in /Users/nome/Sites/nomesito/includes/database/database.inc on line 2137

Come posso risolvere ora?

Nel php.ini metti php_value memory_limit = 512M;
Se non hai accesso contatta il tuo hosting o usa il settings o htaccess, cerca l'errore su google trovi moltissime soluzioni.

Ha detto che è in locale e poi arriviamo già a 512Mb ?
Prova con 128.

grazie a ealmuno e a giovanninews, ho risolto mettendo 512mb funziona! :)