"Fatal error: Allowed memory size of 335544320 bytes exhausted (tried to allocate 35 bytes) in H:\GedView\includes\functions\functions_print_lists.php on line 61" while searching a person.
Adding memory in config.php doesn't help anything.
I must add that the database contains approx. 17000 (seventeenthousand) individuals.
Any ideas?
EJF
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There are two memory limits. The one in config.php, and a server-wide one in php.ini.
The lower applies. Edit php.ini and set the memory limit to something like 128M or 256M. Restart your webserver (apache/iis) for the change to take effect.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 16 bytes) in H:\GedView\includes\functions\functions_print_lists.php on line 61
and yes, both limits are set to 512M.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Jules
Either your server is especially slow, or there must be something wrong with your GEDCOM. My RAM is set to 256mb and my GEDCOM exceeds 50mb, yet we're able to import without incident and certainly don't exhaust the available memory.
That said, its looking for only a bit more, so increase it to 640MB or so and try it again.
-Stephen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry, I meant to also say that it would seem you probably don't have your DB properly set up - most likely a collation problem. There are numerous posts in HELP and OPEN DISCUSSION forums about slow results and memory issues. Check the DB first and make sure it is optimized and properly collated. Then perhaps reimport your GEDCOM.
=Stephen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
On Version 4.22 I get the following error:
"Fatal error: Allowed memory size of 335544320 bytes exhausted (tried to allocate 35 bytes) in H:\GedView\includes\functions\functions_print_lists.php on line 61" while searching a person.
Adding memory in config.php doesn't help anything.
I must add that the database contains approx. 17000 (seventeenthousand) individuals.
Any ideas?
EJF
There are two memory limits. The one in config.php, and a server-wide one in php.ini.
The lower applies. Edit php.ini and set the memory limit to something like 128M or 256M. Restart your webserver (apache/iis) for the change to take effect.
Thanks! Both files are set to 512M now but the error remains still the same. Is there an other tweak somewhere?
<<Both files are set to 512M>>
If your error is the same (i.e. you have reached a 32M limit), then I guess you haven't updated the right PHP.INI setting.
The PHP Information (Version 5.2.10) in PGV tells me it has a memory limit of 512M. So the PHP.INI file should be OK.
What about the "post_max_size" of 8M? Anything to do with the problem?
You said <<the error remains still the same>>
The error was <<memory size of 335544320 bytes exhausted>>
Are you saying that you are still getting this *exact* error, or whether you are getting a different error, say at 536870912 bytes?
Also, the PHP information page shows *two* limits. Are these *Both* 512M
The error message is now
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 16 bytes) in H:\GedView\includes\functions\functions_print_lists.php on line 61
and yes, both limits are set to 512M.
Jules
Either your server is especially slow, or there must be something wrong with your GEDCOM. My RAM is set to 256mb and my GEDCOM exceeds 50mb, yet we're able to import without incident and certainly don't exhaust the available memory.
That said, its looking for only a bit more, so increase it to 640MB or so and try it again.
-Stephen
Sorry, I meant to also say that it would seem you probably don't have your DB properly set up - most likely a collation problem. There are numerous posts in HELP and OPEN DISCUSSION forums about slow results and memory issues. Check the DB first and make sure it is optimized and properly collated. Then perhaps reimport your GEDCOM.
=Stephen
Thanks everybody!
The good idea was to reimport the GEDCOM File and - wow - all problems are gone.
A fine start in a fine week.
EJF