Invisible error message

This topic contains 4 replies, has 2 voices, and was last updated by  Stephen Harris 9 years, 4 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #19636

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

    screenshot of some of the HTML code
    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
    #19639

    Yes there are two errors:

    1. You are using the variable ‘eo_event_classes’, but it hasn’t been defined
    2. 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
    #19641

    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
    #19676

    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
    #19683

    No worries, glad its sorted for you now.

    Stephen Harris
Viewing 5 posts - 1 through 5 (of 5 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.