• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

"a2e" text appear at the footer after sql crash

Status
Not open for further replies.

phansontt

Chevereto Member
Hi Rod,

Today, my website www.upsieutoc.com getting mysql crash
Table "chv_images" is Marked as Crashed and Should be Repaired

then I go to PhpMyAdmin and repair the "chv_images" table => everything work fine after repairing successful.

But my website appear text "a2e" at the very bottom footer. After a time finding I can't find out any thing cause this.

website: www.upsieutoc.com
 
Chevereto doesn't print that. Make sure that app/themes/Peafowl/footer.php is correct.
 
my footer code bellow

Code:
<?php if(!defined('access') or !access) die('This file cannot be directly accessed.'); ?>

<div id="powered-by" class="footer"><?php _se('Powered by <a href="http://chevereto.com">Chevereto image hosting script</a>'); ?></div>

<?php G\Render\include_theme_file("snippets/anywhere_upload"); ?>

<?php G\Render\include_theme_file("snippets/modal_login"); ?>

<?php G\Render\include_theme_file('custom_hooks/footer'); ?>

<?php CHV\Render\include_peafowl_foot(); ?>

<script src="<?php echo CHV\Render\versionize_src(G\Render\get_app_lib_file_url('chevereto.js')); ?>"></script>

<script>
PF.obj.config.base_url = "<?php echo G\get_base_url(); ?>";
PF.obj.config.json_api = "<?php echo G\get_base_url('json'); ?>";
PF.obj.config.listing.items_per_page = "<?php echo CHV\get_chv_setting('listing_items_per_page'); ?>";
PF.obj.config.auth_token = "<?php echo get_auth_token(); ?>";

PF.obj.l10n = <?php echo json_encode(CHV\get_translation_table()) ;?>;

if(typeof CHV == "undefined") {
    CHV = {obj: {}, fn: {}, str:{}};
}

CHV.obj.vars = {
    urls: {
        home: PF.obj.config.base_url,
        search: "<?php echo G\get_base_url("search"); ?>"
    }
};

CHV.obj.config = {
    image : {
        max_filesize: "<?php echo CHV\get_chv_setting('upload_max_filesize_mb') . ' MB'; ?>"
    },
    user: {
        avatar_max_filesize: "1 MB",
        background_max_filesize: "1 MB"
    }
};

<?php
    $logged_user = CHV\Login::getUser();
    if($logged_user) {
        $logged_user_array = [];
        foreach(['name', 'username', 'id', 'url', 'url_albums'] as $arr) {
            $logged_user_array[$arr] = $logged_user[$arr == 'id' ? 'id_encoded' : $arr];
        }
       
?>
CHV.obj.logged_user = <?php echo json_encode($logged_user_array); ?>;
<?php
    }
?>

<?php
if(in_array(G\get_route_name(), ["image", "album", "user", "settings"]) or (function_exists('is_dashboard_user') and is_dashboard_user())) {
    if(in_array(G\get_route_name(), ["settings", "dashboard"])) {
        $route = ['id'    => NULL, 'url'    => NULL];
        $route_user = get_user();
    } else {
        $route_fn = "get_".G\get_route_name();
        $route = $route_fn();
        $route_user = G\get_route_name() == "user" ? $route : $route["user"];
    }
?>
CHV.obj.resource = {
    id: "<?php echo $route["id_encoded"]; ?>",
    type: "<?php echo G\get_route_name(); ?>",
    url: "<?php echo (G\get_route_name() == "image" ?  $route["url_viewer"] : $route["url"]); ?>",
    parent_url: "<?php echo G\get_route_name() == "image" ? get_image()['album']['url'] : (G\get_route_name() == 'dashboard' ? NULL : $route_user['url']) ?>"
};

<?php
    if($route_user["id"]) {
?>
CHV.obj.resource.user = {
    name: "<?php echo $route_user["name"]; ?>",
    username: "<?php echo $route_user["username"]; ?>",
    id: "<?php echo $route_user["id_encoded"]; ?>",
    url: "<?php echo $route_user["url"]; ?>",
    url_albums: "<?php echo $route_user["url_albums"]; ?>"
};
<?php
    }
}
?>
</script>

</body>
</html>
 
Maybe your server or cloudflare is printing that. Try to flush the cloudflare cache.
 
Status
Not open for further replies.
Back
Top