rws
Runalyzer
Posts: 82
Joined: Sun 15. Mar 2015, 17:43

Re: Installation von 2.1: mySQL-User nicht akzeptiert

Tue 6. Oct 2015, 22:42

Hi Michael,

im Error-Log steht nichts. Es gibt nur Einträge im AccessLog, aber nichts interessantes. Da sieht es also gut aus.
Was könnte noch fehlen, dass die JS-Aufrufe Fehler liefern? Ich habe langsam keine Ideen mehr.
Mit 2.0.4 funktioniert es noch prima. Das könnte also vermutlich etwas mit den neuen Diagrammen und den farbigen Punkten zu tun haben. Sind da auch PHP-Aufrufe drin, die spezielle Pakete benötigen?

Grüße
Ronny
0 x

User avatar
mipapo
Administrator
Posts: 1353
Joined: Mon 29. Jul 2013, 20:26
Location: Kiel
Contact: Website Facebook Twitter

Re: Installation von 2.1: mySQL-User nicht akzeptiert

Wed 7. Oct 2015, 09:48

Das sieht ja eher nach einem Javascriptproblem aus und nicht nach PHP.
Es hat sie bei den PHP Paketen seit Version 2.0* nichts geändert.
0 x
###Donate to RUNALYZE###
Höhenmeter (Korrektur & Berechnung) - Nutzerhilfe/User help -

Run Happy!,
Michael
P.S. Ich antworte gerne kurz und knackig ;)
Image

User avatar
laufhannes
Core developer
Posts: 753
Joined: Mon 29. Jul 2013, 20:59

Re: Installation von 2.1: mySQL-User nicht akzeptiert

Wed 7. Oct 2015, 17:51

Kannst du einmal den kompletten JavaScript-Code liefern, der für den entsprechenden Plot im Request erscheint - oder den kompletten Request für die Aktivitätsanzeige? (Einen Ausschnitt hattest du in dem werte.jpg-Screenshot)
Dann könnten wir das lokal einmal selbst ausprobieren, ob es auch bei uns zu dem Fehler führt und dann entsprechend debuggen, warum das plot-Objekt nicht erzeugt wird.
0 x
User help -- short questions via Twitter, Facebook

rws
Runalyzer
Posts: 82
Joined: Sun 15. Mar 2015, 17:43

Re: Installation von 2.1: mySQL-User nicht akzeptiert

Wed 7. Oct 2015, 19:51

Hallo Hannes,

meinst du diesen Code?

Code: Select all

