• Resolved esroyo

    (@esroyo)


    On “Buddypress member > Events > My Profile” section, when the user still has no events, a link titled “Add Event” (URL: members/USERNAME/events/my-events/edit/) is shown.

    On “Buddypress member > Events > My Events” section, there is a “Add New” button (URL: members/USERNAME/events/my-events/?action=edit).

    The former does not work. The later does.

    My question is: was the first URL an slip and it should be changed to be the same as the second one? or, I have some problem in the URL events manager rewriting and the “…/edit/?$” is being lost in the wild?

    Thanks for your help.

    https://www.ads-software.com/plugins/events-manager/

Viewing 9 replies - 1 through 9 (of 9 total)
  • caimin_nwl

    (@caimin_nwl)

    What version of BuddyPress, WordPress and Events Manager are you using? Thanks.

    Thread Starter esroyo

    (@esroyo)

    wordpress 3.8.1
    buddypress 1.9.2
    events manager 5.5.2

    Thanks.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    Have you tried to temporarily:

    – deactivating all other plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the default theme to rule out any theme-specific problems

    Thread Starter esroyo

    (@esroyo)

    Deactivating all other plugins + change to default theme didn’t make any difference.

    I just want to know if the first link is supposed to work, or it is a mistake in the source. It is strange to me that two links with the same function and so closely located differ in the URL this way.

    The first one is located at file ./templates/buddypress/profile.php:22

    <a href="<?php echo $bp->events->link . 'my-events/edit/'; ?>"><?php _e('Add Event','dbem'); ?></a>

    Thanks.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    this should worked, do you have sample screenshots of what do you see for us to easily visualize this?

    thx

    Thread Starter esroyo

    (@esroyo)

    Sorry, I can’t provide screenshots. To put it simple, the thing is that this link does not work:

    https://mysite.com/wordpress/members/USERNAME/events/my-events/edit/

    And this does:

    https://mysite.com/wordpress/members/USERNAME/events/my-events/?action=edit

    The first one is not caught by wordpress, so it simply redirects to a “not found page”. Do you mean it should really work?

    Have you tried re-saving your permalinks?

    I am encountering this exact same situation and was wondering how it was resolved?

    I am not very versed in PHP, but I think I figured it out. I removed the “/edit/” from line 26 and it redirected appropriately after.

    located at file ./templates/buddypress/profile.php:22 NOW READS:

    <a href="<?php echo $bp->events->link . 'my-events/'; ?>"><?php _e('Add Event','dbem'); ?></a>

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘"Add Event" link from buddypress does not work’ is closed to new replies.