• I’m also getting some javascript errors.

    On a default list page (homepage, for example), the plugin is adding this call to the footer:


    '<script type="text/javascript">stylize_profilelink()</script>'

    Which throws an error stylize_profilelink is not defined.

    If the user is not logged in, the footer includes:


    '<script type="text/javascript">add_openid_to_comment_form()</script>'

    Which also throws an error as undefined.

    The issue seems to be that there is no comment form on these pages, therefore the javascripts in the header do not get loaded, but the ones in the footer do.

Viewing 1 replies (of 1 total)
  • I noticed the same error and have fixed it as follows:

    edit openid/interface.php

    Find line 114:
    replace: if (is_user_openid()) {
    with: if (is_user_openid() && (is_single() || is_comments_popup() || is_admin())) {

    Find line 125:
    replace: if (!is_user_logged_in()) {
    with: if (!is_user_logged_in() && (is_single() || is_comments_popup() || is_admin())) {

    My reasoning for adding that code is that the stylize_profilelink() function is added by the openid/files/openid.min.js file which is only added if is_single() or is_comments_popup() or is_admin() (see line 84 of interface.php).

    Therefore, if is_single() and is_comments_popup() and is_admin() are all false, then openid.min.js is not included and hence stylize_profilelink() is not defined so adding that check to lines 114 and 125 makes sense.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP-OpenID] Javascript errors’ is closed to new replies.