WP User Frontend
plupload scripts are included in edit user page --> error (6 posts)

  1. neXorianus
    Posted 2 years ago #

    I tried to use the wp user frontend plugin, installed it, and all went fine, but the edit Profile page.

    I set up the page, and the option in the WP-backend. But when I visit the site in frontend, all forms are displayed correct, but a javascript error occurs saying: `TypeError: o is null

    Every other sites run fine.

    Any advice what's going wrong?
    Thanks in advance!


  2. neXorianus
    Posted 2 years ago #

    seems like I have fixed it my self, and I hope the skripts are not needed on this page.

    here is my solution:
    in line 130 in plugins/wp-user-frontend/wpuf.php
    if ( has_shortcode( 'wpuf_addpost' ) || has_shortcode( 'wpuf_edit' ) ) {
    if ( (has_shortcode( 'wpuf_addpost' ) || has_shortcode( 'wpuf_edit' )) && !has_shortcode( 'wpuf_editprofile' ) ) {

    then the scripts will not be loaded on the edit-Profile page.

  3. Tareq Hasan
    Plugin Author

    Posted 2 years ago #


  4. adsheyn
    Posted 2 years ago #

    I have the same problem but this solution didn't worked for me, unfortunately. I've deactivated other plugins, changed my theme to TwentyEleven and even downgraded my WordPress install to 3.4.2 and the problem still exist. Everything works great but when I am on the edit profile page all JavaScripts are broken.

    Any other idea on how to fix this bug?

  5. professor99
    Posted 2 years ago #

    The development version has some changes in this area which may fix the problem

  6. adsheyn
    Posted 2 years ago #

    OK, I fixed it.
    The neXorianus' solution works, but you need to do the same in line 33 in wp-user-frontend/lib/attachment.php

    professor99, thanks for the link to the development version. I will test it for sure as it contains other useful fixes :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP User Frontend
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic