WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Saving EM permalinks overwrites JSON API's permalinks (4 posts)

  1. Daedalon
    Member
    Posted 1 year ago #

    I finally was able to isolate another bug I stumbled first time upon a while ago. The symptom was that the permalinks of another plugin, JSON API, were occasionally rendered non-working and we couldn't use it to export data to our mobile application. After the second time I found the fix: it was to re-save the WordPress permalinks settings. Now the cause seems to be found as well. Here are the steps:

    1. Install JSON API and it serves your event data behind such URLs as example.com/api/controller/method/.
    2. Go to Events > Settings > Pages > Permalink Slugs and click Save Changes (All) without having changed anything.
    3. All JSON API URLs start serving only 404 Not Found error pages. No other URLs seem to be affected.
    4. Go to WP-Admin > Settings > Permalinks and click Save without having changed anything.
    5. JSON API URLs start working. No other URLs seem to be affected.

    At the moment it's easy to accidentally disable the mobile app for every user by updating EM permalinks without remembering the extra step of re-saving WP permalinks after that. If this is verifiable for the Events Manager developers and can be fixed in a future update, that'd be great.

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 1 year ago #

    Hi,

    sorry, we can't work on other plugins; however will try to check on this.

    thanks

  3. Daedalon
    Member
    Posted 1 year ago #

    The issue is likely either Events Manager saving its permalink rewrite rules in an aggressive way, or JSON API saving its rewrite rules in an overly fragile way that is prone to be overwritten.

    I don't know enough about the best practices for rewrite rule saving in plugins to identify which plugin might be the cause, but it would be great if the reason could be found and fixed.

  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    considering the other plugin was updated over a year ago, high chance it's them causing the problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags