Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

JSON data from server could not be parsed
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: JSON data from server could not be parsed
#44278
JSON data from server could not be parsed 11 Years, 2 Months ago Karma: 0
Hi there,

I have an article calling a module. It works fine without server pagination. When I turn on server pagination (plugin Ajax dispatcher is enabled) I get the following message -

"DataTables warning (table id = 'at_221'): DataTables warning: JSON data from server could not be parsed. This is caused by a JSON formatting error."

Any idea what might be causing this?
Thanks!

Btw, I'm testing locally with xampp.
The administrator has disabled public write access.
 
#44279
Re:JSON data from server could not be parsed 11 Years, 2 Months ago Karma: 760
Hello,

"Server side pagination" doesn't work with a complex SQL query (for example when calculated fields are used).

Regards,
ARI Soft
The administrator has disabled public write access.
 
#44281
Re:JSON data from server could not be parsed 11 Years, 2 Months ago Karma: 0
Well, those are really bad news

I'm filtering a table by a date range and the result could potentially have way too many records to be handled without pagination, so I thought pagination was the solution. However, I changed the query so it doesn't have calculated fields nor conditions and still got the same error.

Is there any other way I could handle a table with 20...30 thousand records?
The administrator has disabled public write access.
 
#44282
Re:JSON data from server could not be parsed 11 Years, 2 Months ago Karma: 760
Could you provide the SQL query which you use?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#44283
Re:JSON data from server could not be parsed 11 Years, 2 Months ago Karma: 0
I simplified my query to just this -

SELECT PDATE, CCY, AMT
FROM trans

The table had formatted headers and columns. I removed all of it, leaving almost everything with default values and I still get the JSON warning.

But maybe there's no point in trying to solve this, as I won't be able to use pagination because I'm using calculated fields. I'd appreciate very much if you could point me in the direction of solving how to handle a big table that is the result of a query with variables. Thanks!
The administrator has disabled public write access.
 
#44284
Re:JSON data from server could not be parsed 11 Years, 2 Months ago Karma: 760
Only possible solution to work with large data is used server side pagination.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 12