• Resolved toremo

    (@toremo)


    When you have your wordpress installation running on bedrock, then the wp-config file gets constantly created with 0 Byte and that crashes the site after you save the settings of XTRA.

    In Bedrock the wp-config file is in an web unaccessible secure level.
    https://roots.io/bedrock/

Viewing 1 replies (of 1 total)
  • Thread Starter toremo

    (@toremo)

    is this plugin still maintained? over 1 month no feedback!

    Beside the mentioned problem there is another one occurring which leads to the following error message.
    Notice: Undefined index: SCRIPT_URL in /home/user/web/app/plugins/xtra-settings/xtra.php on line 30

    Notice: Undefined index: SCRIPT_URI in /home/user/web/app/plugins/xtra-settings/xtra.php on line 30

    The line itself says the following:
    define( ‘XTRA_HOST’, str_replace($_SERVER[‘SCRIPT_URL’],””,$_SERVER[‘SCRIPT_URI’]) );

    When you try to login you simply can’t as it seems to redirect you elsewhere and can’t find the URL for the backend.

    How to solve this issue, which is happening when you convert a vanilla wp site to a bedrock wp site.

    vanilla_wp
    public_html/wp/wp-content/plugins/
    public_html/wp/wp-includes/
    public_html/wp/wp-admin/
    public_html/wp-config.php

    bedrock_wp
    web/app/plugins/
    web/wp/wp-includes/
    web/wp/wp-admin/
    config/application.php (holds all wp-config settings)
    .env (holds al secured data like db, password, etc.)

    When now a change occurs which writes to wp-config.php a ZERO byte or a xxx byte wp-config.php file gets created in the web/wp/ directory – in a bedrock installation there is no wp-config.php file at this place and if now a file gets created the site crashes.

    The plugin also does not seem to check which options have already been activated and when activated checks them automatically or even better “deactivates the checkbox” so that a second time checking and then writing to this wp-config.php file isn’t possible as it would only double actually the efforts which are already in place and written in config/application.php

Viewing 1 replies (of 1 total)
  • The topic ‘wpconfig gets written with 0 Byte!! Crashes site!’ is closed to new replies.