Welcome Guest, Not a member yet? Register   Sign In
Trying to integrate xajax...
#1

[eluser]mgandha[/eluser]
The below error occurs i have followed the WIKI to integrate XAJAX.. I thought this file wasnt even used.. any help is appreciated thx..

A PHP Error was encountered

Severity: Warning

Message: Invalid argument supplied for foreach()

Filename: plugin_layer/xajaxDefaultIncludePlugin.inc.php

Line Number: 255

here is the log..
ERROR - 2008-01-16 10:02:00 --> Severity: Notice --> Undefined index: query /Users/mgandha/Sites/Code/system/application/libraries/xajax.php 907
DEBUG - 2008-01-16 10:02:00 --> Validation Class Initialized
DEBUG - 2008-01-16 10:02:00 --> Validation Class Initialized
DEBUG - 2008-01-16 10:02:00 --> FAL_validation Library Initialized.
DEBUG - 2008-01-16 10:02:00 --> Model Class Initialized
DEBUG - 2008-01-16 10:02:00 --> Model Class Initialized
DEBUG - 2008-01-16 10:02:00 --> Model Class Initialized
DEBUG - 2008-01-16 10:02:00 --> Acc Class Initialized
DEBUG - 2008-01-16 10:02:00 --> Db_session class already loaded. Second attempt ignored.
DEBUG - 2008-01-16 10:02:00 --> Helpers loaded: freakauth_light
DEBUG - 2008-01-16 10:02:00 --> Helpers loaded: date
DEBUG - 2008-01-16 10:02:00 --> Model Class Initialized
ERROR - 2008-01-16 10:02:00 --> Severity: Warning --> Invalid argument supplied for foreach() /Users/mgandha/Sites/Code/system/application/libraries/plugin_layer/xajaxDefaultIncludePlugin.inc.php 255
ERROR - 2008-01-16 10:02:00 --> Severity: Warning --> Invalid argument supplied for foreach() /Users/mgandha/Sites/Code/system/application/libraries/plugin_layer/xajaxDefaultIncludePlugin.inc.php 268
#2

[eluser]Pascal Kriete[/eluser]
The important error is the first one in the log. The line that fails reads:
Code:
$sURL.= $aURL['path'].@$aURL['query'];
However aURL['query'] is set here:
Code:
$aURL['query'] = $_SERVER['QUERY_STRING'];

It seems you will need to have query strings enabled.
#3

[eluser]Unknown[/eluser]
Wow, that did it.

Why is it that I need register_globals=On for this? How can I disable register_globals?

Thanks,

-Ryan
#4

[eluser]!Z[/eluser]
Can you post your code so everyone can see how you register the xajax functions.




Theme © iAndrew 2016 - Forum software by © MyBB