• Hi All

    I’ve just given my site a spring clean and started afresh with a new upload of WordPress, A theme (http://demo.rescuethemes.com/politics-plus/) and a few plugins.

    On my localhost test site everything worked fine with the plugins I wanted to use and in Give’s settings all ok.

    On uploading to my host it seems that Give is reporting the admin-ajax.php file is inaccessible. πŸ™

    I used your great guide online and followed the steps you mentioned. disabled all plugins, change theme etc. Sadly when I activate Give the backend page loading slows right down to the point of being unusable.

    Your plugin seems to work ok, however; I’m just getting very slow admin response.

    When I direct my browser to admin-ajax I get an 0 output, is this something I should be seeing?

    My worpdress wp-admin is NOT password protected and I have added the following to my .htaccess file just in case.

    <Files admin-ajax.php>
    Order allow,deny
    Allow from all
    Satisfy any
    </Files>

    This is also the output from the system info page of Give’s settings.

    ### Begin System Info ###

    — Site Info

    Site URL: http://www.morvargh-sailing.co.uk
    Home URL: http://www.morvargh-sailing.co.uk
    Multisite: No

    — Hosting Provider

    Host: DBH: localhost, SRV: http://www.morvargh-sailing.co.uk

    — User Browser

    Platform: Windows
    Browser Name: Chrome
    Browser Version: 49.0.2623.28
    User Agent String: Mozilla/5.0 (Windows NT 10.0; Wi
    n64; x64) AppleWebKit/537.36 (KH
    TML, like Gecko) Chrome/49.0.262
    3.28 Safari/537.36

    — WordPress Configuration

    Version: 4.4.1
    Language: en_US
    Permalink Structure: /%postname%/
    Active Theme: Politics 1.0.3
    Show On Front: page
    Page On Front: Sailing on Plymouth Tall Ship (#14)
    Page For Posts: News from Plymouth’s Tall Ship (#16)
    Remote Post: wp_remote_post() works
    Table Prefix: Length: 3 Status: Acceptable
    Admin AJAX: Inaccessible
    WP_DEBUG: Disabled
    Memory Limit: 40M
    Registered Post Stati: publish, future, draft, pending, private, trash, auto-draft, inherit, refunded, failed, revoked, abandoned, spam

    — Give Configuration

    Version: 1.3.5
    Upgraded From: 1.3.5
    Test Mode: Disabled
    Currency Code: GBP
    Currency Position: before
    Decimal Separator: .
    Thousands Separator: ,

    — Give Page Configuration

    Success Page: http://www.morvargh-sailing.co.uk/donation-confirmation/
    Failure Page: http://www.morvargh-sailing.co.uk/transaction-failed/
    Give Forms Slug: /donations

    — Give Gateway Configuration

    Enabled Gateways: PayPal Standard, Offline Donation
    Default Gateway: PayPal Standard

    — Must-Use Plugins

    — WordPress Active Plugins

    Akismet: 3.1.7
    Bot Block: 2.4
    Give – Donation Plugin: 1.3.5
    Jetpack by WordPress.com: 3.9.1
    Mailbag: 1.4
    Obfuscate E-mail: 3.4
    Rescue Shortcodes: 2.1.1
    Simple Custom CSS: 3.3
    Widget Importer & Exporter: 1.2.2
    Yoast SEO: 3.0.7

    — WordPress Inactive Plugins

    — Webserver Configuration

    PHP Version: 5.4.41
    MySQL Version: 5.5.47
    Webserver Info: Apache/2.4.12 (Unix) OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4

    — PHP Configuration

    Safe Mode: Disabled
    Memory Limit: 256M
    Upload Max Size: 80M
    Post Max Size: 80M
    Upload Max Filesize: 80M
    Time Limit: 900
    Max Input Vars: 1000
    Display Errors: N/A

    — PHP Extensions

    cURL: Supported
    cURL Version: 7.38.0
    fsockopen: Supported
    SOAP Client: Not Installed
    Suhosin: Not Installed

    — Session Configuration

    Give Use Sessions: Enabled
    Session: Enabled
    Session Name: PHPSESSID
    Cookie Path: /
    Save Path: /tmp
    Use Cookies: On
    Use Only Cookies: On

    ### End System Info ###

    Could anyone help with some further troubleshooting methods for trying to get admin-ajax accessible to Give?

    Thanks all

    Regards

    Matt

    https://wordpress.org/plugins/give/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Contributor Matt Cromwell

    (@webdevmattcrom)

    Hi Matt,

    Review this article here and let me know how that goes:
    https://givewp.com/documentation/core/troubleshooting/admin-ajax-blocked/

    Thread Starter morvarghmatt

    (@morvarghmatt)

    Wow, thanks so much for the quick reply.

    Sadly, i’ve already worked through your document already πŸ™

    Plugin Contributor Matt Cromwell

    (@webdevmattcrom)

    Hmm… well the system report still says that admin-ajax.php is Inaccessible. So that’s still most likely the problem. Have you disabled all security and caching related plugins to see if they are disabling admin-ajax.php? Perhaps contact your host to see if they have security rules against it (that’s not common anymore but there was a time when hosts were blocking it routinely).

    Here’s two other sources on this issue:
    http://docs.easydigitaldownloads.com/article/201-admin-ajax-blocked

    http://wordpress.stackexchange.com/questions/106252/failed-to-load-wp-admin-admin-ajax-php

    Both reference hosts as the culprit often.

    Let me know if you have further questions.

    Thread Starter morvarghmatt

    (@morvarghmatt)

    Thanks πŸ™‚

    I’ve disabled all plugins other than ‘Give’ and still get the error.

    Do you know if when opening admin-ajax.php in the browser I should see a ‘0’ output or is that telling me it doesn’t work?

    Thanks so much for your help!

    Plugin Contributor Matt Cromwell

    (@webdevmattcrom)

    No, “0” is an error. I would definitely contact your host about that.

    Thread Starter morvarghmatt

    (@morvarghmatt)

    Cool, thank you πŸ™‚

    @morvaghmatt – did you get this resolved by chance?

    Seems I’m having a similar issue. However mine only happens in specific OS/browser combinations. On Mac it always works :).

    I’m on Siteground and I’m wondering if you had this resolved.

    Because if I try to run one of the known failed OS/browser combinations that fail on the live site within my own local environment, it works. So I’m thinking that this is due to the host as well.

    Any information would help, thanks!

    Thread Starter morvarghmatt

    (@morvarghmatt)

    Sadly not got this resolved yet.

    My host has assured me that they are not running any security rules or software that should stop access to admin-ajax.

    Just diving back into this issue now as I have a few hours this afternoon.

    Plugin Contributor Matt Cromwell

    (@webdevmattcrom)

    Hi @morvarghmatt

    What does your htaccess file look like? Some have reported this error when they have highly customized rules in their htaccess, specifically rules that block certain IPs.

    Here’s an example:
    http://www.inmotionhosting.com/support/community-support/wordpress/admin-ajax-blocked-error-message-with-give-wordpress-plugin

    Hi!

    I’m having exactly the same situation! With me, I don’t even have an .htaccess file, so I’m assuming the problem isn’t there. My host also wrote me that there shouldn’t be a problem from their side. I’m using a premium theme (BeTheme). I have very few plugins, except for the necessary ones for me: Visual Composer, Slide Revolution, Contact Form 7 and Mailchimp.

    I have no idea how to fix it. Do you have any other suggestions?
    Is there a way for me to check to confirm there is no problem from the hosting side?

    Thanks for the help.
    Steven

    Thread Starter morvarghmatt

    (@morvarghmatt)

    Hi @webdevmattcrom

    Just the standard htaccess that comes with wordpress. I’ve googled the issue of admin-ajax to death on google as well. Am scratching my head with this one! πŸ™‚

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    So there’s still no solution?

    Could the problem be with the Give plugin?

    Plugin Contributor Matt Cromwell

    (@webdevmattcrom)

    Hi @maggifreddy

    If your site is blocking admin-ajax.php there is nothing our plugin can do to resolve that. There’s many ways in which that might be blocked, including your host blocking it unnecessarily.

    This is our documentation on the issue:
    https://givewp.com/documentation/core/troubleshooting/admin-ajax-blocked/

    Read that and see if you can get it resolved based on that information. Happy to help with tips and advice as much as I can via this forum.

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

The topic ‘admin-ajax issue’ is closed to new replies.