Community Events submission form replicates itself in secondary sidebar

Home Forums Calendar Products Community Events Community Events submission form replicates itself in secondary sidebar

Viewing 15 posts - 1 through 15 (of 25 total)
  • Author
    Posts
  • #27959
    Victoria
    Participant

    The Community Events form works fine, but it also shows up in the secondary sidebar on my site. You can see it on this page:
    http://victoriachamber.org/events/community/add/

    It overlaps “Welcome New Members” over on the right-hand side.

    I somehow submitted this before checking the appropriate boxes, but I did deactivate all plugins and switch to the default theme, and still had this issue. The site is build on the Genesis framework. I downloaded the sample Genesis theme with customizations from the tutorial you had a while back, and I put the “events” folder into my theme folder. I tried removing that folder after having deactivated plugins, and it didn’t fix the problem.

    #27966
    Casey
    Participant

    Thanks for reaching out and sorry to hear you’re having issues. Can you send me a screenshot of the widgets that you have enabled in your sidebar? Also, what version of the Community Add-on are you running?

    These questions should help me to troubleshoot your issue further. Thanks!

    #28141
    Victoria
    Participant

    I’ve narrowed it down – it’s one of the Genesis Featured Widget Amplified widgets. I have two enabled in the sidebar but only one of them is conflicting, which is weird.

    Here’s a screenshot – first, showing the current widgets in the sidebar – although even if it’s just the one widget, the problem still occurs. Bottom part of the screenshot shows you the settings I configured within the Featured Widget Amplified. I’ve got those same settings in the widget below it so I really don’t get why this is happening.

    View post on imgur.com

    Version 1.0.4 of Community Events.
    Version 2.0.10 of The Events Calendar PRO

    #28146
    Casey
    Participant

    Were you able to resolve this issue, or did you just remove the widget? I’m not seeing it happening any more on your Event Submission page.

    #28166
    Victoria
    Participant

    I apologize. I’d left the widget configured to “no content” after I made the screenshot. I switched it back to “show content” and the issue has returned. I’ll leave it that way for now.

    #28194
    Jonah
    Participant

    Hi Victoria,

    What does the Featured Widget Amplified display? Would you be able to provide us a copy of the theme for evaluation/testing purposes? I have the Genesis framework but not this particular theme… You can email to pro [at] tri [dot] be and reference this thread and attn. to me please.

    Thanks,
    Jonah

    #28216
    Victoria
    Participant

    I emailed you (the email will come from Dorian Speed) with a copy of the theme. The Genesis Featured Widget Amplified pulls posts from a category (in this case, “New Member Announcements”) and shows the post title and the content. The community events form replicates itself in the sidebar whether I have “show content,” “show excerpt,” or “show content limit” selected. It doesn’t happen if I have it set to “No Content.” So I assume what’s happening is that the widget somehow thinks that the form is part of the content it should be displaying?

    Thanks for your help!

    #28263
    Jonah
    Participant

    Hi Victoria,

    Thanks, I was able to duplicate this on my end and am going to need to bring a developer in to take a look. This has cropped up before but it was theme related but this seems specific to the widget itself. Stay tuned!

    – Jonah

    #28267
    Victoria
    Participant

    Okay – thanks!

    #28353
    Todd
    Participant

    Hi. I am having EXACTLY the same problem with Community Events. From my troubleshooting, I think it’s related to a conflict with WP_Query. I am not using Genesis. I am building a custom theme, based on Underscore_s (from automattic).

    In my site, I have a custom WP_Query in my header.php, and another in my footer.php, which show content from other pages in the header and footer of my site.

    But on my Community Events pages(*), and ONLY on those pages, the content in my site’s header and footer that SHOULD display the result of my custom WP_Query, is MISSING, and instead, i see a DUPLICATE of the content displayed by Community Events.

    *Community Events pages:
    1) http://site.com/events/community/add/
    2) http://site.com/events/community/list/ (which for some reason, automatically redirects to)
    http://site.com/events/community/list/page/1/

    Hopefully this sheds light on Victoria’s problem, and I hope for a solution myself! I’d be more than happy to help troubleshoot, to facilitate a solution.

    #28354
    Todd
    Participant

    Hi again. One more thought about this. I also had exactly the same issue with another plugin for this same site — bbPress. But I solved that one. It turned out to be a conflict with the SLUG i had entered in WP-Admin > Settings > Forums > Archive Slugs > Forums Base (the bbPress settings page). I had the slug as “forums”, which i guess was the same name that bbPress used for the CPT (Custom Post Type) for the Forum post-type. So when i changed my slug to “theforum”, the problem was solved.

    Perhaps Community Events has a similar issue. But it does not seem to have an admin-field to set the slug for the CPT base.

    #28406
    Todd
    Participant

    I think the issue comes from WP-ROUTER, used in the-events-calendar-community-events/lib/tribe-community-events.class.php (line 536, and others). The readme file (the-events-calendar-community-events/vendor/wp-router/readme.txt) says that:

    … “page_callback” is a callback to use for dynamically generating the contents of the page. The callback should either echo or return the contents of the page (if both, the returned value will be appended to the echoed value). If `FALSE` is returned, nothing will be output, and control of the page contents will be handed back to WordPress …

    Perhaps this can somehow be limited to JUST the MAIN QUERY for the page, not any secondary queries done using WP_Query?

    #28427
    Jonah
    Participant

    Hi Todd,

    Thanks for your input. Our developers are still taking a look at this and I’ve updated the ticket to have them take a look at this thread and the data you’ve shared. Stay tuned.

    Thanks,
    Jonah

    #28429
    Todd
    Participant

    Great, thanks Jonah. By the way, when i said that hopefully wp-router can be limited to the “main” query… you probably can’t just use is_main_query() to determine that, since (at least in my site), those custom WP_Query calls (in my header and footer) also seem to be TRUE for is_main_query(). That doesn’t actually seem right or good.. but that’s what i’m seeing. Again, i’m happy to help troubleshoot.

    #28527
    Timothy Wood
    Participant

    Todd & Victoria,

    This is a bug that we are aware of due to how WP_Router injects the form into the_content() tags. We experienced this conflict even within some of the plugins in our suite. You are correct in assuming that currently using the_content() is a suboptimal method for hooking the form into the display and as such we are in the process of removing the WP_Router library from use in our community plugin because of this and a few other incompatible scenarios.

    In the interm, one way around this would be a custom sidebar for the community submission page to reduce the use of the_content() being used by widgets until we can release the updated community plugin.

    Cheers,
    Tim

Viewing 15 posts - 1 through 15 (of 25 total)
  • The topic ‘Community Events submission form replicates itself in secondary sidebar’ is closed to new replies.