Support Forum

V5 File Uploader – loader button not showing up

63 Answers

New Answer

DR didier Roudaut
didier Roudaut
Member

Hello Mr Papa !

I renamed the plugins translation file at this address /public_html/wp-content/sp-resources/forum-language/sp-plugins

sp-plup-fr_FR.mo –> _sp-plup-fr_FR.mo

and then I was able to upload images !

Now that I have switch back _sp-plup-fr_FR.mo –> sp-plup-fr_FR.mo it is not possible to upload anymore !

It seems that the issue is identified ! But I have no idea about how to fix it !

Do you have an Idea ?

 

Didero 

DR didier Roudaut
didier Roudaut
Member

Don’t know if that could be a clue in that issue but I saw under the PLUPLOAD plugin option that there is a setting “Plupload language code” that is set to “en”. When I try to change it to “fr” and save the change, once I go back to the same option it is still set to “en”!

I tried to change some others setting and it worked fine, just the “Plupload language code” remains to “en” even after I set it to “fr”

DR didier Roudaut
didier Roudaut
Member

Ok I tried to change that “Plupload language code” setting directly on database, I found the table wp_sfoptions where a there is a field option_name that have the value as follow:

————————————

a:20:{s:12:”showinserted”;b:1;s:9:”thumbsize”;s:2:”80″;s:10:”imgquality”;s:3:”100″;s:12:”thumbquality”;s:3:”100″;s:10:”imagetypes”;s:19:”jpg, jpeg, gif, png”;s:11:”imageinsert”;b:1;s:12:”imagemaxsize”;s:5:”51200″;s:13:”imagemaxwidth”;s:1:”0″;s:14:”imagemaxheight”;s:1:”0″;s:11:”mediainsert”;b:0;s:10:”mediatypes”;s:80:”dcr, mov, qt, mpg, mp3, mp4, mpeg, avi, wmv, wm, asf, asx, wmx, wvx, rm, ra, ram”;s:12:”mediamaxsize”;s:1:”0″;s:10:”mediawidth”;s:3:”320″;s:11:”mediaheight”;s:3:”240″;s:9:”filetypes”;s:18:”txt, rtf, doc, pdf”;s:11:”filemaxsize”;s:5:”51200″;s:10:”prohibited”;s:106:”php, php3, php5, js, html, htm, phtml, asp, aspx, ascx, jsp, cfm, cfc, pl, bat, exe, dll, reg, cgi, sh, py”;s:12:”useforphotos”;b:0;s:4:”lang”;s:2:”en“;s:9:”dbversion”;i:1;}

————————————–

I changed the value (in red) to “fr”. Now the setting in “Plupload language code” is “fr” and remains like that.

But unfortunately, that change had no impact and I’m still unable to get the “file uploader” showing up when the translation plugin is active.

DR didier Roudaut
didier Roudaut
Member

Ok now I renamed again the plugin translation file sp-plup-fr_FR.mo –> _sp-plup-fr_FR.mo , so it’is not active.

The “upload attachments” is now working properly (but the label is not translated of course), and the file uploader shows up  but what is new, is that the file uploader now appears in french. So the change I made(described in the previous post ) in the datatbase had an effect on the file uploader language.

So clearly there is a problem using the translation file “sp-plup-fr_FR.mo”, why ? I have no idea ! 

Didero

MP Mr Papa
Mr Papa
Member

why edit the db to set the language???  its in input on the forum – components – uploads admin panel…

okay, its possible we didnt escape properly some localization… will take a look…  there has been some changes there already…  might could send you copy to try, but want to look first…

MP Mr Papa
Mr Papa
Member

your site is throwing a bunch of 501 errors right now, so will have to look later…

DR didier Roudaut
didier Roudaut
Member

Yep ! All my post have disappeared for an unkown reason ! I’m quite anxious !

DR didier Roudaut
didier Roudaut
Member

The site is OK now ! (don’t know what has happen, some kind of maintenance I guess !)

MP Mr Papa
Mr Papa
Member

yeah but it still works…  looks like plupload in English still…  would need it back in fail mode to investigate…

DR didier Roudaut
didier Roudaut
Member

Sure I was making some test, now it’s back to french !

MP Mr Papa
Mr Papa
Member

okay, I think I see the string causing the issue… trying to determine if in our stuff or plupload itself…  investigating…

MP Mr Papa
Mr Papa
Member

okay, looks like one (at least this one) that I have already fixed in our working version of plupload…

lets see if we can get away with a quick and easy fix…  go to sp-resources/forum-plugins/plupload/library/sp-plupload-components.php and edit that file…  around line 110, find this code:

msg = file.name + ': ".__('Error', 'sp-plup')." ".__('999 - Unknown server error (check image size - may be exhausting memory)', 'sp-plup')."<br />';

and lets try replacing it with:

                        msg = file.name + ': ".__('Error', 'sp-plup')." ".esc_attr(__('999 - Unknown server error (check image size - may be exhausting memory)', 'sp-plup'))."<br />';

that will fix the error seeing now, but might be more… wasnt planning on releasing this version of plupload yet, but may need to…

DR didier Roudaut
didier Roudaut
Member

I changed the line according to your instructions !

Let’s check now !

MP Mr Papa
Mr Papa
Member

worked for me now!  still a few other strings in there that need similar treatment and have been fixed up…  wont be long on a update for plupload… just needs bit more testing…

DR didier Roudaut
didier Roudaut
Member

It also work great for me in firefox and IE, but on Chrome, the uploader shows up but the add file button has no effect !