Errors in pro version and https problem

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Errors in pro version and https problem

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #11207
    Redrawn
    Redrawn
    Participant

    Hello,

    I just bought your wordpress plugin Ajax Search Pro.

    Unfortunately I have found the following bugs:
    – The replacement of the default theme search is not functioning properly: The search width of the search box is to small. However this works just fine in Ajax Search Lite. By the way: I am using the Activello theme.
    – The search in selected custom fields works just fine in Ajax Search Lite, but does not work in the pro version.
    – On production site the images are not shown and the forwarding to the selected product does not work properly. However this works just fine on development machine and I guess it is because production site is using https whereas development site runs with http. Likely a similar problem as described here: https://wordpress.org/support/topic/media-library-wont-load-display-images/

    Thanks a lot in advance and best regards,

    Wolfram Urich

    #11211
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi Ulrich,

    The box width is set to 100% by default, same as in the lite version. However if the container element width is set differently, the percentage width can be small. On the Theme Options -> Overall Box layout panel you can change that wit the “Search box width” option. Try pixel values like 300px or 400px.

    I’ve checked the code regarding the custom field search and the version log as well. The only known issue with the current version is when only custom fields are selected to search for, the search doesn’t trigger. If this is the case and you only want to search custom fields, then a bypass solution is to enable at least one other field to search as well. I suggest enabling the “Search in post excerpts?” option on the General Options -> Behavior panel. Post excerpts are usually empty, and it won’t affect the pure custom field search that way.
    If however this is not the case, I suggest updating the ticket information with log-in and FTP details, so I can investigate if there is an unknown issue there.

    Image Problem: It’s not necessarily that. The plugin gets the images as it finds them, there are not modifications to the URLs. In your case the problem might be (I’m guessing) is that you might be using a plugin to enforce HTTPS over HTTP when pushing from test to live environment. So the images might be stored with a HTTP url in the database, but later filtered to HTTPS urls. If this is the case, the following custom code might help:

    Try copying it into the functions.php file in your active theme directory (copy from line 3)
    This might not do anything if the issue something else, but it’s worth a try.

    Best,
    Ernest Marcinko

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


    #11231
    Redrawn
    Redrawn
    Participant

    Hi Ernest,

    thanks a lot: Worked like a charm, everything’s fixed!

    I just added the following line to your asp_fix_https()-function. so that the user is directed to the correct URL when clicking a search result:

    $v->link = str_replace( 'http:', 'https:', $v->link );

    Best regards and have a good weekend,

    Wolfram

    #11238
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. 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)

The topic ‘Errors in pro version and https problem’ is closed to new replies.