Support » Plugin: Permalink Manager Lite » Bug Report – Error 400 in Permalink Manager Lite Version with Custom Pos

  • Resolved hoatiennguyen


    Dear Permalink Manager Lite Development Team,

    I am writing to report a bug that I have encountered in your plugin, Permalink Manager Lite, version The issue occurs when I am working with custom post types, specifically products, in my WordPress site.

    Here are the steps to reproduce the issue:

    1. Create a new product (custom post type) and assign a category to it.
    2. Draft the product.
    3. Restore the product.
    4. Click on the ‘Quick Edit’ button and publish the product.
    5. Click on the ‘Edit’ button.
    6. Click on ‘View Products’.

    After following these steps, I encounter a 400 error. The permalink format for the products is as follows: products/%category_product%/%products%. I have tried these steps with other post types and did not encounter the same issue.

    Additionally, I have turned off the ‘Exclude drafts & pending posts’ setting in the plugin.

    I have also tested this on an older version of the plugin (2.4.1) and did not encounter the same problem, which leads me to believe that this is a bug specific to version

    I would appreciate it if you could look into this issue and provide a fix or workaround.

    Thank you for your attention to this matter.

    Best regards,
    Tien Nguyen

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Maciej Bis


    Hi @hoatiennguyen

    Sorry for the inconvenience! Could you by any chance reproduce all the steps, capture the screen and record it as a video?

    Best regards,

    Plugin Author Maciej Bis


    I just analyzed the code modifications I made in the version.

    I think that the source of the problem here is how Permalink Manager saves custom permalinks for draft items.

    Until the 2.4.0 version, once the draft was saved, the plugin always generated and saved the custom permalink automatically. As of version, users can still manually set a custom permalink using the “Permalink Editor” although the final permalink should only be generated and saved after the post has been published. That is why when you save the draft, the “Custom permalink” field is empty, but you can manually set it (if needed).

    Could you check if the custom permalink for a new product is saved in the “Array with URIs” displayed in the Debug section (wp-admin/tools.php?page=permalink-manager&section=debug)?

    If possible, please also check how the product’s permalink look like when Permalink Manager is deactivated.

    • This reply was modified 2 months ago by Maciej Bis.
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.