Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Dear future Googlers,

    This problem can be best solved by looking at any error outputs in your browser console (F12 and Console under Chrome.)

    First, check that https://www.google.com/api/recaptcha.js is being loaded by your plugin code, and is present in the HTML of your web site.

    Next, check any caching plugins or services. This file MUST be loaded before the grecaptcha snippet that actually performs the recaptcha. Some caching plugins reorder Javascript loads, such that the recaptcha.js file is not loaded in time before the captcha callback code is run.

    In my WordPress setup, I worked around by adding “captcha” to the list of strings for URIs that the JavaScript caching mechanism should not cache.

    Under LiteSpeed Cache Settings, under Tuning, I set Javascript Excludes to include the word captcha.

    Your caching system will need to be set similarly, to exclude any captcha js from reordering.

    This fixed my problem.

    Thus bug is still occurring on MacOS 10.10 with the stock version of Safari. To be clear, this bug is NOT FIXED and it should not be marked as resolved.

    Reverting to 1.7.6 causes this issue to go away.

    Please be aware, your plugin is now incompatible with a significant portion of Macintoshes and handheld devices now.

    • This reply was modified 6 years, 5 months ago by johnwbyrd.
    Thread Starter johnwbyrd

    (@johnwbyrd)

    Thanks for the recommendation. I went with WP-SpamShield for the time being.

    You should consider stopping your plugin from interfering with any AJAX request, which would have fixed this problem. See this StackOverflow article for information on how to detect whether the current query is AJAX.

    Thread Starter johnwbyrd

    (@johnwbyrd)

    Yes, I had already read the FAQ and was aware of the checkbox. If a user has already been marked as a spammer, then enabling the checkbox will not cause the user to suddenly get their WooCommerce downloads working again. The information above should permit you to replicate the issue. If you wish to replicate the issue, install the plugin on a WooCommerce site, enter customer information into the Checkout page, wait for checkout/?wc-ajax=update_order_review to be accessed by the javascript, and you will see the “we think you are a spammer” page generated by this plugin as an XHR response to the javascript query. I am not sure how to detect AJAX responses in the generic case, so I can’t recommend a specific workaround, but you may wish to take a look at the is_checkout() and is_cart() and is_woocommerce() functions from within WooCommerce.

    Moderators, if you had spent as many keypresses actually helping the user instead of slapping the user down for asking for help, he might have solved his problem and you might have helped all the other people landing on this page via Google.

    shivampaw and future Googlers, this is possible via W3 Total Cache if you select the “Inline CSS minification” and “Inline JS minification” settings on the Minify page of W3 Total Cache. I would also point out that Cloudflare can also do something similar without slowing down your web site.

    Einkoro’s code is useful, but the description on how to use it is slightly incomplete.

    Here is the method for re-enabling .exe and .dmg product downloads from within WooCommerce and other parts of WordPress.

    To use his code for enabling exe and dmg downloads, you will need to edit the functions.php file that exists in the root directory of your theme. This functions.php file exists at wp-content/themes/yourthemename within your WordPress installation.

    If the file doesn’t exist, create it. If it does exist, edit it so it includes at least the following information.

    <?php
    
    // Allow exe or dmg for digital downloads
    add_filter('upload_mimes', function($mimetypes, $user)
    {
        // Only allow these mimetypes for admins or shop managers
        $manager = $user ? user_can($user, 'manage_woocommerce') : current_user_can('manage_woocommerce');
    
        if ($manager)
        {
            $mimetypes = array_merge($mimetypes, [
                'exe' => 'application/octet-stream',
                'dmg' => 'application/octet-stream'
            ]);
        }
    
        return $mimetypes;
    }, 10, 2);
    
    ?>

    It’s ok to have other code in functions.php as well. Good luck.

    Same problem here, and same solution here as the ones described above. Doing an automatic upgrade caused the buttons to vanish without explanation. If I had not found this thread, I would have deleted the plugin.

    Latest 3.87 update breaks WordPress dead. Rolling back now.

    “iThemes has chosen to withhold support unless you pay for it. That’s their decision, of course, but in my opinion it is unbelievably tacky and causes harm to the people who actually DO depend on the plugin. Extortion is basically what it is.”

    Amazing how efficiently Steve Johnson, Expert WordPress Developer asserts his (and the world’s) entitlement to support for a product that he wasn’t responsible for making. FREE STUFFS! [Remark redacted]

Viewing 9 replies - 1 through 9 (of 9 total)