RunalyzePlot.preparePlot("cadence_786","600","190",function(){RunalyzePlot.addPlot("cadence_786", [{"label":"Frequenz (Laufen)","color":"rgb(41,128,185)","data":[["0.0009",108],["0.00258",110],["0.00625",154],["0.01052",154],["0.01491",154],["0.01706",156],["0.02563",158],["0.02981",158],["0.03669",160],["0.04177",160],["0.04685",160],["0.06472",160],["0.08268",160],["0.10354",160],["0.117",160],["0.12774",162],["0.14254",160],["0.15392",158],["0.15666",156],["0.16723",154],["0.17602",156],["0.1901",156],["0.19868",156],["0.21009",158],["0.23119",156],["0.24238",158],["0.2652",160],["0.27248",160],["0.29268",160],["0.30264",160],["0.32563",160],["0.34524",160],["0.36842",162],["0.38138",162],["0.40436",162],["0.42364",162],["0.44635",162],["0.46899",160],["0.47225",160],["0.4942",160],["0.51653",162],["0.52597",162],["0.54836",162],["0.56954",162],["0.59203",162],["0.59542",162],["0.61543",162],["0.62822",162],["0.65145",162],["0.67404",162],["0.68072",162],["0.70363",162],["0.7101",162],["0.73279",162],["0.75542",164],["0.77801",162],["0.78447",162],["0.8065",162],["0.82891",162],["0.85128",160],["0.87367",162],["0.89375",158],["0.91493",162],["0.93815",160],["0.94514",162],["0.96582",162],["0.98584",164],["1.00143",164],["1.02427",164],["1.04693",164],["1.07006",164],["1.09326",166],["1.10007",166],["1.12344",166],["1.14651",166],["1.16725",166],["1.19024",166],["1.21287",166],["1.21642",166],["1.2394",166],["1.2622",166],["1.28543",166],["1.30838",166],["1.32504",166],["1.34527",166],["1.36674",168],["1.38978",168],["1.41055",168],["1.43066",166],["1.45368",166],["1.46686",166],["1.48743",166],["1.50771",166],["1.51824",168],["1.53872",168],["1.56197",168],["1.58241",168],["1.59617",168],["1.61699",166],["1.63056",166],["1.65134",166],["1.67127",168],["1.68686",168],["1.70732",168],["1.72934",168],["1.73636",168],["1.75792",166],["1.76389",166],["1.78684",168],["1.80821",168],["1.82945",168],["1.85219",168],["1.87468",166],["1.89078",166],["1.91104",168],["1.93188",166],["1.95195",168],["1.97525",166],["1.99624",166],["2.00272",166],["2.02287",168],["2.04366",166],["2.06367",168],["2.08387",168],["2.1069",168],["2.13002",168],["2.15257",168],["2.17184",170],["2.19262",168],["2.21539",168],["2.23587",168],["2.25664",168],["2.27742",168],["2.2988",168],["2.31973",168],["2.33603",168],["2.33928",168],["2.36096",168],["2.38177",170],["2.40183",170],["2.4246",170],["2.44525",168],["2.46643",168],["2.48683",168],["2.50944",168],["2.53118",168],["2.5544",168],["2.57775",168],["2.59869",168],["2.62187",168],["2.6419",168],["2.65181",168],["2.67292",168],["2.69479",168],["2.71555",168],["2.72615",168],["2.74952",168],["2.76972",168],["2.79063",166],["2.8114",168],["2.83413",168],["2.84091",168],["2.86407",168],["2.88652",166],["2.90879",168],["2.93087",168],["2.95236",168],["2.9729",168],["2.98815",168],["3.00132",168],["3.02276",166],["3.04355",166],["3.06493",164],["3.07137",164],["3.09168",162],["3.10104",162],["3.11847",162],["3.12658",160],["3.13441",160],["3.13981",160],["3.15925",162],["3.1623",162],["3.1842",162],["3.18735",162],["3.21034",160],["3.22877",164],["3.24409",162],["3.26508",164],["3.28692",164],["3.31028",164],["3.33195",164],["3.3538",166],["3.37605",166],["3.39915",164],["3.4208",166],["3.44167",166],["3.44494",166],["3.46497",166],["3.48807",166],["3.50895",166],["3.52289",166],["3.54546",164],["3.55509",164],["3.56489",162],["3.58735",164],["3.61026",164],["3.62962",166],["3.63283",166],["3.64945",166],["3.65976",166],["3.68048",166],["3.68386",166],["3.70471",164],["3.70784",164],["3.73057",162],["3.75206",162],["3.77504",164],["3.79756",164],["3.81884",164],["3.82858",164],["3.84984",164],["3.87264",164],["3.89591",166],["3.91667",166],["3.9371",166],["3.94661",166],["3.96926",166],["3.9911",164],["4.00028",164],["4.02184",164],["4.04341",164],["4.06651",164],["4.08881",164],["4.11117",164],["4.13256",164],["4.13496",164],["4.15386",160],["4.17579",156],["4.19609",158],["4.21621",158],["4.22713",158],["4.24594",158],["4.26875",158],["4.27163",158],["4.29355",158],["4.29989",156],["4.32112",156],["4.32347",156],["4.34278",156],["4.36461",158],["4.36774",158],["4.38834",160],["4.40219",160],["4.42273",160],["4.44395",160],["4.44703",160],["4.46832",158],["4.47034",156],["4.47482",112],["4.47672",110],["4.48392",108],["4.4932",110],["4.50069",110],["4.51266",110],["4.52499",114],["4.53175",114],["4.53824",144],["4.5574",158],["4.56957",162],["4.58209",162],["4.59954",164],["4.61424",164],["4.63434",164],["4.65486",164],["4.67761",164],["4.69726",164],["4.71868",162],["4.73944",160],["4.76193",158],["4.77401",160],["4.78646",162],["4.7955",162],["4.81833",164],["4.84019",164],["4.86234",164],["4.8841",164],["4.90522",164],["4.92706",164],["4.94781",162],["4.96671",164],["4.98809",162],["4.99143",162],["5.00108",162],["5.01057",162],["5.03295",160],["5.03606",160],["5.04918",152],["5.06975",154],["5.08548",152],["5.09526",152],["5.10662",148],["5.11817",148],["5.12717",148],["5.1353",148],["5.14546",150],["5.15504",148],["5.1666",146],["5.17707",148],["5.18588",150],["5.1976",150],["5.20604",150],["5.22038",150],["5.22803",150],["5.23701",148],["5.24516",146],["5.25694",146],["5.26333",104],["5.27045",104],["5.28053",104],["5.28765",106],["5.2896",110],["5.29471",154],["5.31748",156],["5.33614",156],["5.35274",156],["5.36842",152],["5.38254",156],["5.39812",154],["5.41611",154],["5.43398",154],["5.45134",154],["5.46694",154],["5.48861",156],["5.50824",156],["5.53108",156],["5.53986",156],["5.55942",156],["5.57876",106],["5.60102",160],["5.60388",162],["5.62568",162],["5.64658",162],["5.66823",162],["5.69058",162],["5.71314",164],["5.73637",164],["5.74277",164],["5.75561",164],["5.76543",164],["5.77804",164],["5.80031",162],["5.81292",162],["5.83525",164],["5.84813",164],["5.87025",164],["5.87688",164],["5.89908",164],["5.92114",164],["5.94343",162],["5.96367",162],["5.98449",162],["6.0016",162],["6.00821",162],["6.03112",162],["6.03427",162],["6.05734",162],["6.06049",162],["6.08178",162],["6.08807",162],["6.10052",160],["6.10746",162],["6.12835",162],["6.14838",160],["6.17023",162],["6.19206",158],["6.2112",162],["6.23398",162],["6.25716",164],["6.27273",162],["6.29139",160],["6.30217",160],["6.31251",158],["6.32493",158],["6.3335",122],["6.33954",116],["6.34397",114],["6.35086",114],["6.35161",114],["6.35235",0],["6.3534",128],["6.35799",112],["6.36264",112],["6.36512",110],["6.3724",108],["6.38434",112],["6.38629",112],["6.4028",158],["6.42304",162],["6.44611",162],["6.45275",162],["6.4753",162],["6.47857",162],["6.49764",162],["6.51949",164],["6.54187",164],["6.56447",164],["6.56741",162],["6.58906",162],["6.59181",162],["6.61355",164],["6.63618",164],["6.64276",164],["6.66516",164],["6.68444",164],["6.70689",164],["6.71315",164],["6.73537",166],["6.7417",166],["6.76368",164],["6.78052",164],["6.80377",164],["6.80982",164],["6.82552",162],["6.84104",164],["6.84775",162],["6.86808",162],["6.89015",162],["6.9115",160],["6.91445",160],["6.93515",162],["6.94099",160],["6.96385",160],["6.98677",160],["6.99562",160],["7.00141",160],["7.02234",160],["7.04297",160],["7.06426",162],["7.08175",162],["7.10241",160],["7.12319",162],["7.14401",160],["7.16472",162],["7.18572",162],["7.20708",162],["7.2287",162],["7.23493",162],["7.2565",162],["7.26584",162],["7.28519",164],["7.30785",164],["7.31448",164],["7.33401",164],["7.35643",164],["7.37808",162],["7.40068",162],["7.42298",162],["7.44467",160],["7.46679",160],["7.48684",160],["7.50808",160],["7.52937",160],["7.55119",160],["7.57132",160],["7.5916",160],["7.61205",160],["7.63287",160],["7.65331",160],["7.67355",160],["7.6795",160],["7.69992",158],["7.72269",156],["7.73098",158],["7.74799",158],["7.76239",160],["7.78298",160],["7.7971",160],["7.81831",160],["7.83319",158],["7.85336",160],["7.87406",160],["7.89505",162],["7.91683",160],["7.93741",160],["7.95797",160],["7.97885",160],["8.0001",160],["8.02098",160],["8.04303",160],["8.06393",160],["8.06711",160],["8.08799",160],["8.10857",160],["8.12999",160],["8.15072",160],["8.17143",160],["8.19273",160],["8.21329",160],["8.23432",162],["8.25547",162],["8.27628",160],["8.2967",160],["8.30824",160],["8.32872",160],["8.34916",160],["8.3698",160],["8.39105",160],["8.412",160],["8.43343",160],["8.45392",160],["8.47432",160],["8.49469",158],["8.51617",160],["8.51922",160],["8.53979",160],["8.56085",162],["8.58132",162],["8.60241",162],["8.62341",160],["8.6465",160],["8.66721",160],["8.68698",160],["8.70857",158],["8.71138",158],["8.73371",158],["8.73972",158],["8.75993",158],["8.78209",158],["8.79077",158],["8.81323",158],["8.83041",158],["8.85042",158],["8.873",158],["8.8815",158],["8.90398",158],["8.92413",158],["8.94449",158],["8.95962",160],["8.98257",160],["9.00009",160],["9.02041",156],["9.03472",160],["9.0555",160],["9.07554",160],["9.09563",160],["9.11856",160],["9.13897",160],["9.16166",160],["9.18439",156],["9.20491",158],["9.22609",158],["9.24701",160],["9.26756",160],["9.28797",160],["9.30967",158],["9.33117",158],["9.35336",158],["9.37397",158],["9.39176",158],["9.41224",160],["9.43236",158],["9.45257",158],["9.47031",158],["9.49086",158],["9.5114",158],["9.53263",156],["9.54334",156],["9.56572",154],["9.57396",156],["9.59569",156],["9.61838",156],["9.6336",156],["9.65507",156],["9.67788",156],["9.69749",158],["9.71842",158],["9.74062",156],["9.7607",156],["9.7694",156],["9.79343",154],["9.80298",154],["9.81506",156],["9.82043",156],["9.82786",154],["9.8459",156],["9.8574",156],["9.86632",154],["9.87248",156],["9.87556",156],["9.88161",156],["9.89052",156],["9.90269",156],["9.92507",156],["9.93439",158],["9.9563",156],["9.97872",156],["9.99835",156],["10.00145",158],["10.02213",156],["10.03621",154],["10.05797",156],["10.07493",156],["10.08297",156],["10.09872",156],["10.11898",154],["10.14059",154],["10.14319",154],["10.16464",154],["10.18212",156],["10.20408",156],["10.22227",152],["10.24429",156],["10.25338",156],["10.27458",158],["10.29326",158],["10.3138",156],["10.33589",156],["10.35666",156],["10.37959",152],["10.39422",114],["10.40191",110],["10.40488",110]],"yaxis":1}], {"yaxes":[{"tickFormatter":RunalyzePlot.flotHookColorPoints([185, 173, 162, 151], ["#8E44AD", "#2980B9", "#27AE60", "#E67E22"], "#E74C3C"),"minTickSize":10,"tickDecimals":0}],"grid":{"markings":[{"color":"rgba(0,0,0,0.5)","lineWidth":1,"y1axis":{"from":158,"to":158}}]},"xaxis":{"tickFormatter":RunalyzePlot.flotHookColorPoints([185, 173, 162, 151], ["#8E44AD", "#2980B9", "#27AE60", "#E67E22"], "#E74C3C")},"series":{"points":{"show":true,"lineWidth":2},"curvedLines":{"apply":false}},"hooks":{"draw":[RunalyzePlot.flotHookColorPoints([185, 173, 162, 151], ["#8E44AD", "#2980B9", "#27AE60", "#E67E22"], "#E74C3C")]}}, {}, [{"x":0,"y":158,"text":"ø 158 spm","toX":0,"toY":0}]);});
Es liegt m.E. nicht am Browser/JavaScript. Auf verschiedenen Browsern/Geräten ist der gleiche Effekt. Auch sind alle Trainings betroffen, die als fit-Date importiert wurden. Die alten tcx-Trainings (über Garmin-Plugin) funktionieren.
Der gleiche Datenbestand mit runalyze 2.0.4 funktioniert auch.
Es könnte an den Daten liegen (aber bei anderen Usern funktioniert das ja aber auch) oder an der Seitengenerierung im Apache/PHP unter Windows.

