Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ffexp2html.php generating an error in html file #3

Open
zoblue opened this issue Mar 10, 2015 · 4 comments
Open

ffexp2html.php generating an error in html file #3

zoblue opened this issue Mar 10, 2015 · 4 comments

Comments

@zoblue
Copy link

zoblue commented Mar 10, 2015

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?

@claudioc
Copy link
Owner

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/

@disq
Copy link
Contributor

disq commented Mar 11, 2015

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)

@zoblue
Copy link
Author

zoblue commented Mar 11, 2015

@disq thank you very much! This worked great!

@zoblue
Copy link
Author

zoblue commented Mar 13, 2015

How do I mark this ticket as closed? Please mark it as closed, if I'm not able to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants