Was kann es sein? Am Localhost kein Problem.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":... ......
Pagemanager meldet Errors
Pagemanager meldet Errors
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:
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.
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.
Re: Pagemanager meldet Errors
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).Tata wrote: ↑Fri Apr 01, 2022 4:39 pmAuf 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:Was kann es sein? Am Localhost kein Problem.SyntaxError: JSON.parse: unexpected character at line 2 column 1 of the JSON data:
Christoph M. Becker – Plugins for CMSimple_XH
Re: Pagemanager meldet Errors
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.
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.
Re: Pagemanager meldet Errors
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.
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.
Re: Pagemanager meldet Errors
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