Home › Forums › Weaver Xtreme Theme › Disable WordPress PHP error display (re: Weaver Xtreme 5.0.5)
- This topic has 6 replies, 3 voices, and was last updated 1 year, 9 months ago by
hkp.
-
AuthorPosts
-
January 3, 2022 at 16:19 UTC - Views: 39 #70125
Weaver
KeymasterThere 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:
1define(
'WP_DEBUG'
, true);
It is also possible, that this line is already set to false. In that case, you’ll see the following code:
1define(
'WP_DEBUG'
, false);
In either case, you need to replace this line with the following code:
1234ini_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.
January 3, 2022 at 17:15 UTC - Views: 34 #70137scrambler
ModeratorI 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.
January 3, 2022 at 17:29 UTC - Views: 31 #70143Weaver
KeymasterJust made this post a few minutes ago…
January 3, 2022 at 17:32 UTC - Views: 30 #70144Weaver
KeymasterThis 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.
January 5, 2022 at 02:03 UTC - Views: 21 #70172hkp
ParticipantYes, 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,
AngusJanuary 5, 2022 at 05:38 UTC - Views: 12 #70174scrambler
ModeratorI 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.
January 5, 2022 at 07:55 UTC - Views: 9 #70177hkp
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 -
AuthorPosts
- You must be logged in to reply to this topic.