Hello,
I can’t seem to identify what may be the exact cause of this issue but the Theme Customizer returns a critical error when I try to open it.
The only Element that I could relate to the td_subscription php file is the Leads element I placed on the homepage once.
The homepage loads fine when viewed live ( https://paste.pics/EGF4Y ), whether I am logged in as admin, or viewing in incognito mode. It’s only when I try to go to Theme Customizer that the error occurs.
I already tried removing the Leads Element but still gets the critical error message and still unable to access the Theme Customizer.
For reference, these are the active plugins:
Envira Gallery Lite
Siteground Optimizer
tagDiv Cloud Library
tagDiv Composer
tagDiv Opt-in Builder
tagDiv Social Counter
WooCommerce
WPForms Lite
Below is the complete error message ( screenshot uploaded at https://paste.pics/EGF40 )
Fatal error: Uncaught Error: Call to undefined function get_current_screen() in /home/customer/www/brwnfshwebworks.com/public_html/bwmstage/wp-content/plugins/td-subscription/includes/td_subscription.php:196 Stack trace: #0 /home/customer/www/brwnfshwebworks.com/public_html/bwmstage/wp-includes/class-wp-hook.php(303): td_subscription->{closure}(‘https://brwnfsh…’, Object(WP_Term), ‘category’) #1 /home/customer/www/brwnfshwebworks.com/public_html/bwmstage/wp-includes/plugin.php(189): WP_Hook->apply_filters(‘https://brwnfsh…’, Array) #2 /home/customer/www/brwnfshwebworks.com/public_html/bwmstage/wp-includes/taxonomy.php(4559): apply_filters(‘term_link’, ‘https://brwnfsh…’, Object(WP_Term), ‘category’) #3 /home/customer/www/brwnfshwebworks.com/public_html/bwmstage/wp-includes/nav-menu.php(891): get_term_link(Object(WP_Term), ‘category’) #4 [internal function]: wp_setup_nav_menu_item(Object(WP_Post)) #5 /home/customer/www/brwnfshwebworks.com/public_html/bwmstage/wp-includes/nav-menu.php(755): array_map(‘wp_setup_nav_me. in /home/customer/www/brwnfshwebworks.com/public_html/bwmstage/wp-content/plugins/td-subscription/includes/td_subscription.php on line 196
Please inform me how I can find an remove the codes that produce that error.
Thank you in advance.
UPDATE: I have deactivated tagDiv Opt-in Builder and was able to access the Theme Customizer afterwards. This is even though I did not remove the Leads element, which now shows unprocessed shortcode starting from the snippet posted below:
“[tds_leads input_placeholder=”Your email address” btn_horiz_align=”content-horiz-center” pp_checkbox=”yes” pp_msg=”SSd2ZSUyMHJlYWQlM…..”
Anyway, before disabling the opt-in builder plugin, I have also created a new homepage and imported the Magazine Pro homepage layout and then tried and replaced the current frontpage with this new layout, but I still got the same issue… so it is possible there is some conflict between the codes on the Magazine pro homepage and opt-in builder.
I’d love to know your thoughts on this.
Thanks again.
Hello!
I’ve tested on my end with the same demo, in the Appearance -> Customize and there is no fatal error or anything else like: https://kinsta.com/knowledgebase/there-has-been-a-critical-error-on-your-website/
Please make sure you have the latest version of the PHP, WordPress, theme and plugins(11.3.1).
The issue can be from a plugin conflict, that’s why, please deactivate ALL plugins except tagDiv ones, also if you are using child theme or cache plugin, deactivate them, clear all cache and try again.
Thank you!
Thank you for your response, Bettina,
May I know if you tested while tagDiv Opt-in Builder plugin was also activated? Because the problem disappeared as soon as I disabled that opt-in builder plugin.
Best,
Sam.
Hello Sam!
Yes, of course with the plugin activated.
Please start looking for a plugin conflict.
If you want, we can take a look also. Please make a full backup, send an email at contact@tagdiv.com and provide wp-admin, so we can investigate this issue. Also paste a link to this topic so we can easily identify you.
Thank you!