• Resolved locker17

    (@locker17)


    Reporting several warnings/errors:

    On CSS at the search form:
    1. <div id=”field_2_wrap” class=”bps-radio”> <label for=”field_2″ class=”bps-label”>
    Incorrect use of <label for=FORM_ELEMENT>
    The label’s <code class=” “>for attribute doesn’t match any element <code class=” “>id. This might prevent the browser from correctly autofilling the form and accessibility tools from working correctly.

    2. On PHP when loading the page where the form is included:
    Warning: Undefined array key 580 in wp-content\plugins\bp-profile-search\bps-template.php on line 216

    Warning: Attempt to read property “path” on null in wp-content\plugins\bp-profile-search\bps-template.php on line 216

    Hope you can fix it.

    • This topic was modified 5 months, 4 weeks ago by locker17.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Andrea Tarantini

    (@dontdream)

    Hi locker17,

    Thanks for your report! I’m going to fix the form’s code in the next BP Profile Search release.

    About your second point, are you using WPML? That code only runs when BuddyPress Multilingual is active.

    In that case, the only way I can help is to take a look at a testing or staging site of yours, but this is not allowed by this forum policy. If you are interested, we can continue this conversation on my BP Profile Search forum:

    https://dontdream.it/support/forum/bp-profile-search-forum/

    Thread Starter locker17

    (@locker17)

    No, I am on a single install.
    Have you checked that line of code 216?
    $dirs = bps_directories ();
    $F->action = $dirs[bps_wpml_id ($meta['action'])]->path;
    $F->method = $meta['method'];


    • This reply was modified 5 months, 3 weeks ago by locker17.
    Thread Starter locker17

    (@locker17)

    I underwent a check by disabling all other plugins and enabling it again one by one. Switched theme to twenty twenty five as well. Then I realized that the Template name was in red color even the searches went well. After a check of the profile form and implementing it in a new test page and then switch back to the old implementing page its now in blue and I think the error is gone.

    Plugin Author Andrea Tarantini

    (@dontdream)

    Hi locker17,

    Thanks for the update and for sharing the solution! I’m sure it will be helpful to other readers if they encounter the same problem.

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.