The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ajax call response
#1
So I have built 3 ajax scripts that return some values from my database.
However, whenever I run these ajax calls, they all return the same response:

data returned:
--------------
<script>
// Place analytics code here
</script>

Case 1:
If I don't set a response, a response is sent anyway with the above data.

Case 2:
If I set a response eg. echo "test"; then the following response is received:

data returned:
--------------
<script>
// Place analytics code here
</script>
test

Case 3:
If I don't include init.php then the ajax calls behave as they should.

Obviously something is wrong here, because the only file i'm including is init.php

Conclusion:
So I went to /users/helpers/us_helpers.php and commented out line 22:
//require_once $abs_us_root.$us_url_root.'usersc/includes/analytics.php';

And the problem looks fixed for now.
  Reply


Messages In This Thread
ajax call response - by dimitrisscript - 11-04-2016, 09:17 AM
ajax call response - by dan - 11-04-2016, 01:40 PM
ajax call response - by Brandin - 11-05-2016, 11:50 AM
ajax call response - by mudmin - 11-05-2016, 02:04 PM
ajax call response - by mudmin - 11-05-2016, 02:04 PM
ajax call response - by dimitrisscript - 11-07-2016, 11:27 AM
ajax call response - by mudmin - 11-12-2016, 02:52 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)