1

I am getting this timeout error when I try to read xlsx files using Laravel Excel. Xls files work fine though. I increased memory limit in php.ini but it still returns the same error. Note that this doesn't happen in my local machine, only on the shared server that I use for prod and test. I found a topic on stack overflow that recommends some settings to decrease memory consumption by activating caching and other things (link: How to fix memory getting exhausted with PHPExcel? ).

However this thread is for PHP Excel. Even though Laravel Excel is a PHP Excel child I don't know how to access the corresponding configuration.

Community
  • 1
  • 1
Leandro
  • 367
  • 4
  • 20
  • Be aware about some limitations shared servers has. I't seem's a process execution time more than limit memory usage , try to add the set_time_limit(0); directive ... – Joaquin Javi Jul 30 '16 at 21:31

2 Answers2

0

php.ini isn't in effect until the server is restarted, and if that's a shared server you won't be able to restart the server yourself. Contact your hosting provider.

Artur Grigio
  • 5,185
  • 8
  • 45
  • 65
0

I had this problem and for this I created a lib that only does the import and returns an array with all the content of the file, is much faster than the laravel excel and does not have this problem try to use it in development can change what I want to, if you want, I'll put anyone who wants to help as a git contributor.

lib on gitHub

Ne Ma
  • 1,719
  • 13
  • 19