PhpGedView fails when building indexes or importing large GEDCOM files with no error messages. Help?
There are two problems that could be causing this when working with large GEDCOM files (>2MB). In order to get the information from the GEDCOM file, the file has to be opened and read into memory. PHP has a default memory limit of 8MB. This is a protection from rouge scripts trying to take all of a machine’s resources and disable it. Depending on your PHP version/configuration. If you are using a large gedcom you should probably double this amount especially while importing or indexing. To change the amount of memory allocated to PHP, edit the php.ini file (most likely located in /etc/php.ini on Unix or C:\WINNT\php.ini on windows) and change the following line: memory_limit = 8M Change this to: memory_limit = 16M A good rule of thumb would be to allocate 4x the size of your gedcom file. So a 4Mb gedcom shouldn’t need more than 16Mb in PHP. However an 8Mb gedcom could require up to 32Mb. After editing the php.ini file you need to restart your webserver. This is only helpful if you have
Related Questions
- When I configure --with-python, I get error messages saying, "warning: Not importing directory site: missing __init__.py". How do I fix this?
- PhpGedView fails when building indexes or importing large GEDCOM files with no error messages. Help?
- PhpGedView fails when building indexes or importing large GEDCOM files?