Pagemanager meldet Errors

A place to report and discuss bugs - please mention CMSimple-version, server, platform and browser version
Post Reply
Tata
Posts: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Pagemanager meldet Errors

Post by Tata » Fri Apr 01, 2022 4:39 pm

Auf einer Webseite, die ich an Host hochgeladen habe (die Seite selbs läuft, es geht aber nicht neue Unterseiten erstellen), meldet der Pagemanager eine lange Message:
SyntaxError: JSON.parse: unexpected character at line 2 column 1 of the JSON data:
[{"text":"O \u0161kole","li_attr":{"id":"pagemanager_0","data-url":"\/?O-skole"},"children":[{"text":"Hist\u00f3ria","li_attr":{"id":"pagemanager_1","data-url":"\/?O-skole\/Historia"},"children":[],"state":{"checked":false}},{"text":"Etick\u00fd k\u00f3dex","li_attr":{"id":"pagemanager_2","data-url":"\/?O-skole\/Eticky-kodex"},"children":[],"state":{"checked":false}},{"text":"Riadite\u013eka \u0161koly","li_attr":{"id":"pagemanager_3","data-url":"\/?O-skole\/Riaditelka-skoly"},"children":[],"state":{"checked":false}},{"text":"\u017divotopis riadite\u013eky \u0161koly","li_attr":... ......
Was kann es sein? Am Localhost kein Problem.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Pagemanager meldet Errors

Post by cmb » Fri Apr 01, 2022 5:00 pm

Tata wrote:
Fri Apr 01, 2022 4:39 pm
Auf einer Webseite, die ich an Host hochgeladen habe (die Seite selbs läuft, es geht aber nicht neue Unterseiten erstellen), meldet der Pagemanager eine lange Message:
SyntaxError: JSON.parse: unexpected character at line 2 column 1 of the JSON data:
Was kann es sein? Am Localhost kein Problem.
Da erzeugt der Server anscheinend ungültiges JSON. Eventuell ein Bug in PHP? Da Zeile 2 beanstandet wird, es aber eigentlich nur eine (sehr lange) Zeile geben sollte, stimmt vielleicht auch etwas mit dem Zeilenumbruch nicht. Kannst du mir bitte mal URL und Password schicken (bitte per E-Mail).
Christoph M. Becker – Plugins for CMSimple_XH

Tata
Posts: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Pagemanager meldet Errors

Post by Tata » Fri Apr 01, 2022 5:11 pm

Ja die Zeile ist unendlich, ich habe sie nur abgeschnitten...
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

Tata
Posts: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Pagemanager meldet Errors

Post by Tata » Fri Apr 01, 2022 7:23 pm

Am Host keine fatale Fehler auftauchen und alles läuft sogar mit PHP 8.1. Der XHdebug aber meldet:
DEPRECATED: Return type of XH\PluginConfig::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
/www/c/m/u13296/public_html/sosaw-8-1/cmsimple/classes/PluginConfig.php:52
DEPRECATED: Return type of XH\PluginConfig::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
/www/c/m/u13296/public_html/sosaw-8-1/cmsimple/classes/PluginConfig.php:67
DEPRECATED: Return type of XH\PluginConfig::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
/www/c/m/u13296/public_html/sosaw-8-1/cmsimple/classes/PluginConfig.php:83
DEPRECATED: Return type of XH\PluginConfig::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
/www/c/m/u13296/public_html/sosaw-8-1/cmsimple/classes/PluginConfig.php:98
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.


cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Pagemanager meldet Errors

Post by cmb » Sat Apr 02, 2022 10:55 am

Tata wrote:
Fri Apr 01, 2022 5:11 pm
Ja die Zeile ist unendlich, ich habe sie nur abgeschnitten...
Das eigentliche Problem ist nicht die lange Zeile, oder dass noch etwas danach steht, sondern dass vor den eigentlichen Daten bereits eine Leerzeile und ein BOM ausgegeben wurde. Das mag der Pagemanager nicht (und eventuell könnte es auch andere Problem bereiten). Also muss die Datei, die die Leerzeile und das BOM erzeugt gefunden und bereinigt werden.
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply