Bonjour,
Avant tout chose désolé si je me trompe de forum mais j'ai le sentiment que mon problème provient de la configuration php de mon serveur.
Je m'explique, j'ai installé drupal (6.19) sur un serveur Apache 2.2 et php 5.2.6 déjà en place. J'ai également une base de donnée postgresql qui est fraichement installé (et mal configuré?).
J'ai activé le module pgsql est bien activé.
J'installe drupal (copie des fichiers dans le htdocs), je le configure pour qu'il se connecte à ma base de données postgresql, tout marche à merveille, il crée automatiquement les tables dont j'ai besoin dans ma base de données.
Le problème intervient lorsque je retourne sur mon site (//http://127.0.0.1/drupal5/), j'ai une page blanche.
J'ai donc établi sur mon index.php, comme j'ai pu le lire ici.
ce qui me renvoie l'erreur suivanteerror_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
Ci après les 35 premières lignes du fichier cache.inc. La ligne 33 étant $cache->data = unserialize($cache->data);Notice: unserialize() [function.unserialize]: Error at offset 0 of 1749 bytes in C:\ms4w\Apache\htdocs\drupal5\includes\cache.inc on line 33
Warning: Cannot modify header information - headers already sent by (output started at C:\ms4w\Apache\htdocs\drupal5\includes\cache.inc:33) in C:\ms4w\Apache\htdocs\drupal5\includes\bootstrap.inc on line 726
Warning: Cannot modify header information - headers already sent by (output started at C:\ms4w\Apache\htdocs\drupal5\includes\cache.inc:33) in C:\ms4w\Apache\htdocs\drupal5\includes\bootstrap.inc on line 727
Warning: Cannot modify header information - headers already sent by (output started at C:\ms4w\Apache\htdocs\drupal5\includes\cache.inc:33) in C:\ms4w\Apache\htdocs\drupal5\includes\bootstrap.inc on line 728
Warning: Cannot modify header information - headers already sent by (output started at C:\ms4w\Apache\htdocs\drupal5\includes\cache.inc:33) in C:\ms4w\Apache\htdocs\drupal5\includes\bootstrap.inc on line 729
Pour information, je ne maîtrise pas vraiment les configurations serveur et php. Ainsi je pense que mon php est en cgi_bin. Le phpinfo() m'indique<?php
// $Id: cache.inc,v 1.17.2.5 2010/11/03 19:07:46 goba Exp $
/**
* Return data from the persistent cache. Data may be stored as either plain text or as serialized data.
* cache_get will automatically return unserialized objects and arrays.
*
* @param $cid
* The cache ID of the data to retrieve.
* @param $table
* The table $table to store the data in. Valid core values are 'cache_filter',
* 'cache_menu', 'cache_page', or 'cache' for the default cache.
*/
function cache_get($cid, $table = 'cache') {
global $user;
// Garbage collection necessary when enforcing a minimum cache lifetime
$cache_flush = variable_get('cache_flush_'. $table, 0);
if ($cache_flush && ($cache_flush + variable_get('cache_lifetime', 0) <= time())) {
// Reset the variable immediately to prevent a meltdown in heavy load situations.
variable_set('cache_flush_'. $table, 0);
// Time to flush old cache data
db_query("DELETE FROM {". $table ."} WHERE expire != %d AND expire <= %d", CACHE_PERMANENT, $cache_flush);
}
$cache = db_fetch_object(db_query("SELECT data, created, headers, expire, serialized FROM {". $table ."} WHERE cid = '%s'", $cid));
if (isset($cache->data)) {
// If the data is permanent or we're not enforcing a minimum cache lifetime
// always return the cached data.
if ($cache->expire == CACHE_PERMANENT || !variable_get('cache_lifetime', 0)) {
$cache->data = db_decode_blob($cache->data);
if ($cache->serialized) {
$cache->data = unserialize($cache->data);
}
}
Configuration File (php.ini) Path C:\Windows
Loaded Configuration File C:\ms4w\Apache\cgi-bin\php.ini
et apache est configurer de la sorte
Egalement la mémoire limite php est fixé à 128mb<IfModule mime_module>
#
# TypesConfig points to the file containing the list of mappings from
# filename extension to MIME-type.
#
TypesConfig conf/mime.types
#
# AddType allows you to add to or override the MIME configuration
# file specified in TypesConfig for specific file types.
#
#AddType application/x-gzip .tgz
#
# AddEncoding allows you to have certain browsers uncompress
# information on the fly. Note: Not all browsers support this.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz
#
# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi
# For type maps (negotiated resources):
#AddHandler type-map var
#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
#AddType text/html .shtml
#AddOutputFilter INCLUDES .shtml
##
## PHP 5 CGI config
##
AddType application/x-httpd-php .php5 .php4 .php3 .phtml .php
Action application/x-httpd-php /cgi-bin/php-cgi.exe
</IfModule>
Je vous remercie par avance pour l'aide que vous pourrez m'apporter. Une dernière précision je suis sur windows (hélas, contrainte professionnel). Les utilisateurs drupal n'ont pas réussi à m'aider. Mon problème intervient bien pour la configuration d'un seul site à la fin de l'installation de drupal.
Partager