Home Forums Weaver Xtreme Theme Disable WordPress PHP error display (re: Weaver Xtreme 5.0.5)

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #70125
    Weaver
    Keymaster

    There apparently is a bug in some PHP versions that is making it impossible to login to some sites when using Weaver Xtreme version 5.0.5.

    The error is due to PHP error messages being displayed that disrupt the normal HTTP data protocol.

    These instructions should stop error messages, and thus allow you to login. This will require using your site’s file manager and editor to make the changes noted:

    Turning off PHP Errors in WordPress

    For this part, you will need to edit the wp-config.php file.

    Inside your wp-config.php file, look for the following line:

    1
    define('WP_DEBUG', true);

    It is also possible, that this line is already set to false. In that case, you’ll see the following code:

    1
    define('WP_DEBUG', false);

    In either case, you need to replace this line with the following code:

    1
    2
    3
    4
    ini_set('display_errors','Off');
    ini_set('error_reporting', E_ALL );
    define('WP_DEBUG', false);
    define('WP_DEBUG_DISPLAY', false);

    Don’t forget to save your changes and upload your wp-config.php file back to the server.

    #70137
    scrambler
    Moderator

    I did not see this post, so I basically went to Cpanel, deleted the Theme folder, Logged back in under the default theme, and reinstall Xtreme From WordPress.

    #70143
    Weaver
    Keymaster

    Just made this post a few minutes ago…

    #70144
    Weaver
    Keymaster

    This is an example of a good reason to always have a backup theme like Twenty Twenty available if something like this happens. At worst case, you can usually just delete the problem theme from cPanel and restore or revert until fixed.

    #70172
    hkp
    Participant

    @Weaver

    Yes, I agree it makes sense that we need to have a backup theme available for a number of reasons.

    However, if there is a catastrophic issue with Xtreme and one needs to use Twenty Twenty (or a similar vanilla theme) while the issue Xtreme issue is fixed, is there any other theme or method available which will allow the importation of the essence of the Xtreme site elements?

    My experience has been that moving temporarily to a vanilla theme means pretty much setting it up again from scratch for menus, side bar widgets and Front Page options.

    Is there any way to import these setting’s functionalities – so that a vanilla theme operates the same as Xtreme for site visitors? (appearance colors and graphic aside).

    Or would you suggest that we pre-configure a backup theme for such an eventuality – albeit that it is no longer then a ‘vanilla’ theme for testing?

    Regards and thanks,
    Angus

    #70174
    scrambler
    Moderator

    I think what weaver meant is a very short term backup to recover from a catastrophic event, but in no way an actual substitute to the theme.

    #70177
    hkp
    Participant

    @Scrambler
    Thanks for the clarification.
    I think you mean, just as a placeholder only, during a fix.
    Sorry, I misunderstood there.
    Regards and thanks,
    Angus

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.