Viewing 3 replies - 1 through 3 (of 3 total)
  • I had a problem with a Captcha not showing up with the same plugin. My problem turned out to be with the caching program I was using. It was caching the page with the form without the Captcha image (since the Captcha image is dynamically generated by the plugin). Because of this, the image would only show up if I reloaded the page and called a fresh copy of the form.

    Since I wanted the page with the form to be cached for speed considerations, I ended up removing the Captcha and using a honeypot plugin to foil spammers instead. This solution has worked fine and avoids the Captcha problem entirely (and the inconvenience to humans using the form). I also implemented a security plugin for the site as an added layer of protection against hackers and spammers. So far the combination has been very secure and spam free, which was my overall goal, with no noticeable problem with site performance.

    Thread Starter qtpankajsingh

    (@qtpankajsingh)

    @akrakar_hope – thanks buddy for you reply. Although the solution you provided seems good enough to resolve this problem. But putting an extra field in the form is not suitable for user interface in my opinion.

    I have two environment for my website, first is staging which is used for testing and another is for production. On my local machine and on staging Captcha is running properly without any issue. But the problem is only on production i.e. on https://qainfotech.com/effective-regression-testing-strategy-for-localized-applications/

    Please guide me.

    Thanks

    Thread Starter qtpankajsingh

    (@qtpankajsingh)

    I think I have found the solution. It was because of cache. I’m using ZenCache plugin. I wanted to avoid the page from getting cached. So I did it by checking all those page manually on content.php inside theme folder with there id as follows –

    <?php
            $categoryId = $post_category[0]->cat_ID;
            if ((is_single() && (($categoryId == 31) || ($categoryId == 32))) || (is_page(2784)) || (is_page(3621)) || (is_page(3544))) {
                    function clear_cache_for_page_id_5( ) {
                        $GLOBALS['zencache']->auto_clear_post_cache($post_category[0]->object_id);
                    }
            }
    ?>

    Here I have called out predefined function of ZenCache to clear cache for that particular page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘captcha image does not show on initial page load’ is closed to new replies.