Visualizzazione risultati 1 fino 11 di 11

Discussione: [phpbb] Errore in index (era "Un bel erroraccio")

  1. #1
    Guest

    Predefinito Un bel erroraccio

    http://www.zonadangolo.altervista.org/FORUM/index.php

    Vi prego aiutatemi!!!!!!!!
    è successo di punto in bianco... grazie in anticipo

  2. #2
    Guest

    Predefinito

    dovresti postare il codice
    cosi' non posso farci nulla >_<'

  3. #3
    Guest

    Predefinito

    Quale codice?!

  4. #4
    Guest

    Predefinito

    quello della tua index...
    Oppure la index e' direttamente la home del phpbb forum!?!?! o_O'

    Oppure hai provato a controllare prima di tutto se hai ankora i database attivo di secondo livello?!?! magari non avevi + AC x pagarlo e il forum e' saltato >.<'
    Ultima modifica di xrudyx : 15-04-2007 alle ore 11.09.38

  5. #5
    Guest

    Predefinito

    si, la index è la home del forum (phpbbxs)
    ecco il codice: (l'ho guardato anke io ma è utile fino ad 1 certo punto)
    Codice PHP:
    <?php
    /***************************************************************************
    * portal.php
    * -------------------
    * begin : Sunday, March 21, 2004
    * copyright : (C) 2004 masterdavid - Ronald John David
    * website : [url]http://www.integramod.com[/url]
    * email : [email]webmaster@integramod.com[/email]
    *
    * note: removing the original copyright is illegal even you have modified
    * the code. Just append yours if you have modified it.
    ***************************************************************************/

    /***************************************************************************
    *
    * This program is free software; you can redistribute it and/or modify
    * it under the terms of the GNU General Public License as published by
    * the Free Software Foundation; either version 2 of the License, or
    * (at your option) any later version.
    *
    ***************************************************************************/

    // Set up for phpBB integration.
    define('IN_PHPBB', true);
    $phpbb_root_path = './';

    // phpBB related files
    include_once($phpbb_root_path . 'extension.inc');
    include_once(
    $phpbb_root_path . 'common.' . $phpEx);
    include_once(
    $phpbb_root_path . 'includes/functions_color_groups.' . $phpEx);

    // Start session management
    $userdata = session_pagestart($user_ip, PAGE_PORTAL);
    init_userprefs($userdata);
    // End session management

    $auth_level_req = $config_mg['auth_view_portal'];
    if (
    $auth_level_req > AUTH_ALL)
    {
    if ( (
    $auth_level_req == AUTH_REG) && (!$userdata['session_logged_in']) )
    {
    message_die(GENERAL_MESSAGE, $lang['Not_Auth_View']);
    }
    if (
    $userdata['user_level'] != ADMIN)
    {
    if (
    $auth_level_req == AUTH_ADMIN )
    {
    message_die(GENERAL_MESSAGE, $lang['Not_Auth_View']);
    }
    if ( (
    $auth_level_req == AUTH_MOD) && ($userdata['user_level'] != MOD) )
    {
    message_die(GENERAL_MESSAGE, $lang['Not_Auth_View']);
    }
    }
    }
    $importal_wide = ($config_mg['wide_blocks_portal'] == 1) ? true : false;

    define('PORTAL_INIT', true);
    include(
    $phpbb_root_path . 'includes/functions_portal.' . $phpEx);
    portal_config_init($portal_config);
    include_once(
    $phpbb_root_path . 'includes/lite.' . $phpEx);
    $options = array(
    'cacheDir' => $phpbb_root_path . 'cache/',
    'fileLocking' => $portal_config['md_cache_file_locking'],
    'writeControl' => $portal_config['md_cache_write_control'],
    'readControl' => $portal_config['md_cache_read_control'],
    'readControlType' => $portal_config['md_cache_read_type'],
    'fileNameProtection' => $portal_config['md_cache_filename_protect'],
    'automaticSerialization' => $portal_config['md_cache_serialize']
    );
    $var_cache = new Cache_Lite($options);

    if(isset(
    $_GET['page']))
    {
    $layout = intval($_GET['page']);
    }
    else
    {
    $layout = $portal_config['default_portal'];
    }

    if(
    $portal_config['cache_enabled'])
    {
    $layout_row = $var_cache->get('lr' . strval($layout), 86400, 'layout');
    }
    if(!
    $layout_row)
    {
    $sql = "SELECT template, forum_wide, view, groups FROM " . LAYOUT_TABLE . " WHERE lid = '" . $layout . "'";
    if( !(
    $layout_result = $db->sql_query($sql,false,true)) )
    {
    message_die(CRITICAL_ERROR, "Could not query portal layout information", "", __LINE__, __FILE__, $sql);
    }
    $layout_row = $db->sql_fetchrow($layout_result);
    if((
    $layout_row['template']!='') && $portal_config['cache_enabled'])
    {
    $var_cache->save($layout_row, 'lr' . strval($layout), 'layout');
    }
    }
    $layout_template = $layout_row['template'];
    $layout_forum_wide_flag = ($layout_row['forum_wide']) ? false : true;

    if (
    $userdata['user_id'] == ANONYMOUS)
    {
    $lview = in_array($layout_row['view'], array(0,1));
    }
    else
    {
    switch(
    $userdata['user_level'])
    {
    case
    USER:
    $lview = in_array($layout_row['view'], array(0,2));
    break;
    case
    MOD:
    $lview = in_array($layout_row['view'], array(0,2,3));
    break;
    case
    ADMIN:
    $lview = in_array($layout_row['view'], array(0,1,2,3,4));
    break;
    default:
    $lview = in_array($layout_row['view'], array(0));
    }
    }

    $not_group_allowed = false;
    if(!empty(
    $layout_row['groups']))
    {
    $not_group_allowed = true;
    $group_content = explode(",",$layout_row['groups']);
    for (
    $i = 0; $i < count($group_content); $i++)
    {
    if(
    in_array(intval($group_content[$i]), portal_groups($userdata['user_id'])))
    {
    $not_group_allowed = false;
    }
    }
    }

    if( (
    $layout_template=='') || (!$lview) || ($not_group_allowed) )
    {
    $layout = $portal_config['default_portal'];
    if(
    $portal_config['cache_enabled'])
    {
    $layout_row = $var_cache->get('lr' . strval($layout), 86400, 'layout');
    }
    if(!
    $layout_row)
    {
    $sql = "SELECT template, forum_wide FROM " . LAYOUT_TABLE . " WHERE lid = '" . $layout . "'";
    if( !(
    $layout_result = $db->sql_query($sql,false,true)) )
    {
    message_die(CRITICAL_ERROR, "Could not query portal layout information", "", __LINE__, __FILE__, $sql);
    }
    $layout_row = $db->sql_fetchrow($layout_result);
    if(
    $portal_config['cache_enabled'])
    {
    $var_cache->save($layout_row, 'lr' . strval($layout), 'layout');
    }
    }
    $layout_template = $layout_row['template'];
    $layout_forum_wide_flag = ($layout_row['forum_wide']) ? false : true;
    }

    // Start output of page
    $page_title = $board_config['sitename'];
    define('SHOW_ONLINE', true);
    include(
    $phpbb_root_path . 'includes/page_header.'.$phpEx);

    // Tell the template class which template to use.
    $template->set_filenames( array( 'body' => 'layout/' . $layout_template ) );

    // Start Blocks
    portal_parse_blocks($layout);

    $template->pparse('body');

    include(
    $phpbb_root_path . 'includes/page_tail.'.$phpEx);
    ?>
    EDIT: Il database è attivo comunque
    Ultima modifica di debug : 15-04-2007 alle ore 11.34.20

  6. #6
    Guest

    Predefinito

    mhh sinceramente ad okkio non vedo errori...

    prova a controllare se il database di livello 2 e' ankora attivo (magari x mancanza di AC e' avvenuto il declassamento)

    Inoltre xo' vedo 2 pagine ke danno errore, ke non vengono rikiamate da questa pagina... e' un bel macello... provo a darci un okkio meglio ma nn ti assicuro nulla (se riesci a editare il code e metterlo tra tag mi fai un favore ke diventa + leggibile ;) )

  7. #7
    Guest

    Predefinito

    Ti ringrazio, un'altra cosa strana ke ho notato è ke "lui" cerca il file "mysql.php" in /membri/zonadangolo/FORUM/db/mysql.php
    in verità è in /FORUM/db/mysql.php , senza membri/zonadangolo davanti... nn so se centra... grazie ancora comunque

  8. #8
    Guest

    Predefinito

    1) stanza sbagliata
    2) titolo non chiaro
    3) non hai indicato di che CMS si tratta
    4) ricorda di usare i tag appositi quando scrivi del codice, soprattutto quando è abbastanza lungo
    5) non fare post consecutivi, usa il tasto edita


    Ciao!

  9. #9
    Guest

    Predefinito

    La stanza pensavo fosse giusta, dato ke è 1 problema con 1 forum, ad editare il codice nn ci avevo pensato, x il titolo mi sono ispirato a quello degli altri post, mi scuso x i post consecutivo e ammetto di nn sapere cosa sia un CMS

  10. #10
    L'avatar di funcool
    funcool non è connesso Utente storico
    Data registrazione
    05-02-2004
    Residenza
    Qui... Non lì, qui!
    Messaggi
    15,433

    Predefinito

    Citazione Originalmente inviato da NikandNodo
    Ti ringrazio, un'altra cosa strana ke ho notato è ke "lui" cerca il file "mysql.php" in /membri/zonadangolo/FORUM/db/mysql.php
    in verità è in /FORUM/db/mysql.php , senza membri/zonadangolo davanti... nn so se centra... grazie ancora comunque
    "/membri/zonadangolo/" è la radice del tuo sito su AlterVista.
    Prova a cambiare i permessi al file "sql_12ac6f2faf379e45ac7d046e230675818.php" che si trova nella cartella "cache" del forum.
    Mattia vi manda a FunCool - Matriz - Directory Gogol - Sfondo rosso per la Birmania
    «Tu mi dai fastidio perché ti credi tanto un Dio!» «Bè, dovrò pur prendere un modello a cui ispirarmi, no?» Woody Allen

  11. #11
    Guest

    Predefinito

    tutto sistemato... era 1 problema del server sul quale il sito è ospitato... grazie a tutti comunque!
    Ultima modifica di NikandNodo : 16-04-2007 alle ore 15.27.50 Motivo: tutto a posto

Regole di scrittura

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