• Resolved pierostz

    (@pierostz)


    Hello,

    I had a call from my customer that using the search widget generates empty results. This happened suddenly and therefore no development was done to create this issue.

    I have confirmed that the settings are not messed in some way.

    Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter pierostz

    (@pierostz)

    EDIT: Just to be more clear. The website doesn’t generate an empty search results page described in this link

    It seems like the search function is not working properly since the main content area and all sidebar widgets are not generated after I press search.

    Plugin Contributor MariaKravchenko

    (@mariakravchenko)

    Hello.

    Pay attention to option in Settings/Main tab – Default Properties Page.
    Try to play with it and check how it works.More details here – https://www.usabilitydynamics.com/product/wp-property/docs/main-tab-in-wp-property-settings

    Regards.

    Thread Starter pierostz

    (@pierostz)

    Hello Maria,

    I have been investigating into this issue and I pinpointed the problem.

    I have a modified property-overview-page.php that is in the root of my custom theme. When I removed the file from my custom theme the search results came back.

    A workaround I found is to move my modified file into the original location

    /wp-content/plugins/wp-property/static/views

    Therefore it seems to be a problem with the wp-property using the modified template file from a custom theme folder and not an actual problem with the file itself.

    I would like to find a solution to this, because as it is my site is not upgrade safe.

    Thanks

    • This reply was modified 7 years, 2 months ago by pierostz.
    Plugin Contributor MariaKravchenko

    (@mariakravchenko)

    There is an order which templates using to apply on your site.
    1. Child Theme
    2. Theme
    3. WP-Property plugin

    Thread Starter pierostz

    (@pierostz)

    Can you please elaborate on this?

    Plugin Contributor MariaKravchenko

    (@mariakravchenko)

    That means if you customize a file in both places, the file from your theme folder will be applied.

    Also, we do not recommend to customize plugin’s files, cause they will be overwritten after an update.

    Thread Starter pierostz

    (@pierostz)

    Hello Maria,

    Let me be more clear on this one.

    My file (property-overview-page.php) is customized and it was in the custom theme folder, therefore making it upgrade safe.

    After this error occured I moved the customized file into its original location and replaced the original file and the problem went away. So… the problem is this:

    I have a customized theme file that when using the upgrade safe way of customizing wp-property plugin the search functionality breaks. If the customize file is in its original location then the problem is gone. What is the solution to make my site upgrade safe again?

    I hope I am clear now.

    Thanks

    Plugin Contributor MariaKravchenko

    (@mariakravchenko)

    Yea, that is clear now. But not sure what is the reason of that. Try to create folder wp-property in your theme root and put the file there. Also are you sure you customized correct file? Usually, users customize property_overview.php

    Regards.

    Thread Starter pierostz

    (@pierostz)

    Hello Maria,

    Just to close this.

    I don’t know what happened but after the latest wp-property 2.2.0.4 the problem is gone.

    Meaning that I moved back to the theme folder the property-overview-page.php file and now it seems to work correctly.

    Thanks

    • This reply was modified 7 years ago by pierostz.
    Plugin Contributor MariaKravchenko

    (@mariakravchenko)

    Hello.

    Thank you for feedback. Probably you just had to reinstall the plugin.

    Regards.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Search widget empty results’ is closed to new replies.