Die fit-Datei schick ich per Mail. Wenn du noch Infos brauchst, dann melde dich nochmal.
Und vielen Dank für eure Mühe.

Grüße
Ronny
0 x

User avatar
laufhannes
Core developer
Posts: 753
Joined: Mon 29. Jul 2013, 20:59

Re: Installation von 2.1: mySQL-User nicht akzeptiert

Wed 7. Oct 2015, 21:23

Hallo Ronny,

ich habe mit der Datei in unserer Onlineversion keine Probleme.

Was mir beim Vergleich der jeweiligen Plot-Code auffällt: In deinem Fall taucht

Code: Select all

RunalyzePlot.flotHookColorPoints([185, 173, 162, 151], ...
insgesamt dreimal auf, einerseits am Ende als draw-Hook (wo es hingehört) und außerdem noch zweimal als tickFormatter für x- und y-Achse, wo es nichts zu suchen hat. Ich bin mir aber nicht sicher, ob das tatsächlich der Grund für den Fehler ist.

Kannst du einmal überprüfen, ob es hilft, in https://github.com/Runalyze/Runalyze/bl ... x.php#L364 den Aufruf von uniqid() in uniqid('test', true) zu ändern?
0 x
User help -- short questions via Twitter, Facebook

rws
Runalyzer
Posts: 82
Joined: Sun 15. Mar 2015, 17:43

Re: Installation von 2.1: mySQL-User nicht akzeptiert

Wed 7. Oct 2015, 21:45

Hallo,

hab's so geändert:

Code: Select all

	public static function json_encode_jsfunc($input, $funcs = array(), $level = 0) {
		foreach($input as $key => $value) {
			if (is_array($value)) {
				$ret = self::json_encode_jsfunc($value, $funcs, 1);
				$input[$key] = $ret[0];
				$funcs = $ret[1];
			} elseif (substr($value,0,8) == 'function') {
                  $func_key = "#".uniqid('test', true)."#";
                  $funcs[$func_key] = $value;
                  $input[$key] = $func_key;
			}
Macht leider keinen Unterschied (trotz vorsorglichem löschen von Browsercache und phpfastcache).

Code: Select all

RunalyzePlot.preparePlot("cadence_786","600","190",function(){RunalyzePlot.addPlot("cadence_786", [{"label":"Frequenz (Laufen)","color":"rgb(41,128,185)","data":[["0.0009",108],["0.00258",110],["0.00625",154],["0.01052",154],["0.01491",154],["0.01706",156],["0.02563",158],["0.02981",158],["0.03669",160],["0.04177",160],["0.04685",160],["0.06472",160],["0.08268",160],["0.10354",160],["0.117",160],["0.12774",162],["0.14254",160],["0.15392",158],["0.15666",156],["0.16723",154],["0.17602",156],["0.1901",156],["0.19868",156],["0.21009",158],["0.23119",156],["0.24238",158],["0.2652",160],["0.27248",160],["0.29268",160],["0.30264",160],["0.32563",160],["0.34524",160],["0.36842",162],["0.38138",162],["0.40436",162],["0.42364",162],["0.44635",162],["0.46899",160],["0.47225",160],["0.4942",160],["0.51653",162],["0.52597",162],["0.54836",162],["0.56954",162],["0.59203",162],["0.59542",162],["0.61543",162],["0.62822",162],["0.65145",162],["0.67404",162],["0.68072",162],["0.70363",162],["0.7101",162],["0.73279",162],["0.75542",164],["0.77801",162],["0.78447",162],["0.8065",162],["0.82891",162],["0.85128",160],["0.87367",162],["0.89375",158],["0.91493",162],["0.93815",160],["0.94514",162],["0.96582",162],["0.98584",164],["1.00143",164],["1.02427",164],["1.04693",164],["1.07006",164],["1.09326",166],["1.10007",166],["1.12344",166],["1.14651",166],["1.16725",166],["1.19024",166],["1.21287",166],["1.21642",166],["1.2394",166],["1.2622",166],["1.28543",166],["1.30838",166],["1.32504",166],["1.34527",166],["1.36674",168],["1.38978",168],["1.41055",168],["1.43066",166],["1.45368",166],["1.46686",166],["1.48743",166],["1.50771",166],["1.51824",168],["1.53872",168],["1.56197",168],["1.58241",168],["1.59617",168],["1.61699",166],["1.63056",166],["1.65134",166],["1.67127",168],["1.68686",168],["1.70732",168],["1.72934",168],["1.73636",168],["1.75792",166],["1.76389",166],["1.78684",168],["1.80821",168],["1.82945",168],["1.85219",168],["1.87468",166],["1.89078",166],["1.91104",168],["1.93188",166],["1.95195",168],["1.97525",166],["1.99624",166],["2.00272",166],["2.02287",168],["2.04366",166],["2.06367",168],["2.08387",168],["2.1069",168],["2.13002",168],["2.15257",168],["2.17184",170],["2.19262",168],["2.21539",168],["2.23587",168],["2.25664",168],["2.27742",168],["2.2988",168],["2.31973",168],["2.33603",168],["2.33928",168],["2.36096",168],["2.38177",170],["2.40183",170],["2.4246",170],["2.44525",168],["2.46643",168],["2.48683",168],["2.50944",168],["2.53118",168],["2.5544",168],["2.57775",168],["2.59869",168],["2.62187",168],["2.6419",168],["2.65181",168],["2.67292",168],["2.69479",168],["2.71555",168],["2.72615",168],["2.74952",168],["2.76972",168],["2.79063",166],["2.8114",168],["2.83413",168],["2.84091",168],["2.86407",168],["2.88652",166],["2.90879",168],["2.93087",168],["2.95236",168],["2.9729",168],["2.98815",168],["3.00132",168],["3.02276",166],["3.04355",166],["3.06493",164],["3.07137",164],["3.09168",162],["3.10104",162],["3.11847",162],["3.12658",160],["3.13441",160],["3.13981",160],["3.15925",162],["3.1623",162],["3.1842",162],["3.18735",162],["3.21034",160],["3.22877",164],["3.24409",162],["3.26508",164],["3.28692",164],["3.31028",164],["3.33195",164],["3.3538",166],["3.37605",166],["3.39915",164],["3.4208",166],["3.44167",166],["3.44494",166],["3.46497",166],["3.48807",166],["3.50895",166],["3.52289",166],["3.54546",164],["3.55509",164],["3.56489",162],["3.58735",164],["3.61026",164],["3.62962",166],["3.63283",166],["3.64945",166],["3.65976",166],["3.68048",166],["3.68386",166],["3.70471",164],["3.70784",164],["3.73057",162],["3.75206",162],["3.77504",164],["3.79756",164],["3.81884",164],["3.82858",164],["3.84984",164],["3.87264",164],["3.89591",166],["3.91667",166],["3.9371",166],["3.94661",166],["3.96926",166],["3.9911",164],["4.00028",164],["4.02184",164],["4.04341",164],["4.06651",164],["4.08881",164],["4.11117",164],["4.13256",164],["4.13496",164],["4.15386",160],["4.17579",156],["4.19609",158],["4.21621",158],["4.22713",158],["4.24594",158],["4.26875",158],["4.27163",158],["4.29355",158],["4.29989",156],["4.32112",156],["4.32347",156],["4.34278",156],["4.36461",158],["4.36774",158],["4.38834",160],["4.40219",160],["4.42273",160],["4.44395",160],["4.44703",160],["4.46832",158],["4.47034",156],["4.47482",112],["4.47672",110],["4.48392",108],["4.4932",110],["4.50069",110],["4.51266",110],["4.52499",114],["4.53175",114],["4.53824",144],["4.5574",158],["4.56957",162],["4.58209",162],["4.59954",164],["4.61424",164],["4.63434",164],["4.65486",164],["4.67761",164],["4.69726",164],["4.71868",162],["4.73944",160],["4.76193",158],["4.77401",160],["4.78646",162],["4.7955",162],["4.81833",164],["4.84019",164],["4.86234",164],["4.8841",164],["4.90522",164],["4.92706",164],["4.94781",162],["4.96671",164],["4.98809",162],["4.99143",162],["5.00108",162],["5.01057",162],["5.03295",160],["5.03606",160],["5.04918",152],["5.06975",154],["5.08548",152],["5.09526",152],["5.10662",148],["5.11817",148],["5.12717",148],["5.1353",148],["5.14546",150],["5.15504",148],["5.1666",146],["5.17707",148],["5.18588",150],["5.1976",150],["5.20604",150],["5.22038",150],["5.22803",150],["5.23701",148],["5.24516",146],["5.25694",146],["5.26333",104],["5.27045",104],["5.28053",104],["5.28765",106],["5.2896",110],["5.29471",154],["5.31748",156],["5.33614",156],["5.35274",156],["5.36842",152],["5.38254",156],["5.39812",154],["5.41611",154],["5.43398",154],["5.45134",154],["5.46694",154],["5.48861",156],["5.50824",156],["5.53108",156],["5.53986",156],["5.55942",156],["5.57876",106],["5.60102",160],["5.60388",162],["5.62568",162],["5.64658",162],["5.66823",162],["5.69058",162],["5.71314",164],["5.73637",164],["5.74277",164],["5.75561",164],["5.76543",164],["5.77804",164],["5.80031",162],["5.81292",162],["5.83525",164],["5.84813",164],["5.87025",164],["5.87688",164],["5.89908",164],["5.92114",164],["5.94343",162],["5.96367",162],["5.98449",162],["6.0016",162],["6.00821",162],["6.03112",162],["6.03427",162],["6.05734",162],["6.06049",162],["6.08178",162],["6.08807",162],["6.10052",160],["6.10746",162],["6.12835",162],["6.14838",160],["6.17023",162],["6.19206",158],["6.2112",162],["6.23398",162],["6.25716",164],["6.27273",162],["6.29139",160],["6.30217",160],["6.31251",158],["6.32493",158],["6.3335",122],["6.33954",116],["6.34397",114],["6.35086",114],["6.35161",114],["6.35235",0],["6.3534",128],["6.35799",112],["6.36264",112],["6.36512",110],["6.3724",108],["6.38434",112],["6.38629",112],["6.4028",158],["6.42304",162],["6.44611",162],["6.45275",162],["6.4753",162],["6.47857",162],["6.49764",162],["6.51949",164],["6.54187",164],["6.56447",164],["6.56741",162],["6.58906",162],["6.59181",162],["6.61355",164],["6.63618",164],["6.64276",164],["6.66516",164],["6.68444",164],["6.70689",164],["6.71315",164],["6.73537",166],["6.7417",166],["6.76368",164],["6.78052",164],["6.80377",164],["6.80982",164],["6.82552",162],["6.84104",164],["6.84775",162],["6.86808",162],["6.89015",162],["6.9115",160],["6.91445",160],["6.93515",162],["6.94099",160],["6.96385",160],["6.98677",160],["6.99562",160],["7.00141",160],["7.02234",160],["7.04297",160],["7.06426",162],["7.08175",162],["7.10241",160],["7.12319",162],["7.14401",160],["7.16472",162],["7.18572",162],["7.20708",162],["7.2287",162],["7.23493",162],["7.2565",162],["7.26584",162],["7.28519",164],["7.30785",164],["7.31448",164],["7.33401",164],["7.35643",164],["7.37808",162],["7.40068",162],["7.42298",162],["7.44467",160],["7.46679",160],["7.48684",160],["7.50808",160],["7.52937",160],["7.55119",160],["7.57132",160],["7.5916",160],["7.61205",160],["7.63287",160],["7.65331",160],["7.67355",160],["7.6795",160],["7.69992",158],["7.72269",156],["7.73098",158],["7.74799",158],["7.76239",160],["7.78298",160],["7.7971",160],["7.81831",160],["7.83319",158],["7.85336",160],["7.87406",160],["7.89505",162],["7.91683",160],["7.93741",160],["7.95797",160],["7.97885",160],["8.0001",160],["8.02098",160],["8.04303",160],["8.06393",160],["8.06711",160],["8.08799",160],["8.10857",160],["8.12999",160],["8.15072",160],["8.17143",160],["8.19273",160],["8.21329",160],["8.23432",162],["8.25547",162],["8.27628",160],["8.2967",160],["8.30824",160],["8.32872",160],["8.34916",160],["8.3698",160],["8.39105",160],["8.412",160],["8.43343",160],["8.45392",160],["8.47432",160],["8.49469",158],["8.51617",160],["8.51922",160],["8.53979",160],["8.56085",162],["8.58132",162],["8.60241",162],["8.62341",160],["8.6465",160],["8.66721",160],["8.68698",160],["8.70857",158],["8.71138",158],["8.73371",158],["8.73972",158],["8.75993",158],["8.78209",158],["8.79077",158],["8.81323",158],["8.83041",158],["8.85042",158],["8.873",158],["8.8815",158],["8.90398",158],["8.92413",158],["8.94449",158],["8.95962",160],["8.98257",160],["9.00009",160],["9.02041",156],["9.03472",160],["9.0555",160],["9.07554",160],["9.09563",160],["9.11856",160],["9.13897",160],["9.16166",160],["9.18439",156],["9.20491",158],["9.22609",158],["9.24701",160],["9.26756",160],["9.28797",160],["9.30967",158],["9.33117",158],["9.35336",158],["9.37397",158],["9.39176",158],["9.41224",160],["9.43236",158],["9.45257",158],["9.47031",158],["9.49086",158],["9.5114",158],["9.53263",156],["9.54334",156],["9.56572",154],["9.57396",156],["9.59569",156],["9.61838",156],["9.6336",156],["9.65507",156],["9.67788",156],["9.69749",158],["9.71842",158],["9.74062",156],["9.7607",156],["9.7694",156],["9.79343",154],["9.80298",154],["9.81506",156],["9.82043",156],["9.82786",154],["9.8459",156],["9.8574",156],["9.86632",154],["9.87248",156],["9.87556",156],["9.88161",156],["9.89052",156],["9.90269",156],["9.92507",156],["9.93439",158],["9.9563",156],["9.97872",156],["9.99835",156],["10.00145",158],["10.02213",156],["10.03621",154],["10.05797",156],["10.07493",156],["10.08297",156],["10.09872",156],["10.11898",154],["10.14059",154],["10.14319",154],["10.16464",154],["10.18212",156],["10.20408",156],["10.22227",152],["10.24429",156],["10.25338",156],["10.27458",158],["10.29326",158],["10.3138",156],["10.33589",156],["10.35666",156],["10.37959",152],["10.39422",114],["10.40191",110],["10.40488",110]],"yaxis":1}], {"yaxes":[{"tickFormatter":RunalyzePlot.flotHookColorPoints([185, 173, 162, 151], ["#8E44AD", "#2980B9", "#27AE60", "#E67E22"], "#E74C3C"),"minTickSize":10,"tickDecimals":0}],"grid":{"markings":[{"color":"rgba(0,0,0,0.5)","lineWidth":1,"y1axis":{"from":158,"to":158}}]},"xaxis":{"tickFormatter":RunalyzePlot.flotHookColorPoints([185, 173, 162, 151], ["#8E44AD", "#2980B9", "#27AE60", "#E67E22"], "#E74C3C")},"series":{"points":{"show":true,"lineWidth":2},"curvedLines":{"apply":false}},"hooks":{"draw":[RunalyzePlot.flotHookColorPoints([185, 173, 162, 151], ["#8E44AD", "#2980B9", "#27AE60", "#E67E22"], "#E74C3C")]}}, {}, [{"x":0,"y":158,"text":"ø 158 spm","toX":0,"toY":0}]);});
0 x

User avatar
laufhannes
Core developer
Posts: 753
Joined: Mon 29. Jul 2013, 20:59

Re: Installation von 2.1: mySQL-User nicht akzeptiert

Wed 7. Oct 2015, 22:29

Ich bin immer noch recht ratlos und kann nur zufällig herumstochern: Probiere sonst mal mt_rand() statt uniqid('test', true).

Und lass dir evtl. mal in https://github.com/Runalyze/Runalyze/bl ... t.php#L133 $this->Options ausgeben (print_r oder var_dump; wird dann allerdings für alle Grafiken ausgegeben). Evtl. rutscht es tatsächlich vorher schon falsch in die Optionen.
0 x
User help -- short questions via Twitter, Facebook

User avatar
laufhannes
Core developer
Posts: 753
Joined: Mon 29. Jul 2013, 20:59

Re: Installation von 2.1: mySQL-User nicht akzeptiert

Wed 7. Oct 2015, 22:39

Ich habe es zumindest jetzt lokal kontrollieren können: Wenn RunalyzePlot.flotHookColorPoints bereits als tickFormatter auftaucht, habe ich das Problem auch. Meine Vermutung ist eben, dass uniqid() bei dir - warum auch immer - immer den gleichen Wert zurückliefert, sodass die drei unterschiedlichen JS-Funktionen alle durch die gleiche ersetzt werden.

Diese umständige Methode in der Ajax-Klasse ist notwendig, da die Standardmethode json_decode() die JS-Funktionen andernfalls wie einfachen Text behandeln würde.
0 x
User help -- short questions via Twitter, Facebook

rws
Runalyzer
Posts: 82
Joined: Sun 15. Mar 2015, 17:43

Re: Installation von 2.1: mySQL-User nicht akzeptiert

Wed 7. Oct 2015, 23:12

Hallo Hannes,

ich habe ziemlich planslos versucht, deinen Vorschlag mit print_r umzusetzen. Keine Ahnung, was ich da machen muss :oops:

Hast du eine Idee, was ich noch versuchen kann? Ist uniqid() eine PHP-Funktion? Kann das ein Bug in meiner PHP-Version sein? Kann ich das irgendwie prüfen?


Ergänzung:
Habe den uniqid-Aufruf getestet:
uniqid(): 5615e8b2a3afb uniqid(): 5615e8b2a3afb uniqid(): 5615e8b2a3afb uniqid('php_'): php_5615e8b2a3afb uniqid('', true): 5615e8b2a3afb5.68482010
3 Aufrufe liefern tatsächlich den gleichen Wert...

Habe nochmal PHP 5.5 installiert - auch hier liefert uniqid den identischen Wert.
Vielleicht ein Problem unter Windows:
https://bugs.php.net/bug.php?id=65626
Last edited by rws on Thu 8. Oct 2015, 07:24, edited 1 time in total.
0 x

User avatar
laufhannes
Core developer
Posts: 753
Joined: Mon 29. Jul 2013, 20:59

Re: Installation von 2.1: mySQL-User nicht akzeptiert

Thu 8. Oct 2015, 06:51

uniqid() ist eine PHP-Funktion, ja. Ich habe dazu aber gerade folgendes gefunden:
Also worth to note is that since microtime() only works on systems that have gettimeofday() > present, which Windows natively DOES NOT, uniqid() might yield just the single-second-resolution UNIX timestamp in a Windows environment.
Von daher, vergiss erstmal die Ausgabe der Optionen. Stattdessen, probiere den Aufruf der Aktivität einmal, indem du uniqid() durch mt_rand() ersetzt, und einmal, indem du es durch openssl_random_pseudo_bytes() ersetzt.
0 x
User help -- short questions via Twitter, Facebook

Return to “Runalyze v2.1.x”

Who is online

Users browsing this forum: No registered users and 2 guests