Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported operand types: string + int #322

Open
Ynda opened this issue Dec 12, 2022 · 6 comments
Open

Unsupported operand types: string + int #322

Ynda opened this issue Dec 12, 2022 · 6 comments

Comments

@Ynda
Copy link

Ynda commented Dec 12, 2022

Habe es endlich geschafft SyncCto mit Contao 4.13.14 und PHP 8.1 zu installieren, nur der Betrieb will noch nicht so richtig klappen.
Ich bekomme immer die Fehlermeldung:

Unsupported operand types: string + int

[2022-12-12T17:07:46.874359+00:00] request.CRITICAL: Uncaught PHP Exception TypeError: "Unsupported operand types: string + int" at /var/www/vhosts/o*****e/httpdocs/vendor/menatwork/synccto/classes/SyncCtoDatabaseUpdater.php line 105 {"exception":"[object] (TypeError(code: 0): Unsupported operand types: string + int at /var/www/vhosts/o*****e/httpdocs/vendor/menatwork/synccto/classes/SyncCtoDatabaseUpdater.php:105)"} []

Wisst Ihr damit etwas anzufangen?
Danke und Gruß
Andy

@Ynda
Copy link
Author

Ynda commented Dec 13, 2022

Was ich in dieser Konstellation auch bemerkt habe, ist die Tatsache, dass die Verbindung zwischen Server (TLS mit gültigem Zertifikat) und Client (TLS ohne gültiges Zertifikat) nicht funktioniert. Da wird angemerkt, dass ctoCommunications nicht installiert sei, was definitiv nicht stimmt. In die andere Richtung, also Client -> Server (zusätzlich noch über HTTP-Auth) wird eine Verbindung aufgebaut. Leider kann diese aber nicht zum Synchronisieren benutzt werden, da schon besagtes Problem mit Unsupported operand types: string int auftaucht. Ich habe dafür verschiedene Varianten getestet. Das kommt immer so ab der Mitte bis Ende.

Ich habe im Debug Modus noch eine Warning bekommen:

Warning: Undefined array key "tl_syncCto_clients"

Betrifft wohl die Verwendung von $GLOBALS['TL_LANG']['tl_syncCto_clients']['id'][0] in tl_synccto_clients.php (line 40).
Komischerweise stuft der Symfony Profiler diese Warning als critical ein.

Wenn Ihr noch weitere Infos dazu braucht, dann lasst es mich wissen.
Danke und Gruß
Andy

@Ynda
Copy link
Author

Ynda commented Jan 13, 2023

Hallo zusammen,
gibt es hier schon neue Erkenntnisse. Habe wieder eine weitere Installation, wo dieses Problem auftaucht.
Danke und Gruß
Andy

@zonky2
Copy link
Contributor

zonky2 commented Feb 17, 2023

@Ynda kannst Du das mit der aktuellen Version nochmal testen?

@Ynda
Copy link
Author

Ynda commented Feb 27, 2023

Das sieht soweit sehr gut aus. Ich konnte auf Anhieb keine weiteren Probleme feststellen.
Alle Bereiche der Synchronisation funktionieren sauber. Ich habe jetzt aber nur Server -> Client getestet.
SyncCto Version 4.1.2
Gruß Andy

@Ynda
Copy link
Author

Ynda commented Mar 2, 2023

Jetzt konnte ich nochmal Client -> Server testen. Da ist der Fehler leider noch vorhanden.
Unsupported operand types: string + int
Kann man aber relativ einfach umgehen, indem man auf dem Client die Synchronisation in Richtung Server anstößt. Diese Richtung funktioniert.

Was leider schon seit langem nicht funktioniert, ist die Übertragung von großen Dateien, bzw. so wie es aussieht, klappt der Zusammenbau auf dem Zielsystem nicht.

Danke für Eure Arbeit.

Gruß Andy

@Ynda
Copy link
Author

Ynda commented May 17, 2023

Hallo,
jetzt habe ich doch eine Umgebung, wo man das Problem nicht so einfach umgehen kann.
Ich versuche eine lokale Installation mit einer Online-Version zur synchronisieren. Da kann man den Spieß leider nicht so einfach umdrehen. Wäre also doch schön hierfür eine Lösung zu bekommen.

Danke und Gruß
Andy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants