Fatal Error beim duplizieren
-
Hallo!
Ich bitte um schnelle Hilfe.
Beim duplizieren (in meinem Fall von einem Serverobjekt) erhalte ich die FehlermeldungFatal error: Cannot use string offset as an array in /var/www/idoit/src/classes/export/isys_export_helper.class.php on line 2738
Gruß
-
Hm können wir grad nicht reproduzieren. Versuch mal in der genannten Datei die Zeile 2726 zu löschen und dann aus Zeile 2727 das hier zu machen:
foreach($p_value[C__CATEGORY_DATA__VALUE] as $l_key => $l_val){ -
Dann kommt das:
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /var/www/idoit/src/classes/export/isys_export_helper.class.php on line 2728Bist du dir mit den Zeilen sicher?
mfg
-
Nein sorry war die falsche Zeile

Mach das mal wieder Rückgängig und ersetz die fehlerhafte Zeile 2738 mit folgendem Code:
if (isset($p_value[C__CATEGORY_DATA__VALUE]) && is_array($p_value[C__CATEGORY_DATA__VALUE])) {
return (isset($p_value[C__CATEGORY_DATA__VALUE][0]) && is_array($p_value[C__CATEGORY_DATA__VALUE][0])) ?
$p_value[C__CATEGORY_DATA__VALUE][0]['id'] :
false;
} else return false; -
JO, sieht gut aus, danke. (=
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login