WordPress.org

Forums

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

  1. neXorianus
    Member
    Posted 2 years ago #

    Hello,
    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
    /wp-includes/js/plupload/plupload.js?ver=3.4.1`

    Every other sites run fine.

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

    http://wordpress.org/extend/plugins/wp-user-frontend/

  2. neXorianus
    Member
    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
    replace
    if ( has_shortcode( 'wpuf_addpost' ) || has_shortcode( 'wpuf_edit' ) ) {
    with
    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
    Member
    Plugin Author

    Posted 2 years ago #

    nice

  4. adsheyn
    Member
    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
    Member
    Posted 2 years ago #

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

  6. adsheyn
    Member
    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