Title: problem with Preview
Last modified: March 8, 2017

---

# problem with Preview

 *  Resolved [Tenc](https://wordpress.org/support/users/tenc/)
 * (@tenc)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/problem-with-preview/)
 * Hi,
    i’m using your plugin and it’s great but i have a problem with the version
   1.0. The preview of all types of post (article, page, posts types) unpublished(
   draft or scheduled) are not visible. Before updating the plugin was fully functional,
   and if I disable the plugin works everything correctly Do you have a solution
   for that problem? Thank You!

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

 *  Plugin Author [Maciej Bis](https://wordpress.org/support/users/mbis/)
 * (@mbis)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/problem-with-preview/#post-8889572)
 * Hi [@tenc](https://wordpress.org/support/users/tenc/),
 * sorry for all the inconvenience. I guess that the problem is due to the fact 
   I enabled URI editor box for auto-drafts & drafts.
 * I am not certain, if you cannot access preview URL or if the preview URL is not
   displayed in “Edit Post/Page/…” admin page?
 * If you cannot access preview page (it returns 404 error), could you append `?&
   debug_url=1` to your preview URL and post the output here?
 * Best Regards,
    Maciej
 *  Thread Starter [Tenc](https://wordpress.org/support/users/tenc/)
 * (@tenc)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/problem-with-preview/#post-8889697)
 * This is the output:
 * _{“old\_query\_vars”:{“preview”:”true?”,”error”:”404″},”new\_query\_vars”:{“name”:””,”
   post\_type”:”prodotto”,”prodotto”:””,”do\_not\_redirect”:1}}_
 * in other cases you will be redirected to the homepage.
 *  Plugin Author [Maciej Bis](https://wordpress.org/support/users/mbis/)
 * (@mbis)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/problem-with-preview/#post-8889763)
 * Does the preview URL is the same when my plugin is disabled & enabled?
 * Could you post sample preview URLs?
 *  Thread Starter [Tenc](https://wordpress.org/support/users/tenc/)
 * (@tenc)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/problem-with-preview/#post-8889803)
 * No, the url is different.
    plugin enabled –> /prodotto/olive-allascolano/?preview
   =true plugin disabled –> /?post_type=prodotto&p=5768%2F&preview=true
 *  Plugin Author [Maciej Bis](https://wordpress.org/support/users/mbis/)
 * (@mbis)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/problem-with-preview/#post-8889952)
 * [@tenc](https://wordpress.org/support/users/tenc/)
 * please replace the contents of this file:
    `wp-content/plugins/permalink-manager/
   includes/core/permalink-manager-uri-functions-post.php`
 * with this code:
    [https://gist.github.com/maciejbis/f2ac70847889aa3ce3a3fcb92b5db82f](https://gist.github.com/maciejbis/f2ac70847889aa3ce3a3fcb92b5db82f)
 * I added additional condition to exclude preview URLs from permalink filters in
   _custom\_post\_permalinks()_ function. Let me know if it helps.
 *  Thread Starter [Tenc](https://wordpress.org/support/users/tenc/)
 * (@tenc)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/problem-with-preview/#post-8892658)
 * I tried but the result is always the same.
 * the url is –> /prodotto/olive-allascolano/?preview=true
 *  Plugin Author [Maciej Bis](https://wordpress.org/support/users/mbis/)
 * (@mbis)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/problem-with-preview/#post-8894089)
 * Hi [@tenc](https://wordpress.org/support/users/tenc/)
 * I am not able to reproduce the issue, would you be able to prepare a copy of 
   your WordPress environment and provide me with temp. FTP access to wp-content/
   permalink-manager directory on server.
 * If yes, please contact me via contact [at] maciejbis.net
 *  Thread Starter [Tenc](https://wordpress.org/support/users/tenc/)
 * (@tenc)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/problem-with-preview/#post-8894198)
 * I wrote you an email
 *  Thread Starter [Tenc](https://wordpress.org/support/users/tenc/)
 * (@tenc)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/problem-with-preview/#post-8934270)
 * Hi Maciej, i have another problem with the plugin… i send you an email about.
 * Giacomo

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

The topic ‘problem with Preview’ is closed to new replies.

 * ![](https://ps.w.org/permalink-manager/assets/icon.svg?rev=2625166)
 * [Permalink Manager Lite](https://wordpress.org/plugins/permalink-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/permalink-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/permalink-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/permalink-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/permalink-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/permalink-manager/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Tenc](https://wordpress.org/support/users/tenc/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/problem-with-preview/#post-8934270)
 * Status: resolved