This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Cannot instantiate ASP_Query()

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Cannot instantiate ASP_Query()

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #52727
    kseaboltkseabolt
    Participant

    Trying to use ASP_Query per the knowledge base doc at https://knowledgebase.ajaxsearchpro.com/other/asp_query which states:

    “The full class name, with arguments explained can be found in wp-content/plugins/ajax-search-pro/includes/classes/search/class-asp-query.php file”

    However my installed plugin does not include a path called “wp-content/plugins/ajax-search-pro/includes/classes/search”

    Is the documentation current?

    Thanks

    #52729
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    If the class does not exist, that may indicate that you might be trying to access it before the plugin is loaded.

    It was indeed moved to a different file in the most recent patch: wp-content/plugins/ajax-search-pro/src/server/Query/SearchQuery.php
    However the ASP_Query class alias is autoloaded, that should still work.

    If for some reason it does not, then please use the namespace variation new WPDRMS\ASP\Query\SearchQuery();

    I will update the documentation in a minute with the correct path and namespace. Thanks for letting me know!

    #52730
    kseaboltkseabolt
    Participant

    That was quick. TBH, I simply stopped when I found the missing path as referenced in the KB. Will come back if for some reason I can still not get it to work as planned.

    Thanks!

    Best regards,

    Ken

    #52731
    Ernest MarcinkoErnest Marcinko
    Keymaster

    All right! Let me know, it is not fully documented yet as it was very recently changed.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.