WordPress.org

Ready to get started?Download WordPress

Forums

WP Document Revisions
[resolved] Permalink Error when upgrading to 3.3.2 (5 posts)

  1. gabrielqf
    Member
    Posted 2 years ago #

    Hello, i am having an error, all my files seen to be with the wrong permalink after upgrading to WordPress 3.3.2:

    http://mysite/documents/2012/05/.pdf
    http://mysite/documents/2012/05/.doc
    http://mysite/documents/2012/05/.docx

    The hashed files are in the uploads folder, no problems there, and older files are still with their permalinks doing well, but ANY new files with ANY filetypes give this error...

    Moreover the Multi-file uploader started to hang on processing/crunching, although the browser uploader goes smoothly.
    The document has attachments...

    Any Ideas ?

    http://wordpress.org/extend/plugins/wp-document-revisions/

  2. gabrielqf
    Member
    Posted 2 years ago #

    I have done many trials and that's what i came about :
    If the Document is either a Draft or is Pending no one can access the file or download it, if any other state is set through Edit-Flow the document will work perfectly, even if returned to a pending or draft state.

    So how can i fix that ?

  3. gabrielqf
    Member
    Posted 2 years ago #

    The problem continues if i disable Edit-Flow, so it doesn't seen to be their problem. No mentions for pending posts in wp-document-revisions. It may be an issue with wordpress and pending...

    The issue is: WordPress isn't writing post_name variable if post is pending or draft. I am looking for a way to change it either in document revisions or wordpress core.

    Maybe using the post_title as opposed to the post_name for the creation of the permalink ?

  4. gabrielqf
    Member
    Posted 2 years ago #

    The solution was to change post.php to don't allow pending and draft posts to not have a post name on line 2494. If there is a better solution without changing the wordpress core, please notify me.

  5. Ben Balter
    Member
    Plugin Author

    Posted 2 years ago #

    If you could please give the development version (zip), I believe it should fix your problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic