Problem with installing plugins after update to 5.3
-
Problem with installing plugins after update to 5.3
I cant install themes either, i have disabled all plugins as well and tried but still the problem remaings.
I am using PHP 7.4 now and i have done chmod 777 (on the whole folder of wordpress just to troubleshoot). Still i am getting error on the new file class-wp-filesystem-ftpexp.php.
I have been trying to troubleshoot this problem but i am unable to solve it.
[20-Nov-2019 05:00:49 UTC] PHP Warning: ftp_mkdir(): Permission denied. in /var/www/html/sveanews/wordpress/wp-admin/includes/class-wp-filesystem-ftpext.php on line 539
“The code is like this for line 539 ”
public function mkdir( $path, $chmod = false, $chown = false, $chgrp = false ) {
$path = untrailingslashit( $path );
if ( empty( $path ) ) {
return false;
}if ( ! ftp_mkdir( $this->link, $path ) ) {
return false;
}
$this->chmod( $path, $chmod );
return true;
}[20-Nov-2019 05:00:49 UTC] PHP Warning: ftp_rmdir(): Permission denied. in /var/www/html/sveanews/wordpress/wp-admin/includes/class-wp-filesystem-ftpext.php on line 390
“And for line 390, the code is like this”
public function delete( $file, $recursive = false, $type = false ) {
if ( empty( $file ) ) {
return false;
}
if ( ‘f’ == $type || $this->is_file( $file ) ) {
return ftp_delete( $this->link, $file );
}
if ( ! $recursive ) {
return ftp_rmdir( $this->link, $file );
}$filelist = $this->dirlist( trailingslashit( $file ) );
if ( ! empty( $filelist ) ) {
foreach ( $filelist as $delete_file ) {
$this->delete( trailingslashit( $file ) . $delete_file[‘name’], $recursive, $delete_file[‘type’] );
}
}
return ftp_rmdir( $this->link, $file );
}Do you have any clues ? Since the whole wordpress folder is now 777 it should be possible for any application to make files ?
- The topic ‘Problem with installing plugins after update to 5.3’ is closed to new replies.