Support » Plugin: Antispam Bee » White screen only for logged in uers

  • Resolved MACscr

    (@macscr)


    PHP 7.2.24
    Apache/2.4.41
    WP 5.3

    Seem to get a white screen when going to a page with a comment section, but only when logged in as user. If i open an incognito window and load that same page, everything is fine. With WP debug i see no errors, and nothing in the apache log or php-fpm log. Any suggestions?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Simon Kraft

    (@krafit)

    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.

    Plugin Contributor Torsten Landsiedel

    (@zodiac1978)

    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

    Plugin Contributor Torsten Landsiedel

    (@zodiac1978)

    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

    Plugin Contributor Florian Brinkmann

    (@florianbrinkmann)

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘White screen only for logged in uers’ is closed to new replies.