Viewing 2 replies - 1 through 2 (of 2 total)
  • etoilewebdesign

    (@etoilewebdesign)

    Hi Jürgen,

    All of our functions are written in our plugin files. It would not be possible for us to put them elsewhere. The only message I see in your console is a 401 error related to admin-ajax.php. Our FAQ uses Ajax for the FAQ. That is why you’re seeing a call to WordPress’s built-in admin-ajax.php file. That is how it’s supposed to work. When you write a function that uses Ajax in WordPress, it should make use of WordPress’s built-in Ajax functionality. The issue is that the plugin/function is not being allowed access to WordPress’s built-in admin-ajax.php, so that is why you are getting the 401 error. It’s not just our plugin. Any plugin or theme functionality that uses Ajax will run into the same issue. You’ll need to look into why your authorization setup is blocking calls to WordPress’s built-in admin-ajax.php and see if there’s a way to set it up so that it doesn’t.

    Thread Starter jkling

    (@jkling)

    Hi,

    I use this .htaccess file in the wp-admin at least on 15 WordPress websites.
    Apparently none of them needs the built-in-ajax.php.

    This code in the .htaccess fixes the problem

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

    Thank you for the clue.

    Best regards
    Jürgen

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘htaccess and toggle faq title’ is closed to new replies.