ffexp2html.php generating an error in html file
zoblue opened this issue · comments
After running ffexp2html.php on my json file, the error written in the html file is:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 38719055 bytes) in C:\xampp\php\ffexp2html.php on line 197
Running XAMPP 5.6.3 with PHP 5.6.3 on a Windows 7 machine. Is this something I can fix?
Unfortunately I don't use Windows (and not even PHP anymore...), so I can only guess: the problem relies on the memory that the php
process uses and it's not enough. There should be a way to tell PHP to use as much memory as it needs, without limit (the allowed
mentioned there).
I think this could be a solution: https://grafikdesign.wordpress.com/2009/02/23/increase-php-memory-limit-by-xampp/
run php.exe with -d memory_limit=1G
like so:
php.exe -d memory_limit=1G ffexp2html.php filename.json > filename.html
This will tell php to limit the memory to 1 gigabytes. (You can also try other values like 512M etc)
@disq thank you very much! This worked great!
How do I mark this ticket as closed? Please mark it as closed, if I'm not able to.