• Resolved philiplp

    (@philiplp)


    Hey,

    So I am encountering an error now that I have updated my wordpress core to 4.0 (or more specifically, the fact that I have tried to update).

    I do not know if this is something to do with the theme, or anything you can help with, but I’m posting here just in case it is.

    When I click on the ‘update wordpress’ button, it starts loading and then I get the following error:

    PHP Warning: copy(G:/PleskVhosts/escort-erotica.com/spacestationapes/wp-admin/includes/update-core.php): failed to open stream: Permission denied in G:\PleskVhosts\escort-erotica.com\spacestationapes\wp-admin\includes\class-wp-filesystem-direct.php on line 217

    I have spoken to my hosts, but they say there’s nothing they can do on their end. The permissions seem to be set right for the file in question.

    Line 217 is:

    $rtval = copy($source, $destination);

    Which is part of the following code:

    function copy($source, $destination, $overwrite = false, $mode = false) {
    		if ( ! $overwrite && $this->exists($destination) )
    			return false;
    
    		$rtval = copy($source, $destination);
    		if ( $mode )
    			$this->chmod($destination, $mode);
    		return $rtval;
    	}

    Any advice on this matter would be gratefully received.

    Thanks ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter philiplp

    (@philiplp)

    Problem solved. It was an issue to do with permissions, I hadn’t given the wordpress user the ability to write as well as read files on my server.

    Will leave this here just in case anyone else suffers this issue, as there didn’t seem to be anyone addressing it online anywhere!

    Hello,philiplp, or anyone aout there!

    I’ve got the same proble at line 200. This is what Word press tells me whilw triyng to

    Update WordPress
    Downloading update from https://downloads.www.ads-software.com/release/wordpress-4.0-new-bundled.zip…
    
    Unpacking the update…
    
    Warning: copy(/Applications/XAMPP/xamppfiles/htdocs/wordpress/wp-admin/includes/update-core.php) [function.copy]: failed to open stream: Permission denied in /Applications/XAMPP/xamppfiles/htdocs/wordpress/wp-admin/includes/class-wp-filesystem-direct.php on line 200
    Could not copy files.
    
    Installation Failed

    How dis you solve the fact that your server can write as well as read files?

    Thank you very much!!
    Carlos C.

    Well, this is what line 200 says:
    $rtval = copy($source, $destination);
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Warning with new 4.0 update’ is closed to new replies.