Fresh install (with DISALLOW_FILE_MODS and FS_MODE = ftpext)

This topic has 7 replies, 3 voices, and was last updated 4 years, 8 months ago ago by Olga Barlow

  • Avatar: Chris
    Chris
    Participant
    August 16, 2019 at 16:02

    Hi there,

    is there any way to keep updating the theme by hand and not requiring FS_MODE direct? THe installer doesn’t go any further, but I’m reluctant to change FS_MODE .

    Thanks!

    6 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    August 16, 2019 at 16:31

    Hello,

    If your server settings do not allow the auto-update of theme files then you can do this manually using FTP https://xstore.helpscoutdocs.com/article/63-theme-update

    Regards

    Avatar: Chris
    Chris
    Participant
    August 16, 2019 at 21:21

    Hi Olga,

    Thanks for the quick reply.

    Sure thing, but: How do I get the installer to continue without FS_MODE set to “direct”?

    Is there a switch / var I can set and can you point me to the file taking care of the initial configuration?

    Right now, the installer won’t let me continue w/o rectifying the FS_MODE setting. I guess that if this setting needs to be in place for updates only, I need to find a way to trick the installer to continue. If the setting is important for other template activities, I might run into trouble later?

    Thanks for clarifying.

    Kind regards,
    Chris

    Avatar: Chris
    Chris
    Participant
    August 17, 2019 at 08:53

    Ok,

    I managed to find the “culprit”:

    in xstore/framework/system-requirements.php you set

    'filesystem' => 'direct'

    and since my WP has set DISALLOW_FILE_MODS to true and uses ‘ftpext’ as alternative (not used since there is no ftpd running on the server and we do all updates via ssh (composer/wp-cli)), the “Continue” button does not provide the next step link to follow with theme installation.

    Also:

    'ssl_version' => '1.0',

    leads to a similar issue with ssl_version being checked against curl (if curl_version->ssl_version isset and becomes ‘undef’ if not). I’ve taken the liberty to set this to ‘min’ so the check passes later on, as I don’t think that will become an issue (WP has curl and wget access via recent openssl lib).

    What I take from reading through some more of the theme installer is that it checks requirements, installs the child-theme (already done by hand our case), asks if demo material should be included and installs relevant plugins.

    Since the latter will require ‘filesystem’ === direct, the installer will fail at that moment.

    Please advise how to continue with the installer or provide a list of required plugins/ download locations/ etc. for manual installation / sanity checks and I’ll get it sorted!? I’d hate to run through the code losing time 🙂

    Thanks!

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 17, 2019 at 10:08

    Hello,

    Due to weekends, our technicians will be able to check this topic on Monday only.
    Here you can find a list of required plugins – https://xstore.helpscoutdocs.com/article/36-included-plugins , they can be downloaded from this page https://www.8theme.com/downloads/ Read more in our documentation – https://xstore.helpscoutdocs.com/

    Regards

    Avatar: Chris
    Chris
    Participant
    August 17, 2019 at 19:08

    Thanks!

    Problem solved.

    FYI if you are using Bedrock (roots.io):

    # configure FS_METHOD to 'direct' for now (XStore theme requires it)
    Config::define('FS_METHOD', 'direct');

    in config/environments/currentenvironment.php will take care of most of the issues when using the installer. However, you may just install child theme and plugins manually (download && wp plugin install ./downloaded/plugin.zip etc.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    August 19, 2019 at 08:27

    Hello,

    Sorry for the delay in answering. Yes, filesystem => direct is required if you want to install plugins and child theme using setup wizard but you can also skip setup wizard and do this manually from Appearance > Install plugins and Appearance > Themes > add new, after that import demo content via XStore > Import Demos.
    ‘ssl_version’ is required to activate the theme using the purchase code because only after that you’ll able to install plugins and import demo content.

    Regards

  • Viewing 7 results - 1 through 7 (of 7 total)

The issue related to '‘Fresh install (with DISALLOW_FILE_MODS and FS_MODE = ftpext)’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.