Forum Replies Created

Viewing 3 Topics - 1 through 3 (of 3 total)
Author Posts
April 28, 2014 at 6:27 pm in reply to: Insert photo and Upload file buttons not working 19529
Dan Dan

Hello Mahi

I have found the bug, it’s a bug with WP User Frontend Pro that you should fix. When generating the CSS ID of the form elements for the meta key, you’re not making the ID of the CSS URL safe (Use this: https://codex.wordpress.org/Function_Reference/sanitize_title). That means your javascript breaks when trying to find each upload tool because there are spaces in the CSS ID, which the jQuery selector cannot cope with.

Workaround: remove spaces from meta keys.

However, you should be cleaning this up in code, when generating the fields.

Regards
Dan

April 28, 2014 at 6:16 pm in reply to: Insert photo and Upload file buttons not working 19524
Dan Dan

Nope, there’s only 1 form on the page, and there’s no clash of meta field names. Really not happy. I shouldn’t have to debug your code. If I fix it for you, I’ll have to charge you for it.

Dan

April 26, 2014 at 11:13 pm in reply to: Insert photo and Upload file buttons not working 19457
Dan Dan

Please share the solution.

I’m hitting the same issue and it’s driving my client nuts. There are 5 upload fields, and all are broken. This looks like a bug in WP User Frontend Pro, as there are no javascript errors in the JS console. wp_footer() is loading scripts fine, including the uploader JS.

I would like a fix to this issue ASAP.

Thanks
Dan

Viewing 3 Topics - 1 through 3 (of 3 total)