I just updated to the newest version and there seems to be a component missing:
When users aren't logged in, usually a message will display as such:
However, after update, nothing is actually displayed there:
Inspecting the code, the wpdiscuz is loading, but there is no message and no visible content there.
Hi kflaphi,
Please leave your website URL to allow us to check it.
Unfortunately this is on my local dev copy so it's not live anywhere to share.
Looking at the console, there are no errors. I also have WP_DEBUG on and nothing appears. Inspecting the element, I noticed that the normal message seems to be commented out?
<div id="wpcomm" class="wpdiscuz_unauth wpd-default">
<div class="wpdiscuz-form-top-bar">
<div class="wpdiscuz-ftb-left">
<div id="wc_show_hide_loggedin_username">
</div>
</div>
<div class="wpd-clear"></div>
</div>
<div class="wc_social_plugin_wrapper">
</div>
<div class="wc-form-wrapper wc-main-form-wrapper" id="wc-main-form-wrapper-0_0">
<div class="wpdiscuz-comment-message" style="display: block;"></div>
<!--
<p class="wc-must-login">
</p>
-->
</div>
<div id="wpdiscuz_hidden_secondary_form" style="display: none;">
<div class="wc-form-wrapper wc-secondary-form-wrapper" id="wc-secondary-form-wrapper-wpdiscuzuniqueid" style="display: none;">
<div class="wpdiscuz-comment-message" style="display: block;"></div>
<div class="wc-secondary-forms-social-content"></div><div class="clearfix"></div>
<!--
<p class="wc-must-login">
</p>
-->
</div>
</div>
<div class="wpdiscuz-front-actions">
<div class="wpdiscuz-sbs-wrap">
<span><i class="far fa-envelope" aria-hidden="true"></i> Subscribe <i class="fas fa-caret-down" aria-hidden="true"></i></span>
</div>
<div class="clearfix"></div>
</div>
<div class="wpdiscuz-subscribe-bar wpdiscuz-hidden">
<form action="http://localhost/wp-admin/admin-ajax.php?action=addSubscription" method="post" id="wpdiscuz-subscribe-form">
<div class="wpdiscuz-subscribe-form-intro">Notify of </div>
<div class="wpdiscuz-subscribe-form-option" style="width:40%;">
<select class="wpdiscuz_select" name="wpdiscuzSubscriptionType">
<option value="post">new follow-up comments</option>
<option value="all_comment">new replies to my comments</option>
</select>
</div>
<div class="wpdiscuz-item wpdiscuz-subscribe-form-email">
<input class="email" type="email" name="wpdiscuzSubscriptionEmail" required="required" value="" placeholder="Email">
</div>
<div class="wpdiscuz-subscribe-form-button">
<input id="wpdiscuz_subscription_button" type="submit" value="›" name="wpdiscuz_subscription_button">
</div>
<input type="hidden" id="wpdiscuz_subscribe_form_nonce" name="wpdiscuz_subscribe_form_nonce" value="cc58bf4f84"><input type="hidden" name="_wp_http_referer" value="/social-purpose-real-estate-strategy-ontario/"> <input type="hidden" value="4939" name="wpdiscuzSubscriptionPostId">
</form>
<div class="wpdiscuz_clear"></div>
</div>
<div id="wcThreadWrapper" class="wc-thread-wrapper">
<div class="wpdiscuz-comment-pagination">
</div>
</div>
<div class="wpdiscuz_clear"></div>
</div>
After doing some investigation, it looks like the there's a section of code on the Form.php that was commented out. Removing the comments makes it work just fine. Was this on purpose or perhaps forgotten about?
Lines 541-558 in Form.php
// else {
?>
<!--
<p class="wc-must-login">
<?php
// if (!$message) {
// echo $this->wpdOptions->phrases['wc_you_must_be_text'];
// $login = wp_loginout(get_permalink(), false);
// $login = preg_replace('!>([^<]+)!is', '>' . $this->wpdOptions->phrases['wc_logged_in_text'], $login);
// echo ' ' . $login . ' ' . $this->wpdOptions->phrases['wc_to_post_comment_text'];
// } else {
// echo $message;
// }
?>
</p>
-->
<?php
// }
Dear @kflaphi,
You only need to disable the "Hide Please login to comment text" option in Dashboard > Comments > Settings > Comment Form admin page.
I tried disabling that and it didn't seem to work either?