WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
Unable to add locations and events because of that single issue (20 posts)

  1. vbk100
    Member
    Posted 2 years ago #

    I have successfully installed and configured the plugin settings. I have tried to post a test Event. But I could not able to finish it as the locations are not updating

    On locations page...I can able to enter the location. But it is not showing up in overall locations list . This it is not affecting the "Add event" section too.

    Can you please tell why the locations are not showing up in the list?

    WordPress version : 3.2.1
    Plugin Version : latest
    Multisite Environment ? Yes
    Buddypress ? No
    Did I Enabled Multisite options in events manager plugin options? No

    Thank you!

  2. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    not sure what you mean here, do locations actually show in the admin locations area?

  3. vbk100
    Member
    Posted 2 years ago #

    Sorry ! I didn't make my-self clear . I am adding the screen shots now

    In the 1 screen shot: I have added a Venue address and the system accepted it -http://i.imgur.com/gqPsg.png

    Screen shot 2 : The locations page doesn't show any venue added -http://i.imgur.com/6VDwc.png
    3 ) No location is shown up : http://i.imgur.com/IUaKx.png
    4) Failure of Event submission because, there are no locations - http://i.imgur.com/mmfQ4.png

    In simple words, the locations were accepted , but were n't shown up under 'locations' section

    Thank you!

  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    check your permission settings in Events ~ Settings ~ User caps and make sure you can see other locations or own the locations, that's probably why

  5. vbk100
    Member
    Posted 2 years ago #

    Marcus ,

    All the permissions are set to Administrator and editor by default. To replicate the issue, I have set the permissions to all user roles. But the locations issue was not solved yet

    The plugin is installed in a fresh installation of Multisite installation and just activated on one sub-site which I am talking about

    Can you please have a look at settings , if I give you the login details

  6. vbk100
    Member
    Posted 2 years ago #

    I think it is because of some other plugins on my WordPress installation. I will check what plugin is causing that issue

  7. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    i don't check free user installs but will look into it asap and see if this happens to me.

  8. jmek
    Member
    Posted 2 years ago #

    I am having the same problem (or something that shows up the same way) in my multisite installation at litcrawl.org (subsite: litcrawl.org/nyc). I have a bit more information which leads me to think that the issue is between the Locations UI and the database.

    When I go to Events - Locations - Add New and enter data, I get a message saying the location/venue was successfully added. However, when I go to the list of Locations, it shows that there are no venues. However, if I try to re-add the venue and look at the slug, it appears with a numerical prefix (galaxy-theatre-2, for example). So I think the location is being entered into the database but isn't being pulled up by the UI.

    Also, if I add an event, the location does show up as soon as I start typing the first few letters. (I'm not using drop-down for locations, but pre-entered locations do prefill as I type.)

    I'm running WordPress 3.2, Event Manager 4.13, and am signed in as the network administrator (I've also tried it as an Editor and a site administrator)

  9. vbk100
    Member
    Posted 2 years ago #

    jmek,

    Yes! My installation is of Multisite . But the problem is not because of Multisite and neither installation nor server settings. I could able to see the venues and create them without any problem. Just I had to chose 'Yes' under '~settings~General options~Use dropdown for locations?' So that venue adding problem has been solved.

    Regarding Locations display... Both my locations -http://domain.com/wp-admin/admin.php?page=events-manager-locations and all locations- http://mydomain.com/wp-admin/admin.php?page=events-manager-locations&owner=all tabs show only the locations used in Venues. They won't display the locations you add manually . I have created 5 indiviual locations manually using ~settings~locations~add new. But none of them displayed under the list and the location entered in a venue has been pulled up. I don't know if it is a default behavior or some thing missing .

    The location list box under ' settings~add event~location ' just takes the locations from the venues already added and not the locations added manually trough ~Settings~locations~add new. So @jmek , chose 'no' under '~settings~General options~Use dropdown for locations'.If you chose 'yes' and attempting to create first venue, you will never be able to create venues as the plugin try to grab the location from venues . I think Marcus should look into this problem(Location display added manually)

    @Marcus ,
    Can you tell me what is the actual purpose of this 'settings~locations~ add new ' option ?

  10. jmek
    Member
    Posted 2 years ago #

    @vbk100: Thanks for the extra info. I find I can add locations with events, which provides a workaround. BTW, switching between "Yes" and "No" for the "Use dropdown for locations" did not make it possible for me to add locations separately, as it appears to have done for you.

    @Marcus: I see at least one other thread in these forums where a mutlisite installation has difficulty with adding locations. Is this a known problem that will be addressed, or are we misunderstanding something?

  11. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    well, there's three people here with this problem, that's it. I need more ppl to act on it faster. if you can get back to me with the common denominator, I'll gladly fix it, very quickly if it's not complicated (probably isn't).

  12. pampfelimetten
    Member
    Posted 2 years ago #

    Hi Marcus,

    I have the same issue:
    Multiside Installation (subdomain)
    Plugin active on a single subdomain.

    We are using it since version 3.something, recently upgraded to the newest 4. If the user adds new locations, they are not shown in the location-list and not in the dropdown at the new-event page, but get created in the database. I cannot see any differences in the em_locations table between the old and new entries, but I can send you a db-dump, if you want to.

    Also, if I change the settings to NOT use the dropdown, all entries get pulled out of the database.

    All capabilites are checked for admins and editors.

    If you need any more info I'll be glad to help, as this bug really bugs me (or lets see, the user bugged by the bug bugs me ;-)

    Best wishes, and thanks for the great plugin!

  13. pampfelimetten
    Member
    Posted 2 years ago #

    Oh, and after reading this http://wordpress.org/support/topic/locations-drop-down-not-showing-all-available-locations

    I can confirm: Adding one event with the new location makes it appear in the location list. Magic!

  14. pampfelimetten
    Member
    Posted 2 years ago #

    When I echo the sql in file classes/em-locations.php it outputs:

    SELECT
    hp2006_19_em_locations.location_id FROM hp2006_19_em_locations LEFT JOIN hp2006_19_em_events ON hp2006_19_em_locations.location_id=hp2006_19_em_events.location_id WHERE (<code>recurrence</code>!=1 OR <code>recurrence</code> IS NULL) AND (<code>blog_id</code>=19)
    GROUP BY hp2006_19_em_locations.location_id ORDER BY location_name ASC

    Using that in phpmyadmin gives me the list with entries missing.
    If I delete the "AND (blog_id=19)" it gives me the result I'm wanting. But every entry in the events table has blog_id 19.
    So here's the error: It leftjoins the event-table and thereby can only select locations, where there already is an event with the location ID used. Why are you doing a left join on the events page? Is that for the option of using a global table? I have that disabled though.

    I think we are shortly before squishing that bug ;-)

  15. pampfelimetten
    Member
    Posted 2 years ago #

    To all the others with the same problem, try this quick fix and see if it helps

    function fix_em_for_multisite($conditions){
    	unset($conditions['blog']);
    	return $conditions;
    };
    add_filter('em_locations_build_sql_conditions', 'fix_em_for_multisite');
  16. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    was playing around with this just now... it's a gray area since everyone here assumes that events SHOULD be shared across sites. If I change it, I'll get another group of you complaining about the changes :)

    since i'm thinking about converting stuff to posts, I'd rather not touch this just now and have a think about the best way to go about it.

    If someone has an issue with this, please use pampfelimetten's solution, which works.

    thanks pampfelimetten for the contribution!

  17. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    btw, the left join isn't an issue since left join includes records with empty event values (i.e. no event)

    it's just a blog_id bug I think.

  18. vbk100
    Member
    Posted 2 years ago #

    was playing around with this just now... it's a gray area since everyone here assumes that events SHOULD be shared across sites. If I change it, I'll get another group of you complaining about the changes :)

    My problem is just the locations unavailability and there is no no other problem except that. So I don't expect any other change in this issue. I never asked about event sharing across sites

    Anyhow, I am using the plugin and it is working great with multisite.

    Thank you !

  19. vbk100
    Member
    Posted 2 years ago #

    Another issue I have found besides the current one.

    The "add a new location" link on "Anonymous event submissions" page(Events_form) throws a 404 error page

    Thanks !

  20. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    @vbk100 post new problems on a new topic pls

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic