Closed derastronaut closed 6 years ago
Kann ich auch bestätigen. Ist das nun ein Contao- oder Extension-Bug? 🤔
Extension Bug.
Would it be a solution to change this line to:
$arrElement['bounds'][2] = ((int)trim($tmp1[0]).((int)trim($tmp2[0])))/2 . ',' . ((int)trim($tmp1[1]).((int)trim($tmp2[1])))/2;
it is a solution, but I do not know if it is a good one :)
Having the same issue here, yet this
$arrElement['bounds'][2] = ((int)trim($tmp1[0]).((int)trim($tmp2[0])))/2 . ',' . ((int)trim($tmp1[1]).((int)trim($tmp2[1])))/2;
does not solve it for me.
Still the same problem with PHP 7.1.4, garyees solution doesn't work for me either.
Any other solutions? :)
Shame on me, garyees fix is working. I just had to edit the right file. I edited the file in system/modules but with composer the file is under composer/vendor.
I have made the same error many times ;)
Whether which file is the right one depends on how you installed the extension ;)
Please reopen if this still occurs in the next release. Thanks.
in der 2.0.9 noch enthalten (contao 3.5.35)
A non-numeric value encountered in composer/vendor/delahaye/dlh_googlemaps/classes/Googlemap.php on line 229
This is not a contao or extension error. It is ejected just like that in a free php-script.
Das ist kein contao oder Erweiterungsfehler. Er wird genau so in einem freien php-script ausgeworfen.
@rentieropa der Fehler tritt dann auf, wenn man, wie der Fehler schon sagt, non-numeric values mit numeric values in mathematischen Operationen mischt. So wie es auch in dieser Extension der Fall war.
Hallo zusammen,
nach der Umstellung auf PHP 7.1 erhalte ich folgende Fehlermeldung in den Logs von Contao:
Es scheint aber alles zu funktionieren. Die Maps werden im Frontend korrekt geladen und im Backend scheint auch alles ok zu sein. Habe einen Eintrag bearbeitet, alles wurde gespeichert.
Festgestellt unter Contao 3.5.24. dlh_googlemaps 2.2.0, dlh_geocode 1.0.4.