Visualizzazione dei risultati da 1 a 8 su 8

Discussione: Errore nel log di php

  1. #1
    Utente di HTML.it
    Registrato dal
    Jul 2006
    Messaggi
    3,072

    Errore nel log di php

    Ciao a tutti, dopo aver trasferito un'applicazione da locale al server, nel log mi trovo questi errori: (windows + apache + php + mysql installati da zero)

    Grazie per l'aiuto

    [03-Jul-2007 15:55:05] PHP Notice: Only variable references should be returned by reference in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\log4php\LoggerAppender .php on line 73

    [03-Jul-2007 15:55:05] PHP Notice: Only variable references should be returned by reference in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\log4php\LoggerProperty Configurator.php on line 565

    [03-Jul-2007 15:55:05] PHP Notice: Only variable references should be returned by reference in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\log4php\LoggerAppender .php on line 73

    [03-Jul-2007 15:55:05] PHP Notice: Only variable references should be returned by reference in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\log4php\LoggerProperty Configurator.php on line 565

    [03-Jul-2007 15:55:05] PHP Notice: Only variable references should be returned by reference in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\log4php\LoggerAppender .php on line 73

    [03-Jul-2007 15:55:05] PHP Notice: Only variable references should be returned by reference in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\log4php\LoggerProperty Configurator.php on line 565

    [03-Jul-2007 15:55:05] PHP Notice: Only variable references should be returned by reference in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\log4php\LoggerAppender .php on line 73

    [03-Jul-2007 15:55:05] PHP Notice: Only variable references should be returned by reference in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\log4php\LoggerProperty Configurator.php on line 565

    [03-Jul-2007 15:55:05] PHP Notice: Only variable references should be returned by reference in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\log4php\LoggerAppender .php on line 73

    [03-Jul-2007 15:55:05] PHP Notice: Only variable references should be returned by reference in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\log4php\LoggerProperty Configurator.php on line 565

    [03-Jul-2007 15:55:05] PHP Fatal error: Call to undefined function mysql_pconnect() in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\adodb\drivers\adodb-mysql.inc.php on line 373

  2. #2
    meglio se posti anche la riga 73. Dal php.ini

    codice:
    ; Whether to enable the ability to force arguments to be passed by reference
    ; at function call time.  This method is deprecated and is likely to be
    ; unsupported in future versions of PHP/Zend.  The encouraged method of
    ; specifying which arguments should be passed by reference is in the function
    ; declaration.  You're encouraged to try and turn this option Off and make
    ; sure your scripts work properly with it in order to ensure they will work
    ; with future versions of the language (you will receive a warning each time
    ; you use this feature, and the argument will be passed by value instead of by
    ; reference).
    allow_call_time_pass_reference = Off
    per l'ultima riga potrebbe non caricare l'estensione mysql oppure non essere abilitata la connessione permanente. Verifica nel phpinfo() sezione mysql

    Il silenzio è spesso la cosa migliore. Pensa ... è gratis.

  3. #3
    Utente di HTML.it
    Registrato dal
    Jul 2006
    Messaggi
    3,072
    Perdonami ma non ho capito

    la riga 73 non dovrebbe essere del php.ini... cosa devo modificare??

    per l'ultima riga potrebbe non caricare l'estensione mysql oppure non essere abilitata la connessione permanente. Verifica nel phpinfo() sezione mysql
    cosa devo verificare esattamente? e in quale file??


    Graaaaaaaazie mille

  4. #4
    LoggerAppender.php on line 73 <--- questa e' la riga dello script che genera il NOTICE

    deve esserci una funzione. Posta qualche riga


    l'ultima riga di quello che hai postato del file di log....
    Fatal error: Call to undefined function mysql_pconnect()

    esegui php.info() e leggi cosa ti stampa nella sezione mysql.

    Il silenzio è spesso la cosa migliore. Pensa ... è gratis.

  5. #5
    Utente di HTML.it
    Registrato dal
    Jul 2006
    Messaggi
    3,072
    Il primo errore che ottengo è questo

    [03-Jul-2007 16:28:28] PHP Parse error: syntax error, unexpected T_STRING in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\config.inc.php on line 87

    dove la riga 87 è


    // cache direcory path
    $cache_dir = 'cache/';


    la cosa strana è che in locale funziona!

  6. #6
    potrebbe anche essere alcune righe prima. Ma devi essere piu' coordinata. se provi una cosa prova fin che va. saltare da palo in frasca non aiuta.

    Il silenzio è spesso la cosa migliore. Pensa ... è gratis.

  7. #7
    Utente di HTML.it
    Registrato dal
    Jul 2006
    Messaggi
    3,072
    Il problema è che T_STRING non lo trovo nel file

  8. #8
    Utente di HTML.it
    Registrato dal
    Jul 2006
    Messaggi
    3,072
    Pian piano sto risolvendo i prolbemini...

    mi sono bloccata su questo


    LoggerAppender.php on line 73

    function &singleton($name, $class = '')
    {
    static $instances;

    if (!empty($name)) {
    if (!isset($instances[$name])) {
    if (!empty($class)) {
    $appender = LoggerAppender::factory($name, $class);
    if ($appender !== null) {
    $instances[$name] = $appender;
    return $instances[$name];
    }
    }
    ****(73)**** return null;
    }
    return $instances[$name];
    }
    return null;
    }


    Sottolineo che in locale cmq funziona perfettamente

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.