• Resolved ajoiner92

    (@ajoiner92)


    Hello,

    I have recently implemented the W3 Total Cache to my website and I have noticed that the captcha image disappeared. I saw another forum post similar to this but did not see a resolve. For now I have disabled the captcha on my forms, but this really isn’t the best long term solution.

    For the W3 Total Cache settings I have added the pages for “Page Caching” > “Never cache the following pages:” but the image still does not show up. Do you know anything about this problem and have any kind of resolve?

    Thank you,
    Amber

Viewing 15 replies - 1 through 15 (of 23 total)
  • Plugin Author Nick Ciske

    (@nickciske)

    Link?

    It should work with W3 Total Cache – the plugin tells W3TC not to cache pages with the form shown, and the captcha image is fetched via ajax, which should never be cached…

    Thread Starter ajoiner92

    (@ajoiner92)

    I enabled the captcha at this page location so you can see: Lead Form Page the form is at the bottom of the page.

    Thank you,
    Amber

    Plugin Author Nick Ciske

    (@nickciske)

    Can you enable debugging and see if there are any fatal error happening? The ajax endpoint appears to be returning nothing… which points to some issue there… but without a debug log I can’t assist further.

    Thread Starter ajoiner92

    (@ajoiner92)

    I have enabled in browser debugging. Followed these instructions, “To turn on in browser debugging, add a hidden field (enabled) named debug and set the value to 1.” Just so you know in case I need to do anything else.

    Thank you,
    Amber

    Plugin Author Nick Ciske

    (@nickciske)

    No, I meant WP_DEBUG. It’s a PHP error, not and issue with Salesforce.

    https://codex.www.ads-software.com/Debugging_in_WordPress

    Thread Starter ajoiner92

    (@ajoiner92)

    Sorry about that. I changed this line of code in my wpconfig.php from define(‘WP_DEBUG’, false); to define(‘WP_DEBUG’, true);

    I also added define( ‘WP_DEBUG_LOG’, true );

    I am not sure what I am looking for, since I don’t see any kind of messages in browser, is there somewhere else they would display, maybe in the backend of wordpress? Will it read every page, or just the homepage?

    In the debug.log file that was generated the only notice I have received is this:

    [29-Dec-2016 20:35:27 UTC] PHP Notice: Trying to get property of non-object in /home2/arizon/public_html/arizonbuildingsystems.com/wp-content/plugins/revslider/includes/page-template.class.php on line 115

    This is only on my homepage though, so I don’t know if it is reading the page the form is on. I have not setup debug before, so sorry about all the questions.

    Thank you,
    Amber

    Plugin Author Nick Ciske

    (@nickciske)

    You’ll need to visit the page with the form/captcha and check the debug log after that.

    Thread Starter ajoiner92

    (@ajoiner92)

    I added define( ‘WP_DEBUG_DISPLAY’, true ); to the file as well and when looking at the code on the page I see red “&” in placed for the src of the captcha image. Message says

    “&” did not start a character reference. (“&” should probably have escaped as “&”.)

    Thank you,
    Amber

    Thread Starter ajoiner92

    (@ajoiner92)

    The log shows this message after visiting the page:

    [29-Dec-2016 20:42:27 UTC] PHP Notice: The data could not be converted to UTF-8. You MUST have either the iconv or mbstring extension installed. Upgrading to PHP 5.x (which includes iconv) is highly recommended. in /home2/arizon/public_html/arizonbuildingsystems.com/wp-includes/class-simplepie.php on line 1421

    Thank you,
    Amber

    Plugin Author Nick Ciske

    (@nickciske)

    Which version of PHP is your site running?

    Looks like something is encoding the CAPTCHA url when it should not be…

    Thread Starter ajoiner92

    (@ajoiner92)

    We are using php 5.4.45.

    Thank you,
    Amber

    Any update on this? I am having the same problem.

    • This reply was modified 8 years, 2 months ago by jeffquade1.
    Plugin Author Nick Ciske

    (@nickciske)

    I can’t duplicate this issue on my local dev server — even not adding the page to the “never cache” option (the plugin already tells W3TC not to cache pages, so that’s superfluous).

    It may be your specific settings in W3 Total Cache and/or how it interacts with your hosting… hard to say other than it’s not just the plugin and W3TC — there’s another factor at play here.

    I’d need a W3TC settings export and specifics of your hosting (PHP version, Nginx vs Apache, etc) to attempt to duplicate it, OR to have me troubleshoot it on your server you could open a premium support ticket here: https://cimbura.com/support/premium-plugin-support/

    Thread Starter ajoiner92

    (@ajoiner92)

    I am using PHP 5.4 and have Apache, through hostgator.

    Google Drive link to W3TC setting export: https://drive.google.com/file/d/0B9uyYSW13tAHSkY4UWVGN2pETlU/view?usp=sharing

    Thank you,
    Amber

    Thread Starter ajoiner92

    (@ajoiner92)

    Have any updates?

    Thank you,
    Amber

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘WordPress-to-lead captcha image disapearing with W3 Total Cache’ is closed to new replies.