Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Various issues on uploader and profile edit after upgrade
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 8, 2017 - 8:43 am

WP loads plupload on the back-end/admin. It does not do so on the public side of WP websites

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yehonal
Member
sp_UserOfflineSmall Offline
Jun 8, 2017 - 10:01 am

Are you sure about it? because i've navigated the code and found 2 calls about wp_default_scripts (the function that enqueue the pupload script)

 

backend:

https://github.com/WordPress/W.....cripts.php

front end:

https://github.com/WordPress/W.....s.php#L434

 

if i comment out the front end line in core files, the whole site has errors about missing jquery etc. 

It's quite strange 

Avatar
Yehonal
Member
sp_UserOfflineSmall Offline
Jun 8, 2017 - 10:04 am

Anyway, i've delayed bootstrap loading in this way:

wp_dequeue_script( 'bootstrap1' );
wp_deregister_script( 'bootstrap1' );
wp_enqueue_script( 'bootstrap1', get_template_directory_uri().'/js/bootstrap.min.js',9999,'',true);

and now the add file / start upload buttons are working! But there's still that errors and my buttons are not shown correctly (just text, no style)

 

PS. the most critical issue is still the popup errors on profile editing 🙁  i've a lot of users without displayed name and they cannot update it in forum profile dashboard.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 8, 2017 - 1:23 pm

Yes I am sure. Why would they load their media library stuff on the public site where it is not used?

And what do default filters have to do with this? (The second file you reference above)

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 8, 2017 - 1:24 pm

What about the other issues like the double loading of the jquery UI?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yehonal
Member
sp_UserOfflineSmall Offline
Jun 8, 2017 - 1:53 pm

If you note i've linked you the exact line where default filters add this action:

add_action( 'wp_default_scripts', 'wp_default_scripts' );

this action call the wp_default_scripts even if you're in frontend, loading all that scripts and css including plupload and jqueryui

 

in fact if i comment out that line the frontend doesn't work anymore with a lot of missing library errors

 

Dunno how's it possible

Avatar
Yehonal
Member
sp_UserOfflineSmall Offline
Jun 8, 2017 - 1:56 pm

The fact is that i've any errors both in browser console and in apache errors log....just a null popup :-/ i'm very confused

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 8, 2017 - 3:26 pm

I am not going to argue any further about whether plupload is loaded by WP on the front end or not. I simply point out that it is a point of conflict in your website that may well have a negative effect on uploading within the forum.

The double loading of the jQuery UI library is something that can have negative effects on things as I have already stated. It is to to you whether you deal with this potential issue or not.

So lets just concentrate ion the profile issue.

the inly time I have seen this behaviour it was caused by a WP plugin that aded profile features. Do you have any such plugins active? In fact ANYTHING ay all that may effect profile data?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yehonal
Member
sp_UserOfflineSmall Offline
Jun 12, 2017 - 8:10 am

I've disabled all plugins related to profile, don't know if i'm missing something but i'm tring to debugging it.

Javascript doesn't show any errors and even my apache error log. So i think there's some strange behaviour with sessions/cookie and the ajax call fail

 

take a look at this screenshot

sperror.JPGImage Enlarger

 

both ajax calls return a null response (even if success) but i've tried to load that url you can see in .load() normally in a browser  taband it returns the signature string....so it seems that the .load() and .ajaxForm() have problem with sessions ( ? confused )

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jun 13, 2017 - 12:58 am

they shouldnt have and dont see how they would...  but perhaps something on your site is blocking ajax requests... something like mod_security which has been known to run amok like that... any chance you have mod_security or other security app running?

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626