WordPress.org

Ready to get started?Download WordPress

Forums

Eliminating FTP dialog for uploading theme zip file (6 posts)

  1. makoto.fujiwara
    Member
    Posted 1 year ago #

    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.
    http://www.ki.nu/~makoto/patches/wordpress-3.5.1-theme-upload

  2. makoto.fujiwara
    Member
    Posted 1 year ago #

    My patch has PROBLEM that it removes the existing theme.
    Please do NOT test on your real server, sorry and thanks

  3. makoto.fujiwara
    Member
    Posted 1 year ago #

    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.

  4. makoto.fujiwara
    Member
    Posted 1 year ago #

    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,

  5. ianhaycox
    Member
    Posted 1 year ago #

    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
    	</IfModule>

    and all the WordPress files are owned by ian:ian

  6. esmi
    Forum Moderator
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic