• Hi community.

    I am running into an issue when i upgrade WordPress version 4.5.3 to version 4.6.

    The information i receive after the upgrade has failed is:

    “Could not copy file.: wp-includes/class-wp-post-type.php”

    Have anybody struggled with that issue before and knows how to fix it?

    Thanks in advance!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator James Huff

    (@macmanx)

    In this case, you’ll need to upgrade manually: https://codex.ww.wp.xz.cn/Upgrading_WordPress_Extended

    Then, report the issue to your hosting provider as it sounds like some of the server security is way too overzealous.

    Thread Starter Dougless

    (@dougless)

    Hi James.

    Thank you for your reply. I appreciate it.
    However, a manual upgrade was not the solution i was hoping for, but the thought had crossed my mind and you are probably right.

    I am hosting WordPress myself using an Ubuntu solution. I am wondering, if the issue could be caused by missing file permission or missing group rights within the ‘Include’ folder, since WordPress is unable to copy the PHP file.

    Has anybody else experienced this issue yet?

    Moderator James Huff

    (@macmanx)

    A few folks here any there report similar occasionally, typically it’s a different file or directory each time, but we’re up to nearly 5 million upgrades and installations now https://ww.wp.xz.cn/download/counter/ so it’s very likely not a problem with the bundle itself.

    I’d suggest checking your server error log.

    I’m a little late to this party but I had the same issue on my test server. Turned out that the account was so close to it’s disk space limit that it could not copy all of the files. I added additional disk space and the update completed normally.

    I can also confirm that lack of disk space caused this error. Adding additional storage quota resolved the error and upgrade completed normally.

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

The topic ‘WP 4.6 – Could not copy file.: wp-includes/class-wp-post-type.php’ is closed to new replies.