Soporte Problema con página Znoteaac

GOD Vader

Miembro
LV
16
 
Awards
14
Hola que tal, traigo el siguiente problema, error o quizás mala configuración, ya no se me ocurre que puede ser.

Al trata de ingresar en la página de Highscores no aparece absolutamente nada, de esta manera:

highscores.PNG

nunca realicé cambios a esta página, y esto también me pasa con la página de news:

news.PNG

y cuando reviso sus php tienen información para que aparezca información y no sale nada.

¿Qué podrá ser?

ayuda 😵
 

acxel12

Miembro
LV
13
 
Awards
14
Hola que tal, traigo el siguiente problema, error o quizás mala configuración, ya no se me ocurre que puede ser.

Al trata de ingresar en la página de Highscores no aparece absolutamente nada, de esta manera:

Ver archivo adjunto 3933

nunca realicé cambios a esta página, y esto también me pasa con la página de news:

Ver archivo adjunto 3934

y cuando reviso sus php tienen información para que aparezca información y no sale nada.

¿Qué podrá ser?

ayuda 😵
Usas UniservZ?
En la segunda imagen, te aparece así porqué tu tienes que agregar alguna noticia a tu pagina web, por ejemplo, cambios o implementaciones, para agregarlos, vete myaccount (con tu cuenta de god) ahí en la pagina, pícale a Admin News y ahí puedes agregar tu articulo con imágenes y todo.
pag.png
 

GOD Vader

Miembro
LV
16
 
Awards
14
Usas UniservZ?
En la segunda imagen, te aparece así porqué tu tienes que agregar alguna noticia a tu pagina web, por ejemplo, cambios o implementaciones, para agregarlos, vete myaccount (con tu cuenta de god) ahí en la pagina, pícale a Admin News y ahí puedes agregar tu articulo con imágenes y todo.
Ver archivo adjunto 3936
No me sale nada de eso, me aparece de la siguiente manera:

admin.PNG

además que también tengo el problema con la página de highscores :(
 

acxel12

Miembro
LV
13
 
Awards
14
En caso de que uses UniserverZ , ve a la carpeta www, luego abre el archivo highscore.php con notepad, borra lo que hay dentro y pega lo que dejaré aquí, (no cierres el notepad en caso de que tengas que revertir el cambio en caso de que algo salga mal).
Código:
<?php require_once 'engine/init.php'; include 'layout/overall/header_auction.php';

if ($config['log_ip']) {
    znote_visitor_insert_detailed_data(3);
}

// Fetch highscore type
$type = (isset($_GET['type'])) ? (int)getValue($_GET['type']) : 7;
if ($type > 9) $type = 7;

// Fetch highscore vocation
$configVocations = $config['vocations'];
//$debug['configVocations'] = $configVocations;

$vocationIds = array_keys($configVocations);

$vocation = 'all';
if (isset($_GET['vocation']) && is_numeric($_GET['vocation'])) {
    $vocation = (int)$_GET['vocation'];
    if (!in_array($vocation, $vocationIds)) {
        $vocation = "all";
    }
}

// Fetch highscore page
$page = getValue(@$_GET['page']);
if (!$page || $page == 0) $page = 1;
else $page = (int)$page;

$highscore = $config['highscore'];
$loadFlags = ($config['country_flags']['enabled'] && $config['country_flags']['highscores']) ? true : false;
$loadOutfits = ($config['show_outfits']['highscores']) ? true : false;

$rows = $highscore['rows'];
$rowsPerPage = $highscore['rowsPerPage'];

function skillName($type) {
    $types = array(
        1 => "Club",
        2 => "Sword",
        3 => "Axe",
        4 => "Distance",
        5 => "Shield",
        6 => "Fish",
        7 => "Experience", // Hardcoded
        8 => "Magic Level", // Hardcoded
        9 => "Fist", // Since 0 returns false I will make 9 = 0. :)
    );
    return $types[(int)$type];
}

function pageCheck($index, $page, $rowPerPage) {
    return ($index < ($page * $rowPerPage) && $index >= ($page * $rowPerPage) - $rowPerPage) ? true : false;
}

$cache = new Cache('engine/cache/highscores');
if ($cache->hasExpired()) {
    $vocGroups = fetchAllScores($rows, $config['ServerEngine'], $highscore['ignoreGroupId'], $configVocations, $vocation, $loadFlags, $loadOutfits);
    $cache->setContent($vocGroups);
    $cache->save();
} else {
    $vocGroups = $cache->load();
}

if ($vocGroups) {
    $vocGroup = (is_array($vocGroups[$vocation])) ? $vocGroups[$vocation] : $vocGroups[$vocGroups[$vocation]];
    ?>
<div id="news" class="Box">
                                    <div class="Corner-tl" style="background-image:url(layout/images/global/content/corner-tl.gif);"></div>
                                    <div class="Corner-tr" style="background-image:url(layout/images/global/content/corner-tr.gif);"></div>
                                    <div class="Border_1" style="background-image:url(layout/images/global/content/border-1.gif);"></div>
                                    <div class="BorderTitleText" style="background-image:url(layout/images/global/content/title-background-green.gif);"></div>
                                    <img id="ContentBoxHeadline" class="Title" src="layout/images/global/images/highscores.png" alt="Contentbox headline" />
                                    <div class="Border_2">
                                        <div class="Border_3">
                                            <div class="BoxContent" style="background-image:url(layout/images/global/content/scroll.gif);">
    <h1>Ranking for <?php echo skillName($type) .", ". (($vocation === 'all') ? 'any vocation' : vocation_id_to_name($vocation)) ?>.</h1>

    <form action="" method="GET">

        <select name="type">
            <option value="7" <?php if ($type == 7) echo "selected"; ?>>Experience</option>
            <option value="8" <?php if ($type == 8) echo "selected"; ?>>Magic</option>
            <option value="5" <?php if ($type == 5) echo "selected"; ?>>Shield</option>
            <option value="2" <?php if ($type == 2) echo "selected"; ?>>Sword</option>
            <option value="1" <?php if ($type == 1) echo "selected"; ?>>Club</option>
            <option value="3" <?php if ($type == 3) echo "selected"; ?>>Axe</option>
            <option value="4" <?php if ($type == 4) echo "selected"; ?>>Distance</option>
            <option value="6" <?php if ($type == 6) echo "selected"; ?>>Fish</option>
            <option value="9" <?php if ($type == 9) echo "selected"; ?>>Fist</option>
        </select>

        <select name="vocation">
            <option value="all" <?php if (!is_int($vocation)) echo "selected"; ?>>Any vocation</option>
            <?php
            foreach ($configVocations as $v_id => $v_data) {
                if ($v_data['fromVoc'] === false) {
                    $selected = (is_int($vocation) && $vocation == $v_id) ? " selected $vocation = $v_id" : "";
                    echo '<option value="'. $v_id .'"'. $selected .'>'. $v_data['name'] .'</option>';
                }
            }
            ?>
        </select>

        <select name="page">
            <?php
            $pages = ($vocGroup[$type] !== false) ? ceil(min(($highscore['rows'] / $highscore['rowsPerPage']), (count($vocGroup[$type]) / $highscore['rowsPerPage']))) : 1;
            for ($i = 0; $i < $pages; $i++) {
                $x = $i + 1;
                if ($x == $page) echo "<option value='".$x."' selected>Page: ".$x."</option>";
                else echo "<option value='".$x."'>Page: ".$x."</option>";
            }
            ?>
        </select>

        <input type="submit" value=" View " class="btn btn-info">
    </form>
<div class="InnerTableContainer"> 
         <div class="TableContentContainer">
<table class="TableContent" id="highscoresTable" width="100%" style="border:1px solid #faf0d7;">

        <tr class="yellow">
    <?php if ($loadOutfits) echo "<td>Outfit</td>"; ?>
    <td>Rank</td>
    <td>Name</td>
    <td>Vocation</td>
    <td>Level</td>
    <?php if ($type === 7) echo "<td>Points</td>"; ?>
</tr>

<?php
if ($vocGroup[$type] === false) {
    ?>
    <tr>
        <td colspan="5">Nothing to show here yet.</td>
    </tr>
    <?php
} else {
    for ($i = 0; $i < count($vocGroup[$type]); $i++) {
        if (pageCheck($i, $page, $rowsPerPage)) {
            $flag = ($loadFlags === true && strlen($vocGroup[$type][$i]['flag']) > 1) ? '<img src="' . $config['country_flags']['server'] . '/' . $vocGroup[$type][$i]['flag'] . '.png">  ' : '';
            ?>
            <tr>
                <?php if ($loadOutfits): ?>
                    <?php
                    $looktype = $vocGroup[$type][$i]['type'];

                    if (in_array($looktype, array(1685, 1688, 1686, 1687))) {
                        $imageUrl = 'outfit/' . $looktype . '.gif'; // Assuming the image extension is .gif
                    } else {
                        $imageUrl = $config['show_outfits']['imageServer'] . '?id=' . $looktype . '&addons=' . $vocGroup[$type][$i]['addons'] . '&head=' . $vocGroup[$type][$i]['head'] . '&body=' . $vocGroup[$type][$i]['body'] . '&legs=' . $vocGroup[$type][$i]['legs'] . '&feet=' . $vocGroup[$type][$i]['feet'];
                    }
                    ?>
                    <td class="outfitColumn"><img src="<?php echo $imageUrl; ?>" alt="img"></td>
                <?php endif; ?>
                <td><?php echo $i + 1; ?></td>
                <td><?php echo $flag; ?><a href="characterprofile.php?name=<?php echo $vocGroup[$type][$i]['name']; ?>"><?php echo $vocGroup[$type][$i]['name']; ?></a></td>
                <td><?php echo vocation_id_to_name($vocGroup[$type][$i]['vocation']); ?></td>
                <td><?php echo $vocGroup[$type][$i]['value']; ?></td>
                <?php if ($type === 7) echo "<td>" . $vocGroup[$type][$i]['experience'] . "</td>"; ?>
            </tr>
            <?php
        }
    }
}
?>

    </table></div></div>
    <?php
}
include 'layout/overall/footer.php'; ?>
 

GOD Vader

Miembro
LV
16
 
Awards
14
En caso de que uses UniserverZ , ve a la carpeta www, luego abre el archivo highscore.php con notepad, borra lo que hay dentro y pega lo que dejaré aquí, (no cierres el notepad en caso de que tengas que revertir el cambio en caso de que algo salga mal).
Código:
<?php require_once 'engine/init.php'; include 'layout/overall/header_auction.php';

if ($config['log_ip']) {
    znote_visitor_insert_detailed_data(3);
}

// Fetch highscore type
$type = (isset($_GET['type'])) ? (int)getValue($_GET['type']) : 7;
if ($type > 9) $type = 7;

// Fetch highscore vocation
$configVocations = $config['vocations'];
//$debug['configVocations'] = $configVocations;

$vocationIds = array_keys($configVocations);

$vocation = 'all';
if (isset($_GET['vocation']) && is_numeric($_GET['vocation'])) {
    $vocation = (int)$_GET['vocation'];
    if (!in_array($vocation, $vocationIds)) {
        $vocation = "all";
    }
}

// Fetch highscore page
$page = getValue(@$_GET['page']);
if (!$page || $page == 0) $page = 1;
else $page = (int)$page;

$highscore = $config['highscore'];
$loadFlags = ($config['country_flags']['enabled'] && $config['country_flags']['highscores']) ? true : false;
$loadOutfits = ($config['show_outfits']['highscores']) ? true : false;

$rows = $highscore['rows'];
$rowsPerPage = $highscore['rowsPerPage'];

function skillName($type) {
    $types = array(
        1 => "Club",
        2 => "Sword",
        3 => "Axe",
        4 => "Distance",
        5 => "Shield",
        6 => "Fish",
        7 => "Experience", // Hardcoded
        8 => "Magic Level", // Hardcoded
        9 => "Fist", // Since 0 returns false I will make 9 = 0. :)
    );
    return $types[(int)$type];
}

function pageCheck($index, $page, $rowPerPage) {
    return ($index < ($page * $rowPerPage) && $index >= ($page * $rowPerPage) - $rowPerPage) ? true : false;
}

$cache = new Cache('engine/cache/highscores');
if ($cache->hasExpired()) {
    $vocGroups = fetchAllScores($rows, $config['ServerEngine'], $highscore['ignoreGroupId'], $configVocations, $vocation, $loadFlags, $loadOutfits);
    $cache->setContent($vocGroups);
    $cache->save();
} else {
    $vocGroups = $cache->load();
}

if ($vocGroups) {
    $vocGroup = (is_array($vocGroups[$vocation])) ? $vocGroups[$vocation] : $vocGroups[$vocGroups[$vocation]];
    ?>
<div id="news" class="Box">
                                    <div class="Corner-tl" style="background-image:url(layout/images/global/content/corner-tl.gif);"></div>
                                    <div class="Corner-tr" style="background-image:url(layout/images/global/content/corner-tr.gif);"></div>
                                    <div class="Border_1" style="background-image:url(layout/images/global/content/border-1.gif);"></div>
                                    <div class="BorderTitleText" style="background-image:url(layout/images/global/content/title-background-green.gif);"></div>
                                    <img id="ContentBoxHeadline" class="Title" src="layout/images/global/images/highscores.png" alt="Contentbox headline" />
                                    <div class="Border_2">
                                        <div class="Border_3">
                                            <div class="BoxContent" style="background-image:url(layout/images/global/content/scroll.gif);">
    <h1>Ranking for <?php echo skillName($type) .", ". (($vocation === 'all') ? 'any vocation' : vocation_id_to_name($vocation)) ?>.</h1>

    <form action="" method="GET">

        <select name="type">
            <option value="7" <?php if ($type == 7) echo "selected"; ?>>Experience</option>
            <option value="8" <?php if ($type == 8) echo "selected"; ?>>Magic</option>
            <option value="5" <?php if ($type == 5) echo "selected"; ?>>Shield</option>
            <option value="2" <?php if ($type == 2) echo "selected"; ?>>Sword</option>
            <option value="1" <?php if ($type == 1) echo "selected"; ?>>Club</option>
            <option value="3" <?php if ($type == 3) echo "selected"; ?>>Axe</option>
            <option value="4" <?php if ($type == 4) echo "selected"; ?>>Distance</option>
            <option value="6" <?php if ($type == 6) echo "selected"; ?>>Fish</option>
            <option value="9" <?php if ($type == 9) echo "selected"; ?>>Fist</option>
        </select>

        <select name="vocation">
            <option value="all" <?php if (!is_int($vocation)) echo "selected"; ?>>Any vocation</option>
            <?php
            foreach ($configVocations as $v_id => $v_data) {
                if ($v_data['fromVoc'] === false) {
                    $selected = (is_int($vocation) && $vocation == $v_id) ? " selected $vocation = $v_id" : "";
                    echo '<option value="'. $v_id .'"'. $selected .'>'. $v_data['name'] .'</option>';
                }
            }
            ?>
        </select>

        <select name="page">
            <?php
            $pages = ($vocGroup[$type] !== false) ? ceil(min(($highscore['rows'] / $highscore['rowsPerPage']), (count($vocGroup[$type]) / $highscore['rowsPerPage']))) : 1;
            for ($i = 0; $i < $pages; $i++) {
                $x = $i + 1;
                if ($x == $page) echo "<option value='".$x."' selected>Page: ".$x."</option>";
                else echo "<option value='".$x."'>Page: ".$x."</option>";
            }
            ?>
        </select>

        <input type="submit" value=" View " class="btn btn-info">
    </form>
<div class="InnerTableContainer">
         <div class="TableContentContainer">
<table class="TableContent" id="highscoresTable" width="100%" style="border:1px solid #faf0d7;">

        <tr class="yellow">
    <?php if ($loadOutfits) echo "<td>Outfit</td>"; ?>
    <td>Rank</td>
    <td>Name</td>
    <td>Vocation</td>
    <td>Level</td>
    <?php if ($type === 7) echo "<td>Points</td>"; ?>
</tr>

<?php
if ($vocGroup[$type] === false) {
    ?>
    <tr>
        <td colspan="5">Nothing to show here yet.</td>
    </tr>
    <?php
} else {
    for ($i = 0; $i < count($vocGroup[$type]); $i++) {
        if (pageCheck($i, $page, $rowsPerPage)) {
            $flag = ($loadFlags === true && strlen($vocGroup[$type][$i]['flag']) > 1) ? '<img src="' . $config['country_flags']['server'] . '/' . $vocGroup[$type][$i]['flag'] . '.png">  ' : '';
            ?>
            <tr>
                <?php if ($loadOutfits): ?>
                    <?php
                    $looktype = $vocGroup[$type][$i]['type'];

                    if (in_array($looktype, array(1685, 1688, 1686, 1687))) {
                        $imageUrl = 'outfit/' . $looktype . '.gif'; // Assuming the image extension is .gif
                    } else {
                        $imageUrl = $config['show_outfits']['imageServer'] . '?id=' . $looktype . '&addons=' . $vocGroup[$type][$i]['addons'] . '&head=' . $vocGroup[$type][$i]['head'] . '&body=' . $vocGroup[$type][$i]['body'] . '&legs=' . $vocGroup[$type][$i]['legs'] . '&feet=' . $vocGroup[$type][$i]['feet'];
                    }
                    ?>
                    <td class="outfitColumn"><img src="<?php echo $imageUrl; ?>" alt="img"></td>
                <?php endif; ?>
                <td><?php echo $i + 1; ?></td>
                <td><?php echo $flag; ?><a href="characterprofile.php?name=<?php echo $vocGroup[$type][$i]['name']; ?>"><?php echo $vocGroup[$type][$i]['name']; ?></a></td>
                <td><?php echo vocation_id_to_name($vocGroup[$type][$i]['vocation']); ?></td>
                <td><?php echo $vocGroup[$type][$i]['value']; ?></td>
                <?php if ($type === 7) echo "<td>" . $vocGroup[$type][$i]['experience'] . "</td>"; ?>
            </tr>
            <?php
        }
    }
}
?>

    </table></div></div>
    <?php
}
include 'layout/overall/footer.php'; ?>
Si, uso UniserverZ .
usé tú código y ya no funcionaba la página de higscores, así que revertí los ajustes
 

Alex

Miembro del equipo
Webdesigner
LV
58
 
Awards
38
Extrañamente hasta la página de Accountmanagement dejó de funcionar

Ver archivo adjunto 3938


antes podía visualizar mis chars y realizar cambios, ya estoy entrando en desesperación 😞

Hola,

mmm cuando suele pasar esto, pasate a Xampp si usas uniserver, haber si esto te soluciona el problema.
Por mi parte utilizo el Xampp que esta en el foro y no tengo ningun problema.
 

Alex

Miembro del equipo
Webdesigner
LV
58
 
Awards
38
No me funciona el Xampp, por más que configuro el puerto me sale error de puerto bloqueado 😪
El puerto bloqueado en Xampp, por defecto 80 apache ( web) y 443 mysql , si estos estan bloqueados, algo hay, otro Xampp / uniserver abierto, skype, applicaciones de conexion usando esos puertos o bien un antivirus que los bloquea ( recuerdo aparte windows defender si se usa windows, no hay que tener nada mas ).
 
Arriba