Events Made Easy Forums Bug fixed or feature request implemented yikes — all our ticket prices are not showing because of the dollar sign

Tagged: 

Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #44087
    Anonymous
    Inactive

    I’m not sure how long ago this started being a problem, but for most events we list ticket prices, and they’re now not showing. I’ve just updated to the current release (1.2.4) and it’s still a problem. We have a year of events—too many events to go into each one and escape the dollar sign (besides, that’s a hack). For examples, here are a couple events:

    http://www.francocenter.org/events/53/erica-brown-and-the-bluegrass-connection/

    http://www.francocenter.org/events/35/new-york-funk-exchange-featuring-serena-fortier-and-the-wall-street-horns/

    Notice that they read something like “TICKETS (General Admission): advance / at the door “? There should be dollar amounts before “advance” and “at the door”

    Is there something I can edit to fix this? Any help appreciated!

    #50827
    Franky
    Keymaster

    Now that’s weird. EME doesn’t touch event text in any way, so I’m guessing something else in wordpress is doing this. On my site everything works just fine, so you might want to try to disable other plugins one by one until you find the guilty one.

    Maybe I’m overlooking something, but here it works just fine …

    #50828
    Anonymous
    Inactive

    This is odd. It’s not happening on any other page, just event pages. And when I turn off every other plugin, it’s still a problem. I’m stumped.

    #50829
    Anonymous
    Inactive

    Actually, it is happening on other pages when event summaries appear, such as the homepage for the comedy series on Feb 7 (http://www.francocenter.org). We had to escape the dollar sign because it’s on the homepage and coming up next—but otherwise the dollar amounts don’t show. So it’s only happening in EME events—whatever page they’re on.

    #50830
    Franky
    Keymaster

    Ok, I’m able to reproduce it: seems to be only if you have “$” followed by a number …

    #50831
    Franky
    Keymaster
    #50832
    Anonymous
    Inactive

    Great!! So can I just replace the contents of those files with the contents provided? Will this also be included in the next release or will I have to manage those files separately?

    #50833
    Franky
    Keymaster

    Just replace the strings in those files (preg_replace lines being replaced by str_replace lines) and you should be good to go.

    There are some other minor bugs being resolved and then I hope to release on Sunday.

    #50834
    Anonymous
    Inactive

    Super. Thanks for your help!

    #50835
    Anonymous
    Inactive

    Ah, well, this worked to fix the prices (yay!), but it seems to have introduced a new problem. It looks like it might have to do with custom attributes.

    Here’s what the page looks like with missing ticket prices:

    http://www.francocenter.org/events/53/erica-brown-and-the-bluegrass-connection/

    And here’s a snap of what that event looks like after the fix:

    http://www.francocenter.org/ticket_prices_fixed.jpg

    I use an attribute as a class to hide that date span when it’s only one day long, but if the attribute is missing, it shows and appears broken because of other attributes.

    #50836
    Franky
    Keymaster

    it seems more like everything with “{” is not being replaced now. Let me check …

    #50837
    Franky
    Keymaster

    Changing everywhere

    $orig_result = preg_quote($result,'/');

    into

    $orig_result = $result;

    fixes that … but I’m going back to check why I switched to preg_quote+preg_replace in the first place.

    #50838
    Franky
    Keymaster

    I think it was a bordercase with single letter-replacements. So for now, I’ll switch back to the less cpu-intensive str_replace and I’ll remove the preg_quote later this evening.

    #50839
    Franky
    Keymaster

    Ok, the last part of the fix is here:

    http://plugins.trac.wordpress.org/changeset/848970

    #50840
    Anonymous
    Inactive

    Unfortunately, I changed

    $orig_result = preg_quote($result,’/’);

    into

    $orig_result = $result;

    and the ticket prices do not show.

    Sorry to be presenting such an unsquashable bug!

    #50841
    Franky
    Keymaster

    No no, you need to do both changesets: the preg_replace=>str_replace one and the one removing the preg_quote.

    #50842
    Anonymous
    Inactive

    Ah, I get it. That did the trick. Thank you!!

Viewing 17 posts - 1 through 17 (of 17 total)
  • The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.
Scroll to Top