Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login

    Fatal Error beim duplizieren

    Scheduled Pinned Locked Moved Entwicklung
    5 Posts 2 Posters 1.7k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DigiDanielD Offline
      DigiDaniel
      last edited by

      Hallo!

      Ich bitte um schnelle Hilfe.
      Beim duplizieren (in meinem Fall von einem Serverobjekt) erhalte ich die Fehlermeldung

      Fatal error: Cannot use string offset as an array in /var/www/idoit/src/classes/export/isys_export_helper.class.php on line 2738

      Gruß

      1 Reply Last reply Reply Quote 0
      • dsD Offline
        ds
        last edited by

        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){

        1 Reply Last reply Reply Quote 0
        • DigiDanielD Offline
          DigiDaniel
          last edited by

          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 2728

          Bist du dir mit den Zeilen sicher?

          mfg

          1 Reply Last reply Reply Quote 0
          • dsD Offline
            ds
            last edited by

            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;

            1 Reply Last reply Reply Quote 0
            • DigiDanielD Offline
              DigiDaniel
              last edited by

              JO, sieht gut aus, danke. (=

              1 Reply Last reply Reply Quote 0

              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
              • First post
                Last post