WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Submit Event form causing sidebar issues (12 posts)

  1. crimay71
    Member
    Posted 6 months ago #

    I have installed the Event Manager plugin and it works great. However I am having one problem that I can't resolve. I created the Submit Event page using the tag [event_form]. This form works fine. I can assign a sidebar to the page and it's fine. However, when I go to the submit-event/?action=edit function it breaks the sidebar.

    The sidebars work fine with all other pages using the Event tags. So there's something with this particular form that is causing my sidebar to break. Any help would be greatly appreciated.

    My developer site is dev.davidsoncommunitycalendar.com. You will probably need to signup to see the error. A screenprint of the page is here:

    http://goo.gl/pNPGEI

    http://dev.davidsoncommunitycalendar.com/submit-event/ (sidebar works great)

    http://dev.davidsoncommunitycalendar.com/submit-event/?action=edit (sidebar broken)

    https://wordpress.org/plugins/events-manager/

  2. caimin_nwl
    NetWebLogic Support
    Posted 6 months ago #

    Are you using custom templates?

  3. crimay71
    Member
    Posted 6 months ago #

    Yes, I added in a website field and extra text information in the event-editor.php file. However, it was still breaking it using the original file. Just to be on the safe side, I just downloaded another copy of the plugin and uploaded the event-editor file. Still broke. I then removed all custom css from my stylesheet and it's still broke.

  4. caimin_nwl
    NetWebLogic Support
    Posted 6 months ago #

    Does it work ok with the default theme?

  5. crimay71
    Member
    Posted 6 months ago #

    No. I activated theme Twenty-Twelve and it does the exact same thing.

  6. caimin_nwl
    NetWebLogic Support
    Posted 6 months ago #

    Just tested this with Twenty Fourteen and it's not breaking the sidebar.

    Are you using BuddyPress by any chance? I've a feeling there was bug along these lines that caused layout issues with some forms in BP.

    There's a new version out today, so that may fix the issue.

  7. crimay71
    Member
    Posted 6 months ago #

    No, it does the same thing when I activate Twenty Fourteen. http://prntscr.com/2qg275

    Not using BuddyPress either. For now I will have to disable the sidebar until I can find a fix to the bug. Weird that it only happens on the ?action=edit page.

  8. crimay71
    Member
    Posted 6 months ago #

    Actually, now that I think about it I can't remove the sidebar because I need it on the submit-event page. So I'm back to square one.

  9. crimay71
    Member
    Posted 6 months ago #

    I found what's causing the sidebar to break. The main and row divs are closing before the Sidebar is called. Where it should be closing AFTER the sidebar - which it does correctly on all other pages. I'm not sure why it's happening or where in the template I can fix it. I have been searching through event-editor.php to see if there are extra divs that are causing an issue.

    http://prntscr.com/2qghvg (submit-event/?action=edit: main divs closing BEFORE sidebar)

    http://prntscr.com/2qgi73 (Submite-Event page: main divs closing AFTER sidebar)

  10. crimay71
    Member
    Posted 6 months ago #

    I found the cause to the sidebar break. The theme main and row divs are closing BEFORE the sidebar is called in the submit-event/?action=edit page. The divs are called correctly everywhere else, including the submit-event page.

    I have searched through the event-editor.php file for extra divs that could be causing the break but not finding anything. I can't figure out why this would be causing my divs to close before the sidebar. I have print screens below.

    http://prntscr.com/2qghvg (submit-event/?action=edit: main divs closing BEFORE sidebar and causing the break)

    http://prntscr.com/2qgi73 (submit-event page: main divs closing AFTER sidebar, the way it's suppose to be)

  11. crimay71
    Member
    Posted 6 months ago #

    I FIXED IT. Your event-editor.php file had an extra </div> in it.

    ` <?php if(get_option('dbem_categories_enabled')) { em_locate_template('forms/event/categories-public.php',true); } ?>
    </div>
    </div>' // I REMOVED THIS EXTRA DIV //

    Removing the extra div fixed the sidebar error. To make sure this wasn't my error I downloaded the plugin again today and it's in the file.

  12. Minnnnn
    Member
    Posted 6 months ago #

    Thank you! I thought I was going mad...your workaround fixed it for me too crimay.

Reply

You must log in to post.

About this Plugin

About this Topic