Visualizzazione risultati 1 fino 18 di 18

Discussione: accesso al sito incompleto - alcuni frames non visualizzati

  1. #1
    wdb
    wdb non è connesso Utente AlterBlog
    Data registrazione
    24-08-2019
    Messaggi
    11

    Predefinito accesso al sito incompleto - alcuni frames non visualizzati

    Buongiorno.
    Da una settimana, accedendo al mio AlterSito "wdb" viene visualizzata una pagina incompleta.
    I frames scritti in html vengono correttamente visualizzati.
    I frames invece scritti in PHP e con accesso al database MySQL invece no.
    Ho provato ad eliminare (facendone il backup sul mio PC) il file .htaccess ma la situazione non e' cambiata e quindi l'ho ricaricato sul sito.
    Altre modifiche non ne ho fatte da diverse settimane.
    Dal pannello di controllo, attraverso la funzione "Accedi a PhpMyAdmin", riesco e gestire correttamente il database.
    E' forse cambiata di recente su Altervista la versione di PHP oppure di MySQL?

    Ringrazio e saluto
    Walter

  2. #2
    GraphOGLRisorse non è connesso AlterGuru 2500
    Data registrazione
    14-02-2015
    Messaggi
    3,994

    Predefinito

    Salve,
    l'utima modifica di php la rimozione della versione 5.3 da AlterVista avvenuta il 26 maggio 2020. Attualmente, la versione minima è la 5.6. Riguardo il database MySQL, ho letto che è in previsione l'aggiornamento, ma non credo sia ancora avvenuto.

    Può mostrare il codice php che in cui riscontra il problema?

    Cordiali saluti.

  3. #3
    wdb
    wdb non è connesso Utente AlterBlog
    Data registrazione
    24-08-2019
    Messaggi
    11

    Predefinito

    pagina iniziale (Index.php3):
    Codice PHP:
    <?
    session_start
    ();
    $Wdb_GEN_Suff_Ambiente = ((isset($_SESSION['Wdb_GEN_Suff_Ambiente'])) ? $_SESSION['Wdb_GEN_Suff_Ambiente'] : "");
    $Wdb_GEN_DB = ((isset($_SESSION['Wdb_GEN_DB'])) ? $_SESSION['Wdb_GEN_DB'] : "");
    $Wdb_SITO_Privilegio = "1";
    $_SESSION['Wdb_SITO_Privilegio'] = $Wdb_SITO_Privilegio;
    ?>
    <html>
    <head>
    <title>Wdb Sito</title>
    <link REL="SHORTCUT ICON" HREF="Icons/Wdb_SITO.ico">
    <meta http-equiv=Content-Type content="text/html; charset=windows-1252">
    <meta content="Wdb SITO" name=Author>
    <meta http-equiv=pragma content=no-cache>
    <meta content=index,follow name=robots>
    <meta content="WDB - Liguria Genova Webcam Meteo Televisioni" name=description>
    <meta content="MSHTML 5.50.4611.1300" name=GENERATOR>
    </head>

    <frameset border = "0"
    frameSpacing = "0"
    rows = "50, *, 50"
    frameBorder = "no"
    >
    <frameset cols = "80%,*"
    border = "0"
    frameSpacing = "0"
    frameBorder = "no"
    >
    <frame name = "Wdb_SITO_Top"
    src = "Frames/Wdb_SITO_Top.php3"
    frameBorder = "no"
    scrolling = "no"
    marginWidth = "2"
    frameSpacing = "0"
    marginHeight = "2"
    >
    <frame name = "Wdb_SITO_Data"
    src = "Frames/Wdb_SITO_Data_Oggi.php3"
    marginwidth = "2"
    marginheight = "10"
    frameSpacing = "0"
    scrolling = "no"
    >
    </frameset>
    <frameset border = "0"
    frameSpacing = "0"
    frameBorder = "no"
    cols = "120, *"
    >
    <frameset border = "0"
    frameSpacing = "0"
    rows = "76%, *"
    frameBorder = "no"
    >
    <frame name = "Wdb_SITO_Left"
    src = "Frames/Wdb_SITO_Left.php3"
    marginWidth = "2"
    frameSpacing = "0"
    marginHeight = "2"
    frameBorder = "no"
    scrolling = "yes"
    >
    <frame name = "Wdb_SITO_Left_Calendario"
    src = "../WEB_Shared/Frames/Wdb_Calendario.php3"
    marginWidth = "0"
    frameSpacing = "0"
    marginHeight = "0"
    frameBorder = "no"
    scrolling = "no"
    >
    </frameset>
    <frame name = "Wdb_SITO_Right"
    src = "Frames/Wdb_SITO_Webcams.php3"
    marginWidth = "0"
    frameSpacing = "0"
    marginHeight = "0"
    frameBorder = "no"
    scrolling = "yes"
    >
    </frameset>
    <frame name = "Wdb_SITO_Bot"
    src = "Frames/Wdb_SITO_Bot.php3"
    marginWidth = "0"
    frameSpacing = "0"
    marginHeight = "0"
    frameBorder = "no"
    scrolling = "no"
    >
    </frameset>
    </html>

  4. #4
    wdb
    wdb non è connesso Utente AlterBlog
    Data registrazione
    24-08-2019
    Messaggi
    11

    Predefinito

    uno dei frames che non si visualizzano, il piu' semplice (Wdb_SITO_Data_Oggi.php3):
    Codice PHP:
    <?
    session_start
    ();
    include (
    "../Config/Wdb_SITO_Configurazioni.html");
    ?>
    <html>
    <?
    include ("../Config/Wdb_SITO_Config.php3");
    $dataoggi = ($Wdb_SITO_Tab_GgWeek[date("w")] . ', ' . date("j") . ' ' . $Wdb_SITO_Tab_Mesi[(((int)date("n"))-1)] . ' ' . date("Y"));
    echo
    "
    <table width=100% cellspacing=0 cellpadding=0 border=0>
    <tr>
    <td align=right><font size=1 face=Verdana color=\"#000080\"><p>
    $dataoggi</p></font></td>
    </tr>
    </table>
    "
    ;
    ?>
    </html>

  5. #5
    wdb
    wdb non è connesso Utente AlterBlog
    Data registrazione
    24-08-2019
    Messaggi
    11

    Predefinito

    l'include (Wdb_SITO_Config.php3) PARTE PRIMA:
    Codice PHP:
    <?
    /*************************************************************/
    $Wdb_SITO_Primo_Giro = ((isset($_SESSION['Wdb_SITO_Primo_Giro'])) ? $_SESSION['Wdb_SITO_Primo_Giro'] : "0");
    $Wdb_GEN_Suff_Ambiente = ((isset($_SESSION['Wdb_GEN_Suff_Ambiente'])) ? $_SESSION['Wdb_GEN_Suff_Ambiente'] : "");
    $Wdb_GEN_DB = ((isset($_SESSION['Wdb_GEN_DB'])) ? $_SESSION['Wdb_GEN_DB'] : "");
    /*************************************************************/
    // memorizzo nome frame corrente
    /*************************************************************/
    $Wdb_Server_Name_Locale = "localhost";
    $Wdb_SITO_Server_Name = $_SERVER['SERVER_NAME'];
    $Wdb_SITO_Nome_Frame_Attuale = $_SERVER['PHP_SELF'];
    If (
    $Wdb_SITO_Server_Name == $Wdb_Server_Name_Locale) {
    $Wdb_SITO_Nome_DataBase = $Wdb_GEN_DB;
    } Else {
    $Wdb_SITO_Nome_DataBase = "my_wdb"; // se ambiente non localhost, setto il nome del DataBase a quello di Altervista
    Wdb_declare_ex_sql(); // dichiarative MySQL versione 5 in ambiente superiore per evitare funzioni a MySQL non dichiarate
    }
    $Se_Batch_Frame = strpos($Wdb_SITO_Nome_Frame_Attuale, "Frames_Batch");
    /*************************************************************/
    // calcolo data corrente
    /*************************************************************/
    $data = date("d/m/Y H:i");
    $dataDMY = date("d-m-Y H:i:s");
    $dataYMD = date("Y-m-d H:i:s");
    /*************************************************************/
    // dati per la connessione al DB
    /*************************************************************/
    $Wdb_SITO_Db_Server = $Wdb_SITO_Server_Name; // ex "localhost";
    $Wdb_SITO_Db_User = "wdb";
    If (
    $Wdb_SITO_Server_Name == $Wdb_Server_Name_Locale) {
    /*************************************************************/
    // Lettura file Psw
    /*************************************************************/

    // omesso

    } Else {
    $Wdb_SITO_Db_Passw = "";
    }
    $Wdb_SITO_Db_DataBase = $Wdb_SITO_Nome_DataBase;
    /*************************************************************/
    // connessione e selezione db
    /*************************************************************/
    $Wdb_SITO_Connessione = @mysql_connect ($Wdb_SITO_Db_Server, $Wdb_SITO_Db_User, $Wdb_SITO_Db_Passw) or die (errore_server_istr ("mysql_connect"));
    $Wdb_SITO_Db = mysql_select_db ($Wdb_SITO_Db_DataBase, $Wdb_SITO_Connessione) or die (errore_server_istr ("mysql_select_db"));

    /*************************************************************/
    // Costanti
    /*************************************************************/
    $Wdb_SITO_Tab_GgWeek = array ("Domenica",
    "Lunedi'",
    "Martedi'",
    "Mercoledi'",
    "Giovedi'",
    "Venerdi'",
    "Sabato");
    $Wdb_SITO_Tab_Mesi = array ("Gennaio",
    "Febbraio",
    "Marzo",
    "Aprile",
    "Maggio",
    "Giugno",
    "Luglio",
    "Agosto",
    "Settembre",
    "Ottobre",
    "Novembre",
    "Dicembre");
    $Wdb_Pag_Prec = "Pagina Precedente";
    $Wdb_Msg_Can = "Cancellazione effettuata";
    $Wdb_Msg_Ins = "Inserimento effettuato";
    $Wdb_Msg_Mod = "Modifica effettuata";
    $Wdb_Msg_Ine = "Inesistente";
    /*************************************************************/
    // VARIABILI DI SESSIONE
    /*************************************************************/
    $Wdb_SITO_Ambiente = ((isset($_SESSION['Wdb_SITO_Ambiente'])) ? $_SESSION['Wdb_SITO_Ambiente'] : "");
    $Wdb_SITO_Conto = ((isset($_SESSION['Wdb_SITO_Conto'])) ? $_SESSION['Wdb_SITO_Conto'] : "");
    $Wdb_SITO_Descrizione = ((isset($_SESSION['Wdb_SITO_Descrizione'])) ? $_SESSION['Wdb_SITO_Descrizione'] : "");
    $Wdb_SITO_Decimali = ((isset($_SESSION['Wdb_SITO_Decimali'])) ? $_SESSION['Wdb_SITO_Decimali'] : "");
    $Wdb_SITO_Ucase_First = ((isset($_SESSION['Wdb_SITO_Ucase_First'])) ? $_SESSION['Wdb_SITO_Ucase_First'] : "");
    $Wdb_SITO_Key = ((isset($_SESSION['Wdb_SITO_Key'])) ? $_SESSION['Wdb_SITO_Key'] : "");
    $Wdb_SITO_Login = ((isset($_SESSION['Wdb_SITO_Login'])) ? $_SESSION['Wdb_SITO_Login'] : "");
    $Wdb_SITO_Nome = ((isset($_SESSION['Wdb_SITO_Nome'])) ? $_SESSION['Wdb_SITO_Nome'] : "");
    $Wdb_SITO_Privilegio = ((isset($_SESSION['Wdb_SITO_Privilegio'])) ? $_SESSION['Wdb_SITO_Privilegio'] : "");
    $Wdb_SITO_Registrato = ((isset($_SESSION['Wdb_SITO_Registrato'])) ? $_SESSION['Wdb_SITO_Registrato'] : "");
    $Wdb_SITO_Sesso = ((isset($_SESSION['Wdb_SITO_Sesso'])) ? $_SESSION['Wdb_SITO_Sesso'] : "");
    $Wdb_SITO_Ris_Larghezza = ((isset($_SESSION['Wdb_SITO_Ris_Larghezza'])) ? $_SESSION['Wdb_SITO_Ris_Larghezza'] : "");
    $Wdb_SITO_Ris_Altezza = ((isset($_SESSION['Wdb_SITO_Ris_Altezza'])) ? $_SESSION['Wdb_SITO_Ris_Altezza'] : "");
    If (
    $Wdb_SITO_Primo_Giro == "0") {
    $Wdb_SITO_Primo_Giro = "1";
    $_SESSION['Wdb_SITO_Primo_Giro'] = $Wdb_SITO_Primo_Giro;
    $_SESSION['Wdb_SITO_Anno_Copyright'] = $anno_copyright;
    $_SESSION['Wdb_Info_MySql'] = $Wdb_Info_MySql;
    $_SESSION['Wdb_Info_Php'] = $Wdb_Info_Php;
    $_SESSION['Wdb_Info_Apache'] = $Wdb_Info_Apache;
    $_SESSION['Wdb_Info_PhpAdmin'] = $Wdb_Info_PhpAdmin;

    }

    /*************************************************************/
    // funzione per errore server mysql
    /*************************************************************/
    function errore_server()
    {
    $Wdb_Mail = ((isset($_SESSION['Wdb_Mail'])) ? $_SESSION['Wdb_Mail'] : "");
    echo
    "<b>Il database MySql sembra non rispondere...</b><br>MySql errore:<br><font color=red>";
    echo
    mysql_error();
    echo
    "</font><br>pregasi <a href=\"mailto:" . $Wdb_Mail . "\">segnalare</a> il problema";
    $query = mysql_query ("ROLLBACK;") or die (errore_server ());
    }
    /*************************************************************/
    // funzione per errore server mysql con $sql
    /*************************************************************/
    function errore_server_istr($istr)
    {
    $Wdb_Mail = ((isset($_SESSION['Wdb_Mail'])) ? $_SESSION['Wdb_Mail'] : "");
    echo
    "<font face=\"Verdana, fantasy\"";
    echo
    "<a><IMG height=59 width=125 border=0 src=../../WEB_Shared/Images/MySql.gif></a>";
    echo
    "<b>DataBase in errore</b>";
    echo
    "<br><br>Programma: <font color=red>" . $_SERVER['PHP_SELF'] . "</font></b>";
    echo
    "<br><br>Descrizione errore MySql: <font color=red>";
    echo
    mysql_error();
    echo
    "</font>";
    echo
    "<br><br>La probabile istruzione di errore e' la seguente:";
    echo
    "<br><br><font color=red>" . $istr;
    echo
    "</font>";
    echo
    "<br><br>Si prega <a href=\"mailto:" . $Wdb_Mail . "\">segnalare";
    echo
    "<IMG height=51 width=53 border=0 src=../../WEB_Shared/Anigifs/Wdb_Email_3.gif></a>";
    echo
    "questo problema.";
    echo
    "</font>";
    $query = mysql_query ("ROLLBACK;") or die (errore_server ());
    }
    Ultima modifica di wdb : 01-10-2020 alle ore 16.22.25

  6. #6
    wdb
    wdb non è connesso Utente AlterBlog
    Data registrazione
    24-08-2019
    Messaggi
    11

    Predefinito

    l'include (Wdb_SITO_Config.php3) PARTE SECONDA:
    Codice PHP:
    /*************************************************************/
    // Funzione dichiarative MySQL v. 5 in ambienti superiori
    /*************************************************************/
    function Wdb_declare_ex_sql()
    {
    if (!
    function_exists("mysql_connect")){
    /* warning: fatal error "cannot redeclare" if a function was disabled in php.ini with disable_functions:
    disable_functions =mysql_connect,mysql_pconnect,mysql_select_db,mysql_ping,mysql_query,mysql_fetch_assoc,mysql_num_rows,mysql_fetch_array,mysql_error,mysql_insert_id,mysql_close,mysql_real_escape_string,mysql_data_seek,mysql_result
    */

    define("MYSQL_ASSOC", MYSQLI_ASSOC);
    define("MYSQL_NUM", MYSQLI_NUM);
    define("MYSQL_BOTH", MYSQLI_BOTH);

    function
    mysql_fetch_array($result, $result_type = MYSQL_BOTH){
    $row = mysqli_fetch_array($result, $result_type);
    return
    is_null($row) ? false : $row;
    }

    function
    mysql_fetch_assoc($result){
    $row = mysqli_fetch_assoc($result);
    return
    is_null($row) ? false : $row;
    }

    function
    mysql_fetch_row($result) {
    $row = mysqli_fetch_row($result);
    return
    is_null($row) ? false : $row;
    }

    function
    mysql_fetch_object($result) {
    $row = mysqli_fetch_object($result);
    return
    is_null($row) ? false : $row;
    }

    function
    mysql_connect($host, $username, $password, $new_link = FALSE, $client_flags = 0){
    global
    $global_link_identifier;
    $global_link_identifier = mysqli_connect($host, $username, $password);
    return
    $global_link_identifier;
    }

    function
    mysql_pconnect($host, $username, $password, $client_flags = 0){
    global
    $global_link_identifier;
    $global_link_identifier = mysqli_connect("p:".$host, $username, $password);
    return
    $global_link_identifier;
    }

    function
    mysql_select_db($dbname, $link_identifier = null){
    global
    $global_link_identifier;
    if(
    $link_identifier == null) {
    $link_identifier = $global_link_identifier;
    }
    return
    mysqli_select_db($link_identifier, $dbname);
    }

    function
    mysql_ping($link_identifier = null){
    global
    $global_link_identifier;
    if(
    $link_identifier == null) {
    $link_identifier = $global_link_identifier;
    }
    return
    mysqli_ping($link_identifier);
    }

    function
    mysql_query($stmt, $link_identifier = null){
    global
    $global_link_identifier;
    if(
    $link_identifier == null) {
    $link_identifier = $global_link_identifier;
    }
    return
    mysqli_query($link_identifier, $stmt);
    }

    function
    mysql_num_rows($result){
    return
    mysqli_num_rows($result);
    }

    function
    mysql_affected_rows($link_identifier = NULL){
    // TODO: check, if working when called without argument: mysql_affected_rows()
    global $global_link_identifier;
    if(
    $link_identifier == null) {
    $link_identifier = $global_link_identifier;
    }
    return
    mysqli_affected_rows($link_identifier);
    }

    function
    mysql_list_tables($dbname, $link_identifier = null){
    global
    $global_link_identifier;
    if(
    $link_identifier == null) {
    $link_identifier = $global_link_identifier;
    }
    $sql = "SHOW TABLES FROM $dbname";
    $result = mysql_query($sql, $link_identifier);
    return
    $result;
    }

    function
    mysql_error($link_identifier = null){
    global
    $global_link_identifier;
    if(
    $link_identifier == null) {
    $link_identifier = $global_link_identifier;
    }
    return
    mysqli_error($link_identifier);
    }

    function
    mysql_errno($link_identifier = null){
    global
    $global_link_identifier;
    if(
    $link_identifier == null) {
    $link_identifier = $global_link_identifier;
    }
    return
    mysqli_errno($link_identifier);
    }

    function
    mysql_insert_id($link_identifier = NULL){
    global
    $global_link_identifier;
    if(
    $link_identifier == null) {
    $link_identifier = $global_link_identifier;
    }
    return
    mysqli_insert_id($link_identifier);
    }

    function
    mysql_close($link_identifier = NULL){
    return
    true;
    }

    function
    mysql_real_escape_string($unescaped_string, $link_identifier = null){
    global
    $global_link_identifier;
    if(
    $link_identifier == null) {
    $link_identifier = $global_link_identifier;
    }
    return
    mysqli_real_escape_string($link_identifier, $unescaped_string);
    }

    function
    mysql_data_seek($result, $row_number){
    return
    mysqli_data_seek($result, $row_number);
    }

    function
    mysql_result($result, $row=0, $col=0){
    $numrows = mysqli_num_rows($result);
    if(
    $numrows && $row <= ($numrows-1) && $row >= 0){
    mysqli_data_seek($result, $row);
    $resultrow = (is_numeric($col)) ? mysqli_fetch_row($result) : mysqli_fetch_assoc($result);
    if (isset(
    $resultrow[$col])){
    return
    $resultrow[$col];
    }
    }
    return
    false;
    }

    function
    mysql_escape_string($s, $link_identifier = null){
    global
    $global_link_identifier;
    if(
    $link_identifier == null) {
    $link_identifier = $global_link_identifier;
    }
    return
    mysqli_real_escape_string($link_identifier, $s);
    }

    function
    mysql_field_name($result, $i) {
    return
    mysqli_fetch_field_direct($result, $i);
    }

    function
    mysql_free_result($result) {
    return
    mysqli_free_result($result);
    }

    function
    mysql_get_server_info($link_identifier = null){
    global
    $global_link_identifier;
    if(
    $link_identifier == null) {
    $link_identifier = $global_link_identifier;
    }
    return
    mysqli_get_server_info($link_identifier);
    }

    function
    mysql_set_charset($csname, $link_identifier = null){
    global
    $global_link_identifier;
    if(
    $link_identifier == null) {
    $link_identifier = $global_link_identifier;
    }
    return
    mysqli_set_charset($link_identifier, $csname);
    }
    }
    if(!
    function_exists('apache_get_version')){
    function
    apache_get_version(){
    if(!isset(
    $_SERVER['SERVER_SOFTWARE']) || strlen($_SERVER['SERVER_SOFTWARE']) == 0){
    return
    false;
    }
    return
    $_SERVER["SERVER_SOFTWARE"];
    }
    }
    }
    ?>
    Ultima modifica di wdb : 01-10-2020 alle ore 16.18.50

  7. #7
    wdb
    wdb non è connesso Utente AlterBlog
    Data registrazione
    24-08-2019
    Messaggi
    11

    Predefinito

    l'include (Wdb_SITO_Configurazioni.html):
    Codice HTML:
    <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080">

  8. #8
    darbula non è connesso AlterGuru 2500
    Data registrazione
    24-04-2011
    Messaggi
    2,894

    Predefinito

    Inserire error_reporting(-1); nella prima riga del tuo codice questo ti mostra l'avviso che il file non può essere recuperato perché non è in una posizione consentita.
    echo dirname(__FILE__); //ritorna il percorso assoluto senza il nome del file eseguito.
    Quindi se il tuo progetto sta in un percorso relativo /cartella/file.php include dirname(__FILE__).'/cartella/file.php'; se lo script eseguito si trova nella root.
    I due punti significano cartella padre (precedente) mentre il singolo punto significa cartella di lavoro (corrente).
    Da molti anni non si usa inserire l'estensione per php ma semplicemente .php
    Inoltre usa direttamente l'estensione mysqli poiché da php 5.5 è deprecata e rimossa da php 7.0
    Ultima modifica di darbula : 01-10-2020 alle ore 17.05.17

  9. #9
    GraphOGLRisorse non è connesso AlterGuru 2500
    Data registrazione
    14-02-2015
    Messaggi
    3,994

    Predefinito

    L'utente wdb, nella seconda parte del codice del file Wdb_SITO_Config, presente nel messaggio # 6, vedo che fa uso di un funzione che effetua la conversione di mysql in mysqli. Quindi a prima vista, nel suo caso, mi sebra inutile fare una conversione del codice.

    Cordiali saluti.

  10. #10
    wdb
    wdb non è connesso Utente AlterBlog
    Data registrazione
    24-08-2019
    Messaggi
    11

    Predefinito

    Citazione Originalmente inviato da GraphOGLRisorse Visualizza messaggio
    Salve,
    l'utima modifica di php la rimozione della versione 5.3 da AlterVista avvenuta il 26 maggio 2020. Attualmente, la versione minima è la 5.6. Riguardo il database MySQL, ho letto che è in previsione l'aggiornamento, ma non credo sia ancora avvenuto.

    Può mostrare il codice php che in cui riscontra il problema?

    Cordiali saluti.
    L'attuale versione di PHP che gira sul mio sito in AlterVista e' la 7.1.33 e non la 5.6.
    Questo spiega perche' non mi funziona piu' nulla.
    Ed e' molto strano dato che sulle "Impostazioni Php" e' dichiarata la scelta di PHP 5.6 (che e' la versione di default) ed io non ho mai modificato questa impostazione

    Citazione Originalmente inviato da darbula Visualizza messaggio
    Inserire error_reporting(-1); nella prima riga del tuo codice questo ti mostra l'avviso che il file non può essere recuperato perché non è in una posizione consentita.
    echo dirname(__FILE__); //ritorna il percorso assoluto senza il nome del file eseguito.
    Quindi se il tuo progetto sta in un percorso relativo /cartella/file.php include dirname(__FILE__).'/cartella/file.php'; se lo script eseguito si trova nella root.
    I due punti significano cartella padre (precedente) mentre il singolo punto significa cartella di lavoro (corrente).
    Da molti anni non si usa inserire l'estensione per php ma semplicemente .php
    Inoltre usa direttamente l'estensione mysqli poiché da php 5.5 è deprecata e rimossa da php 7.0
    Ho seguito il suggerimento di inserire "error_reporting(-1);" ed ho sanato alcune incongruenze che non avevo visto prima.
    Ho anche riadattato tutto il codice in formato .php e corretto di conseguenza parecchi nuovi errori ed incompatibilita'.


    Citazione Originalmente inviato da GraphOGLRisorse Visualizza messaggio
    L'utente wdb, nella seconda parte del codice del file Wdb_SITO_Config, presente nel messaggio # 6, vedo che fa uso di un funzione che effetua la conversione di mysql in mysqli. Quindi a prima vista, nel suo caso, mi sebra inutile fare una conversione del codice.

    Cordiali saluti.
    Infatti per il momento mi serve la doppia possibilita' di eseguire le applicazioni anche su altri ambienti un po' "datati".

    ===

    Comunque sono riuscito a far funzionare di nuovo il mio sito anche se presenta ancora qualche imperfezione che eliminero' appena possibile.

    Certo che sarebbe stato meglio se avessi saputo preventivamente del cambio versione.

    Ringrazio dell'attenzione
    Walter

  11. #11
    GraphOGLRisorse non è connesso AlterGuru 2500
    Data registrazione
    14-02-2015
    Messaggi
    3,994

    Predefinito

    Con un AlterBlog, la gestione di php viene gestita in automatico da AlterVista, quindi non può essere scelta. Ma poicè ha un AlterSito, è strano che risulti diversamente.

    Quale versione di php le risulta nell'htacess?

    Cordiali saluti.
    Ultima modifica di GraphOGLRisorse : 05-10-2020 alle ore 17.54.56

  12. #12
    wdb
    wdb non è connesso Utente AlterBlog
    Data registrazione
    24-08-2019
    Messaggi
    11

    Predefinito

    Citazione Originalmente inviato da GraphOGLRisorse Visualizza messaggio
    Se ha un AlterBlog, la gestione di php viene gestita in automatico da AlterVista, quindi non può essere scelta come in un AlterSito.

    Cordiali saluti.
    Ho AlterSito, come indicato nel mio primo post

  13. #13
    wdb
    wdb non è connesso Utente AlterBlog
    Data registrazione
    24-08-2019
    Messaggi
    11

    Predefinito

    Citazione Originalmente inviato da GraphOGLRisorse Visualizza messaggio
    Quale versione di php le risulta nell'htacess?
    Codice PHP:
    AddHandler av-php7 .php
    Saluti
    Walter

  14. #14
    GraphOGLRisorse non è connesso AlterGuru 2500
    Data registrazione
    14-02-2015
    Messaggi
    3,994

    Predefinito

    Provi a modificarlo come php 5.6:
    Codice:
    AddHandler av-php5 .php
    Cordiali saluti.
    Ultima modifica di GraphOGLRisorse : 05-10-2020 alle ore 20.51.41

  15. #15
    wdb
    wdb non è connesso Utente AlterBlog
    Data registrazione
    24-08-2019
    Messaggi
    11

    Predefinito

    Anche se e' scritto in modo molto evidente:
    Codice PHP:
    # BEGIN AV_HTTPS
    ###### ###### ###### ###### ## DO NOT EDIT!
    ###### ###### ###### ###### ##
    ## ## ## ## ## ## ## This is an automatically generated file,
    ## ## ## ## ## ## ## any manual change will be lost.
    ###### ## ## ## ###### ##
    ###### ## ## ## ###### ## NON MODIFICARE!
    ## ## ## ## ## ##
    ## ## ## ## ## Questo è un file generato automaticamente,
    ###### ## ###### ## ## qualsiasi modifica manuale verrÃ* persa.
    ###### ## ###### ## ##
    ???

    e poi, dopo tutte le modifiche al codice che ho fatto per farlo funzionare, non e' che saltano fuori tanti altri errori di compatibilita'???

  16. #16
    GraphOGLRisorse non è connesso AlterGuru 2500
    Data registrazione
    14-02-2015
    Messaggi
    3,994

    Predefinito

    In AltrerSito, nell'htacess dovrebbe esserci impostata la stessa versione di php che risulta da pannello di controllo. Quindi reipostare manualmente la versione di php nell'.htacess di base non dovrebbe dare problemi, se i codici usati sono supportati dalla versione impostata.

    Io non sò le modifiche che ha apporatato ai suoi codici. Quindi, se allo stato attuale delle cose, ha dei dubbi che riportando php alla versione 5.6 possano esserci dei nuovi erroi d'incompatibilità, visto che parte dei problemi li ha risolti, può pure lasciare la varsione di php invariata.

    Cordiali saluti.
    Ultima modifica di GraphOGLRisorse : 05-10-2020 alle ore 21.40.16

  17. #17
    wdb
    wdb non è connesso Utente AlterBlog
    Data registrazione
    24-08-2019
    Messaggi
    11

    Predefinito

    Anzitutto la ringrazio per le spiegazioni.
    Penso che lascero' stare tutto cosi', il sito adesso funziona.

    Rimane a me incomprensibile che possa essere scappato un aggiornamento di .htaccess senza avviso e da parte di chi?

    Oltre alla nuova versione di PHP ho scoperto che e' stata inserita la REDIRECT da http a https che non permette la visualizzazione di alcuni siti richiamati dal mio.
    Ho commentato queste istruzioni e adesso e' davvero tutto a posto
    Un cordiale saluto
    Walter

  18. #18
    GraphOGLRisorse non è connesso AlterGuru 2500
    Data registrazione
    14-02-2015
    Messaggi
    3,994

    Predefinito

    Il redirect può anche toglierlo se vuole, però per avere la versione in htpps che non venga indicata come non sicura, deovrebbe poi aggiungere la s in http per le url presenti nelle varie pagine che fanno rifetrimento a file caricati.

    Tali modifiche penso che siano state apportate da AlterVista, forse per questioni sicurezza, in riferimento ad attività anomale da parte di alcuni visitatori.

    Strano che non abbia riccevuto alcun avviso. Potrebbe essere che le hanno inviato un email e che sia andata persa tra gli spam.

    Cordiali saluti.

Regole di scrittura

  • Non puoi creare nuove discussioni
  • Non puoi rispondere ai messaggi
  • Non puoi inserire allegati.
  • Non puoi modificare i tuoi messaggi
  •