dashed-slug.net › Forums › Full Node Multi Coin Adapter extension support › White screen of death
- This topic has 6 replies, 2 voices, and was last updated 6 years, 4 months ago by
Anonymous.
-
AuthorPosts
-
April 24, 2018 at 6:26 am #2923
Anonymous
InactiveHi, when I install this plugin on WordPress original theme it works like a charm but when I enable my custom theme it give me the white screen of death. Is there an easy way to debug this?
April 24, 2018 at 6:51 am #2924Anonymous
InactiveI’m using this theme https://themeforest.net/item/gags-image-meme-video-sharing-wordpress-theme/18798524
April 24, 2018 at 7:44 am #2928alexg
KeymasterHello,
Thanks for reporting. You’ve already done the first step which is to identify the component that causes the problem.
The best way to debug this is to disable your theme, then observe the logs while enabling the theme. If you cannot access the admin screens to deactivate the theme, simply delete its directory from
wp-content/themes
There will be some PHP error written out at the moment when the theme is being enabled. If you have ssh access to your server, use
tail -f
on your PHP error log. This should be somewhere under/var/log
on most Unix systems.You should also enable WordPress logging: https://codex.wordpress.org/Debugging_in_WordPress
This will let you observe a log at
wp-content/debug.log
. At the very minimum I would recommend that you insert the following to yourwp-config.php
:define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false );
Please post here any errors that are generated at the moment the white screen is shown. We will then need to decide if this is something that I need to fix or if it needs to be fixed by the theme developers.
kind regards
AlexApril 24, 2018 at 3:45 pm #2935Anonymous
Inactive[24-Apr-2018 15:01:36 UTC] PHP Fatal error: Cannot redeclare tgmpa() (previously declared in /var/www/html/wordpress/wp-content/plugins/wallets-multiadapter/includes/third-party/TGM-Plugin-Activation/class-tgm-plugin-activation.php:2175) in /var/www/html/wordpress/wp-content/themes/gags/functions/class-tgm-plugin-activation.php on line 2126 [24-Apr-2018 15:05:14 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Gags_Popular_Posts has a deprecated constructor in /var/www/html/wordpress/wp-content/plugins/gags-plugin/widgets/gags-popular.php on line 21 [24-Apr-2018 15:05:14 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Gags_Recent_Posts has a deprecated constructor in /var/www/html/wordpress/wp-content/plugins/gags-plugin/widgets/gags-recent.php on line 21 [24-Apr-2018 15:05:14 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Gags_Trending_Posts has a deprecated constructor in /var/www/html/wordpress/wp-content/plugins/gags-plugin/widgets/gags-trending.php on line 21 [24-Apr-2018 15:05:14 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Gags_Categories has a deprecated constructor in /var/www/html/wordpress/wp-content/plugins/gags-plugin/widgets/gags-categories.php on line 21 [24-Apr-2018 15:05:14 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Gags_Top_Author has a deprecated constructor in /var/www/html/wordpress/wp-content/plugins/gags-plugin/widgets/gags-top-users.php on line 21 [24-Apr-2018 15:05:14 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Gags_Custom_Menu has a deprecated constructor in /var/www/html/wordpress/wp-content/themes/gags/includes/widgets/gags-custom-menu.php on line 21 [24-Apr-2018 15:05:14 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Gags_Post_Category_List has a deprecated constructor in /var/www/html/wordpress/wp-content/themes/gags/includes/widgets/gags-category-list.php on line 19 [24-Apr-2018 15:05:14 UTC] PHP Fatal error: Cannot redeclare tgmpa() (previously declared in /var/www/html/wordpress/wp-content/plugins/wallets-multiadapter/includes/third-party/TGM-Plugin-Activation/class-tgm-plugin-activation.php:2175) in /var/www/html/wordpress/wp-content/themes/gags/functions/class-tgm-plugin-activation.php on line 2126
April 24, 2018 at 3:50 pm #2936alexg
KeymasterThank you.
This is a common issue with the TGMPA library. This is a common library for tracking dependencies between WordPress components (themes and plugins).
Some themes do not load TGMPA correctly because they assume that no other plugin is using that same library.
Simply delete the file
wp-content/plugins/wallets-multiadapter/includes/third-party/TGM-Plugin-Activation/class-tgm-plugin-activation.php
for a quick workaround. Do the same for all other dashed-slug extensions that you may have installed.Ideally you should tell the theme developers to load TGMPA only if not previously defined.
kind regards
April 24, 2018 at 3:50 pm #2937Anonymous
InactiveThis is the wp-content/debug.log
April 24, 2018 at 4:05 pm #2938Anonymous
InactiveGreat, thanks mate it works.
-
AuthorPosts
- You must be logged in to reply to this topic.