Hi @macscr,
Sorry to hear that. Can you confirm, this problem is tied to Antispam Bee? Does it still persist, if you disable the Antispam Bee plugin on the plugins site?
Just to make sure, its our plugin before we start turning stones to find the solution.
Thread Starter
MACscr
(@macscr)
Yes, 100% its the plugin. When disabling it, everything is fine.
I can confirm that this is a problem between your theme “VMagazine Lite” and our plugin. I get a white screen as well if the plugin and the theme are active together.
But I can’t see the problem at the moment as there is no error in the logs for me as well.
I try to find the problem …
All the best,
Torsten
This is really strange.
I have narrowed it down to the vmagazine_lite_get_sidebar()
function. But this function just calls different version of the sidebar via get_sidebar
.
Then I removed some widgets. After I removed the “Archive” widget the site is showing. But this is not consistent. Sometimes I can add a widget and the site is okay. Sometimes I get the white screen. If I then delete *another* widget the site comes back. Very confusing.
But as ASB is working fine with many themes, I think the problem is on the theme side. Maybe someone from the theme supporters can help here.
Ping @alsonthakuri @sandygiri45
Hi @macscr,
I think I found the issue. The theme adds a placeholder for the comment textarea with the following code:
$args['comment_field'] = str_replace( 'textarea', 'textarea placeholder="'.esc_attr__('Your Comment','vmagazine-lite').'"', $args['comment_field'] );
That adds the placeholder to the opening and the closing textarea
tag, instead of just the opening one. And because of that, the regular expression that Antispam Bee uses to modify the textarea element fails and results in a white screen.
That is something the theme developer(s) have to fix. A workaround for you could be to remove that filter with the following code in the functions.php
of a child theme:
remove_filter( 'comment_form_defaults', 'vmagazine_lite_comment_textarea_placeholder' );
After that, it should work with Antispam Bee.
Hope that helps!
Best,
Florian