Topic: $sExpected missing in xajax 0.5.rc2 full

It seems the variable $sExpected is missing or undefined in xajax 0.5.rc2 full

Undefined variable: sExpected [xajax/xajax_core/xajaxArgumentManager.inc.php], line 446

its located at line 453

trigger_error(

    $objLanguageManager->getText('ARGMGR:ERR:01')

    . $sExpected

    . $objLanguageManager->getText('ARGMGR:ERR:02')

    . $sChunk

    , E_USER_ERROR

    );

when I grep the xajax files there is only 1 place $sExpected is found and thats in the file xajaxArgumentManager.inc.php line 453

Hope this helps,

Sebas

Re: $sExpected missing in xajax 0.5.rc2 full

After giving $sExpected some dummy data it had the same error on $sChunk

so $sChunk is also missing, i think i've seen this error being reported before on here and supposedly it was fixed smile

Sebas

Re: $sExpected missing in xajax 0.5.rc2 full

Hi Sebas,

Thanks for reporting this issue. I'll fix it asap.

4 (edited by sebas 2009-01-07 11:56:54 AM)

Re: $sExpected missing in xajax 0.5.rc2 full

Perhaps its interesting to know how I found this error in the first place.

I use xajax.getFormValues on a form with ~350 input fields, then pass this to an xajax created function.
Everything works fine until the number of input fields gets above a certain number.

By looking at the result from xajax.getFormValues I think the function works fine, so the parsing in php go's wrong somehow.

The error message contains the following error information:

<some more of the same above this>
$nFound    =    7
$nLength    =    3998
$sKey    =    "inex"
$mValue    =    array(
    "15"
)
$bFound    =    false
$nExpectedLength    =    9
$sExpecting    =    "</xjxobj>"
$cType    =    "S"
$sValue    =    "15"

I think the post is too big.. i'm looking into that atm

Re: $sExpected missing in xajax 0.5.rc2 full

Sebas, this post http://community.xajaxproject.org/viewt … 162#p26162 solved a similar problem.

Re: $sExpected missing in xajax 0.5.rc2 full

You made my day, thanks! smile