Announcement

Collapse
No announcement yet.

Strange Error

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Strange Error

    My Scriptcase give strange errors, but eveything works.

    When usually use grid lookup:

    Id do menu nao encontrado.
    class:
    file: /home/scriptcase/scriptcase8/devel/lib/php/functions.inc.php
    function: StartIncItensCoolJsMenu
    line: 2345
    topico -> [fields_sub_cons_tit]


    When compile sometimes gives this error:

    Undefined offset: 1 | Script: /home/scriptcase/scriptcase8/devel/class/page/nmPageApp.class.php linha: 1215

  • #2
    I believe "Undefined offset" refers to a lookup when a column is not accessible.

    For example:
    $check_sql = "SELECT id"
    . " FROM prefs"
    . " WHERE id = 1";
    sc_lookup(rs, $check_sql);

    if (isset({rs[0][0]})) {
    $var = rs[0][0]};
    $another = rs[0][1]};
    }

    In the above example, the SELECT looks for only one column - "id". "$var" is assigned to the item at offset=0. "$another" is looking for offset=1, but since SELECT only grabbed one column, the script would return the "Undefined offset: 1" error.

    Comment


    • #3
      Hello at all
      Is more then 1 month that i have the follow message from scriptcas

      Invalid argument supplied for foreach() | Script: C:\Program Files\NetMake\v8\wwwroot\scriptcase\devel\lib\php\ language.inc.php linha: 70
      Thanks

      Comment

      Working...
      X