Support » Plugins » Hacks » Eliminating FTP dialog for uploading theme zip file

  • I have looked into the function while
    Dash board -> Appearance -> Themes -> Install Themes -> Upload.
    (and use Browse to say the file to be uploaded.)

    After hitting ‘Install Now’, FTP dialog appears. When this dialog appears and before typing anything, the file specified is already in uploads
    directory in server.

    If the transfer is PC -> server type, FTP transaction may not be necessary.

    My purely experimental patch works for me. It has one hardcode as ‘themes’
    so that this patch won’t be good for general use. I will take a look to fix this problem, but please look at my patch if you have time. thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • My patch has PROBLEM that it removes the existing theme.
    Please do NOT test on your real server, sorry and thanks

    I’m confused now. Today’s understanding is that the following line in wp-config.php is the only thing to be changed (added).

    define(‘FS_METHOD’, ‘direct’);

    I’m still working on this, thank you.

    I’m 80% definite that just the one line on wp-config.php (shown above) is the key to eliminate FTP dialog (and session) for Adding theme with zip format. Is this well-known tips ?

    Thanks a lot,

    The only time I’ve ever got the FTP dialog is if the web server does not have write permission to the plugin or theme files.

    Check the ownership and permissions of the theme directories and files and ensure they match the UID/GID of the web server.

    I usually run my development Apache server with this

    <IfModule mpm_itk_module>
    	AssignUserId ian ian

    and all the WordPress files are owned by ian:ian



    Forum Moderator

    The FTP server being used may also be a factor, IIRC.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Eliminating FTP dialog for uploading theme zip file’ is closed to new replies.