Hi Stephen! My search page is working great, but in the source HTML I notice an error message that has me worried….

Note the highlighted text, the “Notice: Undefined variable…” message coming up with each listing – which fortunately is not displaying on the page. Since the search function is working fine, I guess I can safely ignore this, but it is a little worrisome – any idea what’s going on there?
Thanks!
adam

Adam Abrams
Yes there are two errors:
- You are using the variable ‘eo_event_classes’, but it hasn’t been defined
implode()
is being passed incorrect arguments
Both of those are on line 44 of your search-event-list.php
. They don’t appear in the default templates, so I assume they’ve been added by yourself(?).

Stephen Harris
Hmm, I ported over the revised structure/layout only (or so I thought) into search-event-list.php from my customized shortcode-event-list.php.
But I tried to stay out of the way of the actual loop code, variables, implosions, etc. and keep it the same as the original search template.
I get that the line in question is attempting to get the WP- and EO-generated attributes for the div… not sure how to fix this? Would rather not hard-code it though I guess that would work…
adam

Adam Abrams
Just to wrap this one up and tie it with a ribbon… I went back to the drawing board and corrected the errors, which were of course my own! Sorry to make the newbie mistake of assuming it must be the plugin code… 8^)

Adam Abrams
No worries, glad its sorted for you now.

Stephen Harris