WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
Locations drop down not showing all available locations (8 posts)

  1. magicroundabout
    Member
    Posted 3 years ago #

    Sorry to keep you busy with another bug report...or two

    I'm using EM 4.0.8 now on a WP 3.1.3 multisite install. I'm not using global tables.

    I've got a small setup with just two locations and one event. Both locations are owned by the same user. I've checked the database and there doesn't seem to be anything unusual about either of the events (one of them has a postcode and the other doesn't, but I can't think how that would affect anything).

    If I have Use Dropdown for Locations turned on, I only see one of the locations in the dropdown when editing an event. If I don't use dropdown for locations both of the locations are visible.

    This is true when editing events both as an administrator (the person that owns the location and the event) AND as a network admin.

    I would also add that when editing events and locations in a multisite setup as a network admin you can select ANY user from across the blog/site network. Can this be restricted to only users from the local blog/site?

    Thanks

    Ross

  2. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    am about to update the dev version within the hour, if you can check that (or the next update if you take a while)

  3. magicroundabout
    Member
    Posted 3 years ago #

    Hey Marcus, thanks for the quick reply. I've updated to 4.0.82 but that's not fixed things. Not been able to check the dev version - will wait for the next update. Thanks for the fix!

    Ross

  4. magicroundabout
    Member
    Posted 2 years ago #

    Hi Marcus,

    Sorry - dropped the ball on this one.

    I've just updated to v4.13 and I'm still having this issue.

    In fact, I'm logged in as administrator, and, though I have 6 events in the database the edit locations screen is showing me:

    My Locations (3) | All Locations (4)

    I've tracked it down to locations which have no events assigned to them. These are not displayed in the locations list for me, and they are not displayed in the locations list when editing an event if I have the "Use dropdown for locations" option set.

    I even tested this by just creating a new location from the locations screen and it didn't appear in the edit locations list. When I added an event at that location, the location appeared.

    This only seems to happen on a multi-site blog (I tested it on a standalone development blog and the problem did not appear).

    I had a quick look at the code in classes/em-locations.php - I guess it must be something to do with the "blog id in events table" section of the build_sql_conditions function.

    You know the code better than I. Perhaps you could take a look at how the query gets built for a multisite and see if anything is wrong?

    Thanks

  5. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    thanks for pinpointing this, makes the job MUCH easier (assuming that it happens to mewhen i try :) )

    i'll look at this and update asap.

  6. magicroundabout
    Member
    Posted 2 years ago #

    As a fellow developer, I figure that the easier I make your life the more likely it is I'll get a quick fix.

    Might be wrong about where in the code this is happening, but hopefully you can re-create it easily.

    Thanks.

  7. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    i'm still not able to reproduce this error btw, hoping to squeeze that into the next update if u can find the problem :\

  8. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    check this link for the solution, not really clear cut but it'll work for you if that's what you want from your site - http://wordpress.org/support/topic/unable-to-add-locations-and-events-because-of-that-single-issue?replies=15

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic