How can I debug the PHP Script for the Export of Excel.

QuestionsHow can I debug the PHP Script for the Export of Excel.
Faisal Ayub asked 8 months ago

How can I debug the PHP Script for the Export of Excel.

The page is not showing adn not giving any error on php 8.2.
I am using v2.8.1

 

http://localhost/gridphp/demos/appearance/excel-view.php?grid_id=list1&export=1&jqgrid_page=1&export_type=&sidx=1&sord=DESC&rows=20

6 Answers
Faisal Ayub answered 8 months ago

Even the excel-view is not working with php 8.2 on the Latest Free Version.

Abu answered 8 months ago

Hello,

I verified the latest free version excel-view demo on php 8.3 and it runs as expected.

Please check your php error logs. Perhaps, some configuration or extension might be disabled.

Faisal Ayub answered 8 months ago

[Mon Apr 14 10:03:11.413770 2025] [php:error] [pid 2092:tid 1864] [client ::1:52867] PHP Fatal error:  Uncaught TypeError: array_walk_recursive(): Argument #2 ($callback) must be a valid callback, class jqgrid does not have a method \”sanitize_csv_data\” in D:\\\\xampp\\\\htdocs\\\\gridphp-free\\\\lib\\\\inc\\\\jqgrid_dist.php:1258\\nStack trace:\\n#0 D:\\\\xampp\\\\htdocs\\\\gridphp-free\\\\lib\\\\inc\\\\jqgrid_dist.php(1258): array_walk_recursive(Array, Array)\\n#1 D:\\\\xampp\\\\htdocs\\\\gridphp-free\\\\demos\\\\appearance\\\\excel-view.php(176): jqgrid->render(\’list1\’)\\n#2 {main}\\n  thrown in D:\\\\xampp\\\\htdocs\\\\gridphp-free\\\\lib\\\\inc\\\\jqgrid_dist.php on line 1258, referer: http://localhost/gridphp-free/demos/appearance/excel-view.php This is the error I am receiving on PHP 8.2.12 on the latest Free Version of GridPHP

Faisal Ayub answered 8 months ago

above is the error in localhost with 8.2.12 PHP version and below is the error in php 8.3 in cloud version https://imgur.com/a/7b2VJ07

Abu answered 7 months ago

This issue is fixed in the latest build, and you can download free version again to get update.

Faisal answered 1 week ago

The similar problem in Export Excel I am facing in 8.4. But can’t see errros in Error Log

Abu Ghufran Staff replied 7 days ago

Please try enabling error display from lib/inc/jqgrid_dist.php line 12
ini_set(“display_errors”,”on”);

And check if it shows the error on the screen and share those details.

Your Answer

19 + 3 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?