jDiction Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

jDiction 2.2.0 released. http://jdiction.org/downloads

Pages: [1] 2 3

Author Topic: Nach Update auf Joomla 3.4 wechselt Menu und Content erst nach zweitem Klick  (Read 54352 times)

Sandra

  • Newbie
  • *
  • Posts: 13
    • View Profile

Guten Tag,

Jdiction ist für mich unverzichtbar, ein ganz grosses Dankeschön für dieses extrem wertvolle Tool!

Seit neustem habe ich aber ein Problem: Seit dem Update auf Joomla 3.4 (sowie jdiction 1.4), wechselt die Sprache meines Menus und meines Artikelinhalts erst nach dem zweiten Klick auf die Flagge. Beim ersten Klick wechseln nur Systeminhalte (z.B. Inhalt des Login-Formulars).

Verwendetes Template: protostar (andere Templates habe ich versuchsweise rausgeworfen, hat aber nichts geholfen)
Die einzige zusätzliche Erweiterung ist JoomGallery (zurzeit ohne Übersetzung).

Jdiction check:

Test    Result
 
Version    

    Library Version: 1.4.0
    Joomla Version 3.4.0 is ok.

Plugin    

    JDiction Plugin is enabled
    JDiction Plugin is loaded at position 0 should be 1
    Languagefilter is enabled

Database    

    jDiction Database Driver is selected

Language    

    Translations are not equal to frontend translations.

Module    

    Module is enabled

Common mistakes    

    It seems that there are no common mistakes.


Die Bemerkung "translations not equal to frontend" kommt davon, dass ich das englische Sprachpaket installiert habe, aber für das Frontend nicht benutze)

Beiliegend sende ich ein Screenshot von der Situation, wenn ich von der deutschsprachigen Seite aus auf die Flagge für Spanisch klicke.

Ich habe mich im Forum umgesehen und schon einiges ausprobiert, aber nichts will helfen. Haben Sie eine Ahnung, wo das Problem liegen könnte?

Vielen herzlichen Dank!

Sandra
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1684
    • View Profile

kannst du die angehängt version probieren, weil ich hab dieses problem nicht.

Aber vielleicht hilft die Änderung.
Logged
Joomla! 5.0 Release Manager
Vote at JED

Sandra

  • Newbie
  • *
  • Posts: 13
    • View Profile

Ich habe das Paket installiert, leider bleibt das Problem unverändert.
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1684
    • View Profile

tritt das Problem mit und ohne sef urls auf?
Logged
Joomla! 5.0 Release Manager
Vote at JED

Sandra

  • Newbie
  • *
  • Posts: 13
    • View Profile

Es macht strikte keinen Unterschied.

Zuerst hatte ich unter Global Configuration > SEO Settings > Search enginge friendly urls "yes", den Rest auf "no".

Dann die Einstellung auf "no" gewechselt wie den Rest, leider ohne Erfolg.

Wenn ich das Debug System aktiviere, bekomme ich Meldungen, dass ich in der Datenbank doppelte Abfragen habe. Könnte das einen Zusammenhang haben? Leider bin ich kein Mysql-Spezialist...
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1684
    • View Profile

Nein die doppelten Abfragen sind egal.

Das Problem ist das ich für 3.4 die Spracherkennung selber mache und anscheinend nicht immer mitbekomme wenn die sprache geändert wird...

Ich versuch das Problem nachzustellen.
Logged
Joomla! 5.0 Release Manager
Vote at JED

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1684
    • View Profile

Programmierst du auch?

Also wenn ich dich bitte im jdiction module code einzufügen und mir die Ausgabe zu Posten geht das?
Logged
Joomla! 5.0 Release Manager
Vote at JED

Sandra

  • Newbie
  • *
  • Posts: 13
    • View Profile

Ich bin Laie. Habe mich bis jetzt in Joomla nur an die Templates gewagt. Aber ich will es gerne versuchen.
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1684
    • View Profile

Es ist nichts besonderes es geht nur darum das danach die Seite kaputt sein könnte wenn man was falsch macht. deswegen immer backup machen.

Ich bräuchte nur die Ausgabe von

Code: [Select]
print_r([$_REQUEST, JFactory::getApplication()->input]);Und zwar müsstest du das in libraries\jdiction\helpers\detect.php in Zeile 37 gleich nach Funktions Beginn von detectLanguage einfügen und dann die spreche wechseln und die verschieden ausgaben posten.

danke.
Logged
Joomla! 5.0 Release Manager
Vote at JED

Sandra

  • Newbie
  • *
  • Posts: 13
    • View Profile

Hier was ich erhalte:

Code: [Select]
Array ( [0] => Array ( [lang] => de [Itemid] => 101 ) [1] => JInput Object ( [options:protected] => Array ( ) [filter:protected] => JFilterInput Object ( [tagsArray] => Array ( ) [attrArray] => Array ( ) [tagsMethod] => 0 [attrMethod] => 0 [xssAuto] => 1 [tagBlacklist] => Array ( [0] => applet [1] => body [2] => bgsound [3] => base [4] => basefont [5] => embed [6] => frame [7] => frameset [8] => head [9] => html [10] => id [11] => iframe [12] => ilayer [13] => layer [14] => link [15] => meta [16] => name [17] => object [18] => script [19] => style [20] => title [21] => xml ) [attrBlacklist] => Array ( [0] => action [1] => background [2] => codebase [3] => dynsrc [4] => lowsrc ) ) [data:protected] => Array ( [lang] => de [Itemid] => 101 ) [inputs:protected] => Array ( [cookie] => JInputCookie Object ( [options:protected] => Array ( ) [filter:protected] => JFilterInput Object ( [tagsArray] => Array ( ) [attrArray] => Array ( ) [tagsMethod] => 0 [attrMethod] => 0 [xssAuto] => 1 [tagBlacklist] => Array ( [0] => applet [1] => body [2] => bgsound [3] => base [4] => basefont [5] => embed [6] => frame [7] => frameset [8] => head [9] => html [10] => id [11] => iframe [12] => ilayer [13] => layer [14] => link [15] => meta [16] => name [17] => object [18] => script [19] => style [20] => title [21] => xml ) [attrBlacklist] => Array ( [0] => action [1] => background [2] => codebase [3] => dynsrc [4] => lowsrc ) ) [data:protected] => Array ( [d30c7cd8640ecd112a7c028144293c7f] => es-ES [54aaf909c249c7f6ed1cd41de1c13e25] => cfqpolvrc4p3q92qr50geub575 [635ff30d1eaeaea8d6c9cfaeba53a66d] => pbn7lhimo6i2kikugcnsgmfft7 ) [inputs:protected] => Array ( ) ) ) ) ) Array ( [0] => Array ( [lang] => de [Itemid] => 101 ) [1] => JInput Object ( [options:protected] => Array ( ) [filter:protected] => JFilterInput Object ( [tagsArray] => Array ( ) [attrArray] => Array ( ) [tagsMethod] => 0 [attrMethod] => 0 [xssAuto] => 1 [tagBlacklist] => Array ( [0] => applet [1] => body [2] => bgsound [3] => base [4] => basefont [5] => embed [6] => frame [7] => frameset [8] => head [9] => html [10] => id [11] => iframe [12] => ilayer [13] => layer [14] => link [15] => meta [16] => name [17] => object [18] => script [19] => style [20] => title [21] => xml ) [attrBlacklist] => Array ( [0] => action [1] => background [2] => codebase [3] => dynsrc [4] => lowsrc ) ) [data:protected] => Array ( [lang] => de [Itemid] => 101 ) [inputs:protected] => Array ( [cookie] => JInputCookie Object ( [options:protected] => Array ( ) [filter:protected] => JFilterInput Object ( [tagsArray] => Array ( ) [attrArray] => Array ( ) [tagsMethod] => 0 [attrMethod] => 0 [xssAuto] => 1 [tagBlacklist] => Array ( [0] => applet [1] => body [2] => bgsound [3] => base [4] => basefont [5] => embed [6] => frame [7] => frameset [8] => head [9] => html [10] => id [11] => iframe [12] => ilayer [13] => layer [14] => link [15] => meta [16] => name [17] => object [18] => script [19] => style [20] => title [21] => xml ) [attrBlacklist] => Array ( [0] => action [1] => background [2] => codebase [3] => dynsrc [4] => lowsrc ) ) [data:protected] => Array ( [d30c7cd8640ecd112a7c028144293c7f] => es-ES [54aaf909c249c7f6ed1cd41de1c13e25] => cfqpolvrc4p3q92qr50geub575 [635ff30d1eaeaea8d6c9cfaeba53a66d] => pbn7lhimo6i2kikugcnsgmfft7 ) [inputs:protected] => Array ( ) ) ) ) )
Warning: Cannot modify header information - headers already sent by (output started at /home/[...]/libraries/joomla/cache/controller/callback.php:177) in /home/[...]/libraries/joomla/input/cookie.php on line 85

Hoffe, das hilft weiter. Jetzt bleibt die Sprache bei Spanisch hängen, auch wenn ich zwei Mal auf Deutsch klicke (oder Französisch).

Vielen vielen Dank!

« Last Edit: March 04, 2015, 04:57:05 am by Sandra »
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1684
    • View Profile

vielleicht hab ich das problem gefunden, wenn ich morgen im büro bin schau ich mir das genauer an.
Logged
Joomla! 5.0 Release Manager
Vote at JED

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1684
    • View Profile

So, hab jetzt einiges geändert.

kannst du mal die Version propieren?
Logged
Joomla! 5.0 Release Manager
Vote at JED

Sandra

  • Newbie
  • *
  • Posts: 13
    • View Profile

Ich habe das Paket installiert, die Check-Page zeigt folgendes:

Test    Result
 
Version    

    Library Version: 1.4.1-git.c279b2f
    Joomla Version 3.4.0 is ok.

Plugin    

    JDiction Plugin is enabled
    JDiction Plugin is loaded at position 0 should be 1
    Languagefilter is enabled

Database    

    jDiction Database Driver is selected

Language    

    Translations are not equal to frontend translations.

Module    

    Module is enabled

Common mistakes    

    It seems that there are no common mistakes.


Entgegen der Angabe im Check wird aber die jdiction Datenbank nicht verwendet. Unter Global configuration ist sie nicht in der Auswahlliste. Damit funktionieren die Buttons auf der Website natürlich nicht.

Habe das das Vorgängerpaket wieder drüberinstalliert und siehe da, die DB ist wieder zurück! Im neuen Paket ist wohl etwas herausgefallen.
Logged

Sandra

  • Newbie
  • *
  • Posts: 13
    • View Profile

Mein Lösungsvorschlag ist vielleich nicht elegant (und vielleicht auch nicht machbar): Aber wäre es nicht möglich, nach dem Sprachwechsel die Aktualisierung der ganzen Seite zu forcieren?
Um die übersetzten Inhalte zu sehen, habe ich nämlich die Wahl: ich kann die Seite aktualisieren oder nochmals auf die Flagge klicken.
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1684
    • View Profile

noch a bisserl Geduld, ich hoffe ich hab bald eine finale lösung.
Logged
Joomla! 5.0 Release Manager
Vote at JED

Pages: [1] 2 3