• Resolved Daedalon

    (@daedalon)


    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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

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

    thanks

    Thread Starter Daedalon

    (@daedalon)

    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.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Events Manager] Saving EM permalinks overwrites JSON API's permalinks’ is closed to new replies.