Broken preview, calling wrong site URL

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Broken preview, calling wrong site URL

This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 9 years, 11 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1741
    Dominic Self
    Dominic Self
    Participant

    I’ve just bought and installed this plugin, but the preview in the Admin area isn’t working. I checked and it seems like it’s trying to load resources from the ‘public’ URL (http://dominicself.co.uk) rather than the WordPress installation directory (http://dominicself.co.uk/wordpress/). See attached screenshot. Can you help?

    #1742
    Dominic Self
    Dominic Self
    Participant

    Oops, attachment doesn’t seem to have shown up…

    Attachments:
    You must be logged in to view attached files.
    #1744
    Dominic Self
    Dominic Self
    Participant

    Ah, I think I’ve found the bug!

    In ajax-search-pro/backend/search.php, line 23:

    var ajaxurl = ‘<?php bloginfo(“url”); ?>’ + “/wp-content/plugins/ajax-search-pro/ajax_search.php”;

    it should say:

    var ajaxurl = ‘<?php bloginfo(“wpurl”); ?>’ + “/wp-content/plugins/ajax-search-pro/ajax_search.php”;

    🙂

    • This reply was modified 9 years, 12 months ago by Dominic Self Dominic Self.
    #1747
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    Thank you for the information! I haven’t updated the preview box for a while 🙂 I will surely fix this in the upcoming version!

    Best,
    Ernest Marcinko

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


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

You must be logged in to reply to this topic.