IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

PHP & Base de données Discussion :

erreur à la suite d'une installation drupal avec base postgresql [PostgreSQL]


Sujet :

PHP & Base de données

  1. #1
    Membre du Club
    Profil pro
    Inscrit en
    Octobre 2010
    Messages
    71
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2010
    Messages : 71
    Points : 57
    Points
    57
    Par défaut erreur à la suite d'une installation drupal avec base postgresql
    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.
    error_reporting(E_ALL);
    ini_set('display_errors', TRUE);
    ini_set('display_startup_errors', TRUE);
    ce qui me renvoie l'erreur suivante

    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
    Ci après les 35 premières lignes du fichier cache.inc. La ligne 33 étant $cache->data = unserialize($cache->data);

    <?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);
    }
    }
    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

    Configuration File (php.ini) Path C:\Windows
    Loaded Configuration File C:\ms4w\Apache\cgi-bin\php.ini

    et apache est configurer de la sorte

    <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>
    Egalement la mémoire limite php est fixé à 128mb


    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.

  2. #2
    Membre du Club
    Profil pro
    Inscrit en
    Octobre 2010
    Messages
    71
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2010
    Messages : 71
    Points : 57
    Points
    57
    Par défaut
    J'ai installé la version 8.3 de postgresql ce qui a corrigé mon problème. LA version de l'extension pgpsql (libpq) présente sur le serveur est en fait celle de la version 8.3.

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Créer une installation ".exe" avec java
    Par tuffd dans le forum EDI et Outils pour Java
    Réponses: 4
    Dernier message: 29/06/2009, 11h48
  2. Réponses: 10
    Dernier message: 10/02/2009, 09h25
  3. Lancer une autre installation à la suite d'une installation VB
    Par Mut dans le forum Installation, Déploiement et Sécurité
    Réponses: 1
    Dernier message: 30/01/2007, 14h29
  4. erreur 1335 lors d'une installation
    Par ganga dans le forum Autres Logiciels
    Réponses: 4
    Dernier message: 21/07/2005, 16h34
  5. Message d'erreur à l'exécution d'une install
    Par titof dans le forum Autres Logiciels
    Réponses: 2
    Dernier message: 22/03/2005, 11h20

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo