Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Pupload conflict
Avatar
Phil Gordemer
Member
Free Members
sp_UserOfflineSmall Offline
Apr 12, 2019 - 9:01 am

Have had this on and off since way back in the early days of 5.x of Simple Press. Using the File Uploader Plugin, can not get attachments to give me the option to click to upload file.

Its definitely a javascript issue, here is the error, but I have been down this rabbit hole before and testing with turning off every plugin, changed theme to WP standard, cleared caches, etc. Was basically ignoring this in the 5.x Series and figured it would resolve itself when upgrading to 6.x last year.

Suggestions on more places to look.

plupload.full.min.js?ver=5.1.1:29 Uncaught TypeError: Cannot read property 'can' of null
at j.u.onready (plupload.full.min.js?ver=5.1.1:29)
at j.<anonymous> (moxie.min.js?ver=1.3.5:1)
at moxie.min.js?ver=1.3.5:1

Avatar
SP Community Support
SP Moderator
sp_UserOfflineSmall Offline
Apr 12, 2019 - 9:48 am

Hi:

The first thing I would do is ask your host to make a copy of your site onto a staging area.  Most hosts' staging areas do not have host-specific caching turned on so that eliminates one potential issue right away.

Then, since you're no longer working with the live site you can aggressively turn off everything,leaving only the simple:press plugin and the pluploader plugin turned on with a stock WordPress 2017/18/19 theme.

Then using he FORUM->TOOLBOX->HOUSEKEEPING menu items you can reset the javascript and css caches there.

Now you can check - does the issue occur?

If you don't want to go to that trouble right now, you can try turning off combining CSS and JS files in FORUM->OPTIONS->GLOBAL SETTINGS and see if that somehow helps the issue.

Thanks.

PS: Maybe post your configuration here from FORUM->TOOLBOX->Environment.

PPS: I know you said you've done some of this before but if we have to start somewhere and this is the most logical place to start since you've already done most of the steps in the live environment.

Avatar
Phil Gordemer
Member
Free Members
sp_UserOfflineSmall Offline
Apr 12, 2019 - 12:01 pm

Its my own VPS and I have many copies of the site to play with.

I have always has combined CSS off, and with every update, I always reset and clear the caches for them. I know its a conflict somewhere, was just putting out there again in case others have had it. 

Avatar
Simple Press
Admin
sp_UserOfflineSmall Offline
Apr 12, 2019 - 1:01 pm

Hi:

If you've already done the troubleshooting in a clean stripped down version of the site then the only other place I can think of where a conflict would come into play would be via any browser add-ons (if any are installed on your browser) or maybe a firewall issue that might be preventing a script from loading for some reason.  Those are longshots but I can't think of any other outside influence that might be affecting this.

Thanks.

Avatar
Phil Gordemer
Member
Free Members
sp_UserOfflineSmall Offline
May 27, 2019 - 8:47 pm

After working with 2 different theme developers, the problem has been found that since Simple:Press is using their own version of pupload instead of queueing the WP version, this creates the JS conflicts that causes everyone's use of Pupload to not work.

Here is code that I am using at the moment that allows Simple:Press upload plugin to work without conflicting with other themes, or WP itself. Kudo's for the code comes from the developers of Themify Themes.

In the code below page(9) is my forum page.

// added to fix conflict between Themify Themes and Simple Press Upload plugin
add_action('wp_print_scripts', 'themify_dequeue_plupload', 100000);
add_action('wp_print_footer_scripts', 'themify_dequeue_plupload', 100000);
function themify_dequeue_plupload(){
      if (is_page(9)) {
          wp_deregister_script( 'plupload' );
          wp_dequeue_script( 'plupload' );
       }
}

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: 649
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 618
Members: 17357
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10123
Posts: 79616