• 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 ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • have you done

    chmod -r 777
    ?

    Recursively?

    Thread Starter zepsweden

    (@zepsweden)

    Yes i have done chmod -r 777 wordpress, still the same error :(. Cant understand why it fails since all folders are 777 now. Must be somehing wrong with the update to 5.3 ??

    I did the update manually since the automatic one failed.

    Thread Starter zepsweden

    (@zepsweden)

    Any Clues ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with installing plugins after update to 5.3’ is closed to new replies.