Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Plugin (wpas) causing admin-ajax.php error

Discussion in 'Misc WordPress Requests' started by dnicinski, Dec 5, 2017.

  1. dnicinski

    Guest

    Reply To: Plugin (wpas) causing admin-ajax.php error, by dnicinski

    I have the same issue.

    How about this?

    1) Comment out the middle wp_enqueue_script in init.php —

    line 42:
    // wp_enqueue_script( ‘wpas-admin-ajax’, admin_url( ‘admin-ajax.php’ ), array(), ‘1’, false );

    2) Then inside js/scripts.js —

    line 156:
    replace
    url: WPAS_Ajax.ajaxurl,
    with
    url: “/wp-admin/admin-ajax.php”,

    The error is gone for me and everything seems to be working fine.

    Hope this helps.

    Reply To: Plugin (wpas) causing admin-ajax.php error
     
    #1

Share This Page

Web Hosting