• Resolved jmwebmaster

    (@jmwebmaster)


    Hello, maybe a bug here: I can’t display name and email fields for voters when they feedback.

    “Voting person receives e-mail” option is checked or unchecked, it’s the same:
    In feedback.php, lines 33 and 43:
    $options->get_option(‘helpful_feedback_name’) never true
    $options->get_option(‘helpful_feedback_email’) never true

    WP 5.8.2 – Helpful Version 4.4.63 – php 7.4

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Pixelbart

    (@pixelbart)

    @jmwebmaster

    Here with me I can not reproduce the error. It is important that you are not logged in when you try to vote.

    If you are logged in, the fields are never shown to you, because they are filled automatically.

    You can also send me an example. I have now checked this on 12 websites, all on different hosts. I could not see or reproduce the error.

    Otherwise, also make sure that the template in your WordPress theme is kept up to date. Some people change Helpful’s templates and are surprised that newer versions cause errors.

    Thread Starter jmwebmaster

    (@jmwebmaster)

    Thank you for your answer. The template was one of a previous version, but the problem is still here with the default feedback.php.

    I confirm I’m not connected while trying of course.

    Then I tried to deactivate/delete helpful, and re-install a new version. And I saw all my previous settings were still there.

    If some options are corrupted in the DB, how can I delete manually these previous options?

    Plugin Author Pixelbart

    (@pixelbart)

    @jmwebmaster

    Manually you can delete the options in the database table wp_options.

    You can see which options might be relevant for you here:

    https://github.com/pixelbart/helpful/blob/master/core/services/class-options.php#L227

    So in the database table the keys should always be the keys from the array. Currently there is no option here. I think the reset in the Helpful options only referred to the votes.

    Maybe I will build something for this. Basically this should not be a problem. The problem must be something else. You can set WP_DEBUG to true and then install Query Monitor. Then in case of an error, the errors should be shown to you.

    What is also useful is the following addition in the wp-config.php:

    define(‘WP_DEBUG’, true);
    define(‘WP_DEBUG_LOG’, true);

    After that, when you save the options in the wp-content folder on your webspace, there should be a debug.log. Errors that happen in the background will be stored there. Very useful for debugging.

    Thread Starter jmwebmaster

    (@jmwebmaster)

    Thank you so much for your help. It works perfectly. I thought setting the ‘helpful_feedback_send_email_voter’ option to ‘on’ was sufficient to trigger the email field display in the feedback form. Sorry for the noise. Have a nice week-end.

    Plugin Author Pixelbart

    (@pixelbart)

    @jmwebmaster

    No problem and thank you for your answer! After all, you answered, so no problem regarding the noise!

    Have you also a nice weekend and stay healthy!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Impossible to display name and email fields for voters’ is closed to new replies.