Title: [Plugin: WP-OpenID] Javascript errors
Last modified: August 19, 2016

---

# [Plugin: WP-OpenID] Javascript errors

 *  [jeckman](https://wordpress.org/support/users/jeckman/)
 * (@jeckman)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/plugin-wp-openid-javascript-errors/)
 * 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)

 *  [scythah](https://wordpress.org/support/users/scythah/)
 * (@scythah)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-openid-javascript-errors/#post-829683)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [scythah](https://wordpress.org/support/users/scythah/)
 * Last activity: [17 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-openid-javascript-errors/#post-829683)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
