Topic Closed
Ando
14 Posts

Hello,

 

I wanted to change "//setlocale(LC_ALL, 'en_EN');" to "setlocale(LC_ALL, 'de_DE');" (inside the file gpconfig.php, row 74).

But that broke my backend:

  • I could not open the Items inside the "floating admin-box".
  • I could not edit a page (that small edit-icon didnt show up)
  • I could not drag the "floating admin-box" around. It wasnt movable.

After changing the gpconfig.php file back to its original state... everything just worked fine.

 

Greetings,

Ando

 

5 years ago#7548

juergen
1.5K Posts
54.4K Downloads
16 Plugins
design, web development & visual effects

Hi Ando,

I'd guess the problem resides in setting LC_ALL which also affects number processing, therefore floating point values will be formatted with comma (,) instead of dot(.) in german language. If I'm right, it will surely break all sorts of JavaScript.

You could try to set the variables more specific depending on what you want to achieve.


 

5 years ago#7549

Josh S.
2K Posts
283K Downloads
16 Themes
18 Plugins

Hmm, not sure what's going on there. I just changed the locale on my test server and nothing broke down. (I had to install the locale on the server and restart it since I didn't have de_DE already installed). I'm wondering if there's a conflict with a plugin you have installed or the theme being used.

5 years ago#7554

Ando
14 Posts

Hello,

I tried something different:

I created a phpinfo-document and there was this line: HTTP_ACCEPT_LANGUAGE de,en-US;q=0.7,en;q=0.3
So I thought: "Oh... no 'de_DE'? Lets try only 'de'!"
:-)

I changed "setlocale(LC_ALL, 'de_DE')" to "setlocale(LC_ALL, 'de')" (without "_DE")...

And ... yes! No problems!

 

Thanks for your help!

 

Greeting!

5 years ago#7558

juergen
1.5K Posts
54.4K Downloads
16 Plugins
design, web development & visual effects

Josh, just a guess: Could it be that the UI element positions get interpolated and saved to gpsess_XYZ123... as floating point pixel values in some cases? And then output as sth. like 124,42px (sholud be 124.42px) ?
This would explain the behavior.
Maybe when page is zoomed.

Let's test it...

5 years ago#7561

Josh S.
2K Posts
283K Downloads
16 Themes
18 Plugins

Could it be that the UI element positions get interpolated and saved to gpsess_XYZ123... as floating point pixel values in some cases

Not that I've been able to find. The session script converts coordinates to integers

Still haven't been able to reproduce the problem. In my latest attempt, I changed my browser language to German as well.

5 years ago#7573

Ando
14 Posts

Mmmm... strange.

Is there a way to generate a logfile or something like that?

Could that help finding the reason why this behaviour apears on my screen?

Greetings,

Ando

EDIT:

Okay. I read the "Debugging Document" (http://gpeasy.com/Docs/Debugging) and turned the debugging feature on. I also changed "de" to "de_DE" again.
But sadly no yellow error-message appeared at all.
There still was that fixed floating admin-box with the item "Admin" opened. I can close this item (it closes even animated). But then it is completely locked. When I refresh my Browser (FF 38.0.1, german, Win7 32bit) the Box again is open at the item "Admin". Then I can log off by clicking on "Log off". No problem. 

Changing "de_DE" to "de" unbreaks everything again...

Greetings,
Ando

Edited: 5 years ago#7601

Josh S.
2K Posts
283K Downloads
16 Themes
18 Plugins
Thanks for trying out the debug features. The problems you're describing are most likely producing errors in the browser (which, unfortunately, isn't covered by that debug page). Fortunately, getting error reports from the browser is pretty easy. This site has a pretty good breakdown of how to view errors in the browser. Just remember to clear the error log first, then reload the page to get the relevant errors.
5 years ago#7610

Ando
14 Posts

Okay. So I used CTRL+SHIFT+K in Firefox.

This is what came up, when I logged in:

  • SyntaxError: missing : after property id testevk:26:18
  • getPreventDefault() sollte nicht mehr verwendet werden. Verwenden Sie stattdessen defaultPrevented. jquery.min.js:2:0
  • "Invalid App Id: Must be a number or numeric string representing the application id." sdk.js:64:238
  • Diese Website verwendet ein SHA-1-Zertifikat; es wird empfohlen, Zertifikate mit Signaturalgorithmen zu verwenden, die stärkere Hashfunktionen verwenden als SHA-1.[Weitere Informationen] QrU_tEEWym9.js
  • ReferenceError: gpui is not defined admin.js:14:186

Greetings,

Ando

P.S.: "testevk" is the name of the root folder.

5 years ago#7614

Josh S.
2K Posts
283K Downloads
16 Themes
18 Plugins

SyntaxError: missing : after property id testevk:26:18

This is most likely the culprit though I'm not sure what's causing it yet. If my assumptions are correct, there's a some inline javascript being generated that looks something like this:

var variable = {"id"};

If you right click on the page and select "View Source" and look for the <script> section that contains var gpui = .... we can probably find the problem. Post the contents of that <script> section and I'll bet we find something like {"id"}.

5 years ago#7629

Ando
14 Posts

Hi Josh,

sorry for being late...

Here is the wanted <script>-section:


<script type="text/javascript">
var gpui={cmpct:0,vis:"use",tx:955,ty:270,ckx:1032,cky:221,ckd:false,dlayout:false};var gpRem=3,isadmin=true,gpBLink="\/hennef\/testevk",post_nonce="f5a59f591d"; var colorbox_lang = {"previous":"Vorherige","next":"Nächste","close":"Schließen","caption":"Beschreibung / Titel","current":"Bild {current} von {total}"};$(function(){$("video,audio").addClass("mejs-wmp");$("video,audio").mediaelementplayer({ startVolume : 0.8, defaultVideoWidth : '512', defaultVideoHeight : '288', audioWidth : '100%', audioHeight : '30', loop : false, enableAutosize : true, alwaysShowControls : false, iPadUseNativeControls : false, iPhoneUseNativeControls : false, AndroidUseNativeControls : false, enableKeyboard : true, pauseOtherPlayers : true, features : ["playpause","progress","duration","tracks","volume","fullscreen"] });$(".blog_gadget_link").click(function(){ $(this).next(".nodisplay").toggle(); });});
</script>

 

Greetings!

5 years ago#7654

juergen
1.5K Posts
54.4K Downloads
16 Plugins
design, web development & visual effects

Hi Ando,

I see that you are using MediaElement Player (a plugin I wrote).
In the script that initializes the player there is the startVolume value which currently is 0.8.
I wonder if this is causing the problem.
Try to set startVolume to 1 in Mediaelement Player » Settings and try the DE_de locale.

 

 

 

Edited: 5 years ago#7656

juergen
1.5K Posts
54.4K Downloads
16 Plugins
design, web development & visual effects

Ok, yep, MediaElement Player is the cause. I can reproduce it here.
It's because I do a check if startVolume is set in between 0 and 1 server-side using PHP (floatval).
I'll remove the check and keep the value as a string
and submit an update of the plugin shortly.

My fault.
Sorry for all the hassle.

5 years ago#7657

juergen
1.5K Posts
54.4K Downloads
16 Plugins
design, web development & visual effects

I just updated the MediaElement Player  plugin.

@Ando: The plugin update will not change your settings.
Please save your MediaElement Player Settings once after the update to make it work.
Set the locale to "de_DE" afterwards.

5 years ago#7658

Josh S.
2K Posts
283K Downloads
16 Themes
18 Plugins
Awesome, thanks Juergen!
5 years ago#7662

Ando
14 Posts

Hello juergen,

hello josh,

sorry for being late again :-)

 

I am very impressed!

Thank you! Great team!

 

Greetings,

Ando

5 years ago#7701

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

HH-Support

Company located in Tórshavn, Faroe Islands. * Webpage Design * Consultant & Provider of a wide range of programs for visually impaired and dyslextics.

Find out more about our Provider Spotlight

Log In

  Register