Admin Ajax Issue

This topic contains 4 replies, has 2 voices, and was last updated by  David Kinloch 3 years, 5 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #5067

    David Kinloch
    Participant

    Hey,

    I have a local version at moment. using Search Pro. I disabled other plugins and used default 15 theme.

    With Debug False getting this error:

    jquery.js?ver=1.11.2:4 POST http://mhwordpress/wordpress/wp-admin/admin-ajax.php 500 (Internal Server Error)
    m.ajaxTransport.send @ jquery.js?ver=1.11.2:4
    m.extend.ajax @ jquery.js?ver=1.11.2:4
    m.each.m.(anonymous function) @ jquery.js?ver=1.11.2:4
    methods.search @ jquery.ajaxsearchpro.js?ver=4.2.2:792
    (anonymous function) @ jquery.ajaxsearchpro.js?ver=4.2.2:549

    With debug true getting this error:

    jquery.ajaxsearchpro.js?ver=4.2.2:794 Uncaught TypeError: Cannot read property ‘1’ of null
    Uncaught TypeError: Cannot read property ‘1’ of null

    (anonymous function) @ jquery.ajaxsearchpro.js?ver=4.2.2:794m.Callbacks.j @ jquery.js?ver=1.11.2:2m.Callbacks.k.fireWith @ jquery.js?ver=1.11.2:2x @ jquery.js?ver=1.11.2:4m.ajaxTransport.send.b @ jquery.js?ver=1.11.2:4

    Working on MAMP latest version of WP and your plugin.

    Any help ?

    thanks
    David

    Attachments:
    You must be logged in to view attached files.
    #5069

    Ernest Marcinko
    Keymaster

    Hi David!

    Could you please check the response body if debug mode is enabled in wp-config.php? These are only the javascript error messages due to the server response.

    Error 500 means, that at some operation the server stops the ajax process with an error 500. If debug mode is enabled, it might send the error message as well with the ajax response. You can check that on your browsers Network panel:

    – before typing in anything: https://i.imgur.com/KBJnv4Z.png
    – after typing in a phrase, you check the failed response: Step 1, Step 2

    Hopefully there will be some kind of error message.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #5070

    David Kinloch
    Participant

    – before typing in anything: no errors
    – after typing in a phrase, you check the failed response:

    I have attached an archive of failed repsonses on admin-ajax.php

    one

    “testosterone”

    and another

    <br />
    <b>Warning</b>: Illegal string offset ‘caching’ in <b>/Users/DK/Sites/MERCER/marshall-hurley/WORDPRESS/wp-content/plugins/ajax-search-pro/search.php</b> on line <b>223</b><br />
    <br />
    <b>Fatal error</b>: Only variables can be passed by reference in <b>/Users/DK/Sites/MERCER/marshall-hurley/WORDPRESS/wp-content/plugins/ajax-search-pro/search.php</b> on line <b>223</b><br />

    Attachments:
    You must be logged in to view attached files.
    #5072

    Ernest Marcinko
    Keymaster

    Hi!

    Try to go to the plugin caching options submenu on the back-end and save it without changing anything. It looks like an options incosistency, so it might help.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #5073

    David Kinloch
    Participant

    Awesome that fixed it ! Thanks not sure I would have ever found that

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.