PHPExcel Export Error Reporting

QuestionsPHPExcel Export Error Reporting
Michael Sheppard asked 2 weeks ago

Do you have a way to report PHPExcel errors? Specifically, we run into issues with large file sizes. I can increase the memory and time-out issues, but it would be nice if I could report the cause to the end-user rather than the standard HTTP 500 page.

Ideally if the PHPExcel failed due to a size-limit it would pop-up a warning to the user the file-size has exceeded and to filter the results.

Any thoughts on how this could be accomplished?

 

Thanks

 

Mike

2 Answers
Abu Ghufran Staff answered 2 weeks ago

I’ve not tested this approach, but by some research i found this discussion asking for similar case.

https://stackoverflow.com/questions/8440439/safely-catch-a-allowed-memory-size-exhausted-error-in-php

phpexcel is not good for big files and memory leak issues are all over stackoverflow. To disable it, just rename folder ‘phpexcel’ to something else and it will fallback to previous excel export library. It might give you better results.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Mike answered 2 weeks ago

PHPExcel works pretty-well perfectly for all but the largest reports. Which really shouldn’t be exported anyway – it kind-of defeats the searching/filtering capabilities of the report engine.

I will review the site you gave me – it looks like some good information and might help.

Thanks

 

Mike

 

 

Your Answer

19 + 13 =

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?