Forums

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

  1. neXorianus
    Member
    Posted 9 months 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 9 months 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 9 months ago #

    nice

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

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

  6. adsheyn
    Member
    Posted 2 months 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 :)

Reply

You must log in to post.

About this Plugin

About this Topic