Search code examples
wordpresspermission-denied

mkdir() error in wordpress: Permission denied ReduxCore


I'm hosting a wordpress website on godaddy, but late renewal cause hosting is being remove, after i recover, i get this error:

Warning: mkdir(): Permission denied in /home/mickaeladmin/public_html/en/wp-content/themes/getphoto/admin/redux-framework/ReduxCore/inc/class.redux_filesystem.php on line 104

and i found the line of the code is

elseif ( $action == 'copy' && ! isset( $this->filesystem->killswitch ) ) {
                    $res = $wp_filesystem->copy( $file, $destination, $overwrite, $chmod );
                    if ( ! $res ) {
                        $res = copy( $file, $destination );
                        if ( $res ) {
                            chmod( $destination, $chmod );
                        }
                    }
                }

can i know what is the error? and how to fix it?


Solution

  • Basicly the error means that there are some missing permissions

    you can change the user permission of a folder with an FTP Cllient. Detailed information can be found here

    you should check the permissions and either set them on 775 or 664, Depends on what kind of permissions are needed precisly.

    Hope this helps!