Your account expired support, please renew to get your support.

HomePage Forums Themes Support Poco – Fast Food Restaurant WordPress Theme Problem with Lost Password dead link & Image Request demo URL

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #26764
    franx47
    Support Expired

    Hi,

    I have several questions to ask:

    1. Checking my site with “dead link checker”, there are some links that refer to “404” or not found.

    Something like “lost-password” or login link. FYI, I do not provide access or front-end user authentication login at all for my site.

    Eg:
    https://makanberame.com/lost-password/?page_id=11

    From the source code, looks like the form class refers to “poco-login-form-ajax”. Both on web or mobile version.

    I tried to search the link, but no clue where that page or script exists.

    Can you please show me how to remove that page/link? I dont want any deadlink crawled from the internet.

    2. From Inspect Console (Firefox), my site keeps requesting image to Poco demo server.

    GET https://demo2wpopal.b-cdn.net/poco/wp-content/uploads/2020/09/shape_dot.png

    Searching from the whole source code, found several for that link, and I have replaced the URL link with my site URL. And also the image file “shape_dot.png” already in my site media directory.

    https://makanberame.com/wp-content/uploads/2020/09/shape_dot.png

    But, why my site keeps requesting the image from demo2wpopal?

    I need to replace this, so any images will be requested (GET) only from my site. Except image taken from outside, eg: Instagram Feed, etc.

    And also to reduce outside DNS request time.

    Please help.

    Thank you.

    #26821

    Hi,

    #1. Looks like you deleted a few pages leading to the 404 error.
    You need to remove these pages on google: https://www.contentkingapp.com/academy/google-remove-urls

    #2. I fixed this issue, please delete all caches and recheck.

    #26829
    franx47
    Support Expired

    Hi,

    1. Eventough I have deleted the “lost-password” page or whatever it is. Actually, the script still running on the site. It’s not about how to remove the dead link crawled by Google, but rather removing the script itself. I dont mind with the crawling result, it can be managed later with the updated XML sitemap.

    The script which generates the “lost-password” and “account login/register” is in this file (line 838):

    …/wp-content/themes/poco/inc/template-functions.php

    if (!function_exists('poco_form_login')) {
        function poco_form_login() {
    
            if (poco_is_woocommerce_activated()) {
                $account_link = get_permalink(get_option('woocommerce_myaccount_page_id'));
            } else {
                $account_link = wp_registration_url();
            }
    /*    ?>
    
            <div class="login-form-head">
                <span class="login-form-title"><?php esc_attr_e('Sign in', 'poco') ?></span>
                <span class="pull-right">
                    <a class="register-link" href="<?php echo esc_url($account_link); ?>"
                       title="<?php esc_attr_e('Register', 'poco'); ?>"><?php esc_attr_e('Create an Account', 'poco'); ?></a>
                </span>
            </div>
            <form class="poco-login-form-ajax" data-toggle="validator">
                <p>
                    <label><?php esc_attr_e('Username or email', 'poco'); ?> <span class="required">*</span></label>
                    <input name="username" type="text" required placeholder="<?php esc_attr_e('Username', 'poco') ?>">
                </p>
                <p>
                    <label><?php esc_attr_e('Password', 'poco'); ?> <span class="required">*</span></label>
                    <input name="password" type="password" required placeholder="<?php esc_attr_e('Password', 'poco') ?>">
                </p>
                <button type="submit" data-button-action class="btn btn-primary btn-block w-100 mt-1"><?php esc_html_e('Login', 'poco') ?></button>
                <input type="hidden" name="action" value="poco_login">
                <?php wp_nonce_field('ajax-poco-login-nonce', 'security-login'); ?>
            </form>
            <div class="login-form-bottom">
                <a href="<?php echo wp_lostpassword_url(get_permalink()); ?>" class="lostpass-link" title="<?php esc_attr_e('Lost your password?', 'poco'); ?>"><?php esc_attr_e('Lost your password?', 'poco'); ?></a>
            </div>
            <?php*/
        }
    }

    The script has been commented and it won’t run anymore. Can be seen clearly on the page source code.

    And no more deadlink refers to “lost-password” page.

    Since I dont implement user registration/ checkout, I think it’s okay.

    2. Nice.

    Can you tell me how did you fix it? Curious to know.

    #26888

    Hi,

    #1. The problem is that google crawled the page before you deleted it, do you understand the problem?
    Now you need to declare to google that I don’t have those urls on the website so that google knows to delete the data it has collected before, not that you delete the code in the theme is done./

    #2. Please go to Admin dashboard -> Elementor -> Tools -> Replace URL tab -> Update Site Address: https://prnt.sc/_YtQSKuz7XIR

    #26892
    franx47
    Support Expired

    Hi,

    1. Ofcourse I understand well my problem, perhaps you misunderstood what I said before.

    Read again my first message:

    =========================================
    1. Checking my site with “dead link checker”, there are some links that refer to “404” or not found.
    =========================================

    https://www.deadlinkchecker.com

    “Dead link checker” is to check whether there is any link refers to 200 (OK) or not (could be 404, 429, 500, 503, or other http code).

    The link does not have to be shown on the webpage, it could be hidden somewhere in the “web source code”. And it’s too hard to find it manually, except with automatic crawler like “dead link checker”.

    I can show you the prove if you want to.

    # Case 1:
    – If I don’t comment out that code, there will be a 404 link refers to certain account login/registration, eg: https://makanberame.com/lost-password/?page_id=11. It does not show on the webpage (can be seen clearly), but manually by viewing the source code.

    Why? It’s because those links are exist and have been generated from this script:
    …/wp-content/themes/poco/inc/template-functions.php

    Google or any other crawler will still crawl that “link” (since the link exist, eventough it has no page to refer to).

    Requesting to Google to delete certain link is a different case.

    # Case 2:
    – If I comment out that code, there will be no more dead link, because “lost-password” and “account registration” link which refers to 404 have not been generated from the script.

    Those “links” are not exist and are not generated, and will not be crawled from the internet (using dead link checker or Google crawler). It won’t be in the XML sitemap, too.

    In simple word, you can check my site now and you will not find any “lost-password” or “account registration” link. Take a look in the source code.

    Or you can check with deadlink checker above.

    And it has nothing to do with Google.

    I think this should be a simple thing for you as a developer. 🙂

    2. Nice. Thanks.

    #26933

    OK I got it.
    Here are the URLs are checked directly from the HTML code of the website, so there will be links that don’t work, leading to 404 errors. It’s another testing tool, not a crawler from Google.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.