Support

Home Forums Event Espresso Premium Events Search

Events Search

Posted: August 20, 2012 at 3:47 pm


Jennifer Doyon

August 20, 2012 at 3:47 pm

Hello –

The [EVENT_SEARCH] shortcode does not appear to be working for my site. There is no autocomplete, and if I type in a term and press Enter, it just returns me to the search box.

http://www.brookfieldlibrary.org/brkwpress/event-search/

Thanks!
Jennifer


Josh

  • Support Staff

August 20, 2012 at 7:38 pm

It looks like there are some paragraph tags getting added into the markup. You might try wrapping the shortcode in [raw] tags to see if that makes a difference. Also, test drive the twentyeleven theme with the theme test drive plugin to rule out a theme conflict.


Jennifer Doyon

August 21, 2012 at 8:01 pm

I removed the paragraph tags, tried the [raw] tags, and used the theme test drive plugin, but the search still isn’t working.


Josh

  • Support Staff

August 21, 2012 at 9:13 pm

So to clarify, the search box didn’t display any results with the theme test drive enabled twenty-eleven theme?

Try typing one of the event names, it should display an event name if there is a match after typing a few letters. I can also recommend updating to the latest version of Event Espresso, as the current version (3.1.26) has a few bug fixes for the event search feature. The source of the web page indicates that this site is running 3.1.25.


Jennifer Doyon

August 22, 2012 at 9:16 am

Right, I still get no results with theme test drive and twenty-eleven.

From the WP plugins page, it shows that I’m using 3.1.26, but I have noticed on other settings pages (calendar settings, for example) it says that I’m using 3.1.25. How can I fix this?


Chris Reynolds

  • Support Staff

August 22, 2012 at 10:08 am

The autocomplete is working for me but the results aren’t showing up for me on my local test site. I will create a ticket to take a look at this in the next update.

I’m using 3.1.26, but I have noticed on other settings pages (calendar settings, for example) it says that I’m using 3.1.25. How can I fix this?

This is a typo in the plugin and will also be resolved in the next update.


Jennifer Doyon

August 22, 2012 at 10:30 am

Thank you.


Jacopo Lualdi

September 5, 2012 at 7:58 am

Hi, I have exactly the same problem. Any solution found?


Dean

September 5, 2012 at 8:31 am

Hi Jacopo,

As Chris mentioned, this should resolved in the next update which is due quite soon (no date but testing has begun).


Seth Shoultes

  • Support Staff

September 5, 2012 at 7:54 pm

Hey guys,

I posted a temporary fix for this issue in this thread:
https://eventespresso.com/topic/event-search-goes-to-404-page/#post-15577

Hope that helps.


Jacopo Lualdi

September 19, 2012 at 6:24 am

Hi,
I updated to 3.1.27.P but my [EVENT_SEARCH] still does NOT work…
Here is the page where I’ve put the shortcode, as you can see, nothing happen http://www.animaeventi.com/website/?page_id=7088

Let me know, this feature is much important for me


Jennifer Doyon

September 19, 2012 at 9:57 am

This is still not working for me after the upgrade.

http://www.brookfieldlibrary.org/brkwpress/event-search

I tried it with the Twenty Eleven theme as well.

Please help!


Dean

September 19, 2012 at 11:35 pm

Hello Jacopo and Jennifer,

I have raised this with the developers to look into, we will let you know as soon as we can regarding it.


Seth Shoultes

  • Support Staff

September 19, 2012 at 11:47 pm

@Jacopo I see that you are loading Jquery from the the Google Jquery library (screen shot: http://www.screencast.com/t/uqmRuBDXnouC) in your theme. There are also scripts loading jQuery.noConflict (screenshot: http://www.screencast.com/t/p2pkBmwla) on your site which is incompatible with the Google version of jquery. Therefore you are getting Javascript errors which are most likely preventing the auto-complete search tool from working properly.

We are going to add new functionality to the search tool, to go to a search results page, soon. That should help people find the events when the Javascript cannot function properly.


Seth Shoultes

  • Support Staff

September 19, 2012 at 11:50 pm

@jennifer it looks like the script is not able to retrieve events from your database (screenshot: http://www.screencast.com/t/n3AUyzWXnY). Are all of your events active? Do you have all the dates and times entered for the events?


Jacopo Lualdi

September 20, 2012 at 5:03 am

Hi Seth, I tried switching to Twenty Eleven theme and this still does not work…
I actually don’t care about the auto-complete (this would be cool, of course) the important thing is that the plugin finds my events.


Seth Shoultes

  • Support Staff

September 20, 2012 at 9:02 pm

Let me see if I can make the search redirect to a page that will display the search results. I think Dean already made a ticket for this anyways.


Alan Coyne

September 21, 2012 at 7:00 am

Hi,
Ive added the search to my site but not working. Autocomplete not showing and nothing appearing on search results page. I have latest update installed and have tried twenty eleven theme. Am I missing something? Site is locked down so cant post link.

thanks
Alan


Dean

September 21, 2012 at 7:15 am

@alan,

We are currently looking into the search issue, a ticket has been raised with the developers on it.

When you say auto complete isnt working, have you tried it with an event title or just generic words?


Alan Coyne

September 21, 2012 at 7:44 am

Hi Dean, I’ve tried both.


Dean

September 21, 2012 at 8:47 am

Ok thanks Alan, thats helped us get a clearer picture. It’s still with the devs and we will get back to everyone once we know more.


Cindi Landreth

October 4, 2012 at 4:12 pm

We have the same problem where the does not return any results. It just refreshes the page.

http://www.whatcomfolkschool.org/?page_id=2826&preview=true

Any ideas as to why?


Dean

October 5, 2012 at 12:36 am

Hi Cindi, you are linking a preview page so we cannot see it, it doesnt look like the page has been published yet.


Cindi Landreth

October 7, 2012 at 11:08 pm

Sorry. Look at this link: http://www.whatcomfolkschool.org/search


Dean

October 8, 2012 at 12:11 am

One issue is that your theme is trying to load a Themroller style from a directory that doesnt exist.

We have seen this a few times and believe it to be a conflict with the theme.

Go to your template settings page and disable any/all custom templates.

Please let us know if this does or doesnt work.


Jennifer Doyon

October 8, 2012 at 11:12 am

My event search still doesn’t work, despite earlier suggestions.

http://www.brookfieldlibrary.org/event-search/

Any new ideas?

Thanks –
Jennifer


Josh

  • Support Staff

October 8, 2012 at 3:31 pm

Hi Jennifer,

Have you tried ruling out any plugin conflicts? You can do this by deactivating other all the other plugins and reactivating them one at a time, each time checking the search page to see if that makes a difference.


Jennifer Doyon

October 8, 2012 at 4:13 pm

Hi, Josh –

I have tried this.

Jennifer


Chris Reynolds

  • Support Staff

October 8, 2012 at 4:25 pm

Jennifer —

Can you check your theme’s footer.php and see if there’s a line that says wp_footer();? It doesn’t look like your theme is loading the footer and that may be what’s causing the issue. Often plugins (Event Espresso included) will load scripts in the footer, but the only place I see any javascripts being loaded is in your header.


Jennifer Doyon

October 8, 2012 at 4:48 pm

Hi, Chris –

wp_footer(); was there, just not right before the ending body tag. I moved it to the correct position, but still no go. What seems odd to me is that I can’t get the event search to work even in twenty eleven.

Jennifer


Josh

  • Support Staff

October 8, 2012 at 4:51 pm

Did you try twenty eleven and deactivate all the plugins at the same time? If there is a potential theme conflict and a plugin conflict at play here, then both may need to be ruled out at the same time.


Cindi Landreth

October 8, 2012 at 5:17 pm

Dean,

In Template Settings set “Use Themeroller Style Sheets” = No

did not change behavior, still not working.


Cindi Landreth

October 10, 2012 at 11:48 am

Hello!

In the template settings I set “Use Themeroller Style Sheets” to “No”. I ran the page and it generated no errors. The themeroller css error went away. But the [EVENT_SEARCH] shortcut still does not behave as expected. This is my page. Please have a look. Please give an update as to what the solution should be. Thanks.

http://www.whatcomfolkschool.org/search


Josh

  • Support Staff

October 10, 2012 at 12:08 pm

Hi Cindi,

Can you test the event search with all non-EE plugins deactivated and with the default WordPress theme activated so we can rule out and theme/plugin conflict?

Thanks.


Cindi Landreth

October 11, 2012 at 10:55 am

Hi,

I used a fresh install of wordpress v3.4.2, with no plugins added (a subdomain). I installed only the event_espresso v3.1.27.P plugin, no other of your plugins like calender. The default theme is twenty eleven.

It worked. so how do I go about getting this to work in main site?


Josh

  • Support Staff

October 11, 2012 at 11:11 am

Hi Cindi,

You could first narrow down what is breaking the search function by installing the theme from the main site onto this subdomain site. If it still works with the new theme, then you can move onto testing the plugins by installing them one by one. If it breaks with only the theme installed, you can narrow down the theme functions by commenting out each function one-by-one in the theme’s functions file.


Cindi Landreth

October 11, 2012 at 1:08 pm

I tried a different approach.

I imported dbase from main site into subdomain site
I installed all plugins from main site onto subdomain, but deactivated them all except event express
I installed theme, but then set to twenty eleven

Event Search fails.

http://www.whatcomfolkschool.org/Stage/wordpress/search

I then deleted all of the plugins except event_espresso and deleted the theme I was using so only the default themes are present (still set to twenty eleven), and it still fails.

What admin settings could affect the EVENT_SEARCH? It seems that there is something in dbase that is preventing this from working.


Josh

  • Support Staff

October 12, 2012 at 7:29 am

I’m not aware of an option that gets recorded to the database that would affect the event search function.

It may be an issue with the actual event data, where one event is passing something that breaks the search or something is silently failing when it’s supposed to be pulling the event titles into the list of events. One thing I can think of is there may be an unescaped character in an event title somewhere. We escape these, but there may be something converting at some point that is breaking this. Are there any event titles that contain non-alphanumeric titles?


Cindi Landreth

October 12, 2012 at 9:40 am

I ran this query and it did not return any results:

SELECT * FROM wp_events_detail
WHERE event_name LIKE ‘%[^a-zA-Z0-9]%’


Josh

  • Support Staff

October 12, 2012 at 10:54 am

Hi Cindi,

It might help to see if there are any server errors when the event page is loaded up.

Can you check the server’s error log after pulling up the event search page?


Cindi Landreth

October 12, 2012 at 11:17 am

Josh, we are using a web hosting service. I have looked at cPanel/Logs/error log page, but it is empty. Do you know if there is a switch or setting that needs to be done to generate errors?


Josh

  • Support Staff

October 12, 2012 at 11:44 am

There is one in Event Espresso>General Settings that you can enable. It’s labeled ‘Use full logging?’ and will write to a log file in /wp-content/uploads/espresso/logs if the server’s permissions allows.

For general PHP error logs, you or the host may need to configure the php.ini file to allow error logs to record to a specific file. It would look something like this:

display_errors = Off
log_errors = On
error_log = "error.log"


Cindi Landreth

October 12, 2012 at 1:32 pm

below is the contents for expresso_log.txt when after I emptied it and refreshed the page that has the [EVENT_SEARCH] tag:

[10.12.12 19:28:07][espresso.php][] [REQUEST variables:
event_id =
wordpress_test_cookie = WP Cookie check
wp-settings-time-1 = 1350055602
wordpress_logged_in_f6c64185c0da3e30f6a7aa10706ee825 = Larry|1350228665|fd3364edfaf951de9e4249a8a59af3be
wp-settings-time-12 = 1348938085
wp-settings-12 = editor=tinymce
__utma = 189973485.444864306.1347287732.1349972722.1349977168.10
__utmz = 189973485.1349891301.8.2.utmcsr=eventespresso.com|utmccn=(referral)|utmcmd=referral|utmcct=/topic/events-search/page/2/
PHPSESSID = 452446d2d4a237c986253bb43b1dc84b
__utmc = 189973485
wordpress_logged_in_a3d11bacd7125b159dac572f351c3cd8 = Larry|1350148589|94bde490a33d07b9107788f0528f7ba9
]//end
[10.12.12 12:28:07][espresso.php][espresso_load_pricing_functions] []//end
[10.12.12 12:28:07][espresso.php][espresso_export_certificate] []//end
[10.12.12 12:28:07][espresso.php][espresso_export_ticket] []//end
[10.12.12 12:28:07][espresso.php][ee_init_session] []//end
[10.12.12 12:28:07][espresso.php][load_event_espresso_widget] []//end
[10.12.12 12:28:07][espresso.php][espresso_load_jquery] []//end
[10.12.12 12:28:07][espresso.php][espresso_load_EEGlobals_jquery] []//end
[10.12.12 12:28:07][espresso.php][add_event_espresso_stylesheet] []//end
[10.12.12 12:28:07][espresso.php][add_espresso_themeroller_stylesheet] []//end
[10.12.12 12:28:07][espresso.php][espresso_info_header] []//end
[10.12.12 12:28:07][espresso.php][espresso_load_javascript_files] []//end


Cindi Landreth

October 12, 2012 at 2:24 pm

There is this error in the error_log, which looks like it comes from shortcodes.php:

[12-Oct-2012 19:36:40 UTC] WordPress database error Unknown column ‘v.city’ in ‘field list’ for query SELECT e.*, v.city venue_city, v.state venue_state FROM wp_events_detail e WHERE e.is_active = ‘Y’ AND e.event_status != ‘D’ made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/twentyeleven/page.php’), get_template_part, locate_template, load_template, require(‘/themes/twentyeleven/content-page.php’), the_content, apply_filters(‘the_content’), call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, ee_create_autocomplete_search


Cindi Landreth

October 12, 2012 at 2:27 pm

Given the last two posts, I would like to add it seems no errors are produces when rendering my page that has the [EVENT_SEARCH] shortcode.


Cindi Landreth

October 12, 2012 at 2:51 pm

I found the problem. It is based on the sql error. the venue manager must be enabled.


Josh

  • Support Staff

October 12, 2012 at 3:11 pm

Hi Cindi,

The last error log you posted is actually very helpful. The event_search queries the venue city info. If there is a city entered for the venue, the city name will display next to the event name.

In which case, can you try turning the venue manager on?


Cindi Landreth

October 12, 2012 at 4:03 pm

exactly. the sql showed the problem. so I did enable the venue manager and it works. The error is in your code. Should not have need venue manager enabled to use EVENT_SEARCH.


Josh

  • Support Staff

October 12, 2012 at 4:13 pm

Hi Cindi,

I had the tab open when I finished replying to your other reply, and did not see your most recent reply until later.

I’ve already filed a bug report so the team is aware of it and can address this in a future release. Thanks for helping us track it down.


wayne christian

October 17, 2012 at 10:56 am

Hi When I enter a search the page just refreshes. I’ve done all the above, but this only fixes the auto complete, I dont ever get any search results. can you help?


Dean

October 17, 2012 at 11:29 pm

Hi Wayne,

The next release, due shortly if everything goes to plan, will improve the the way the event search works and resolve the refresh issue.

The support post ‘Events Search’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso