Need Help in suiteCRM for getting get_entry_list response

Hi,
I got below error while trying to get response for get_entry_list method in suiteCRM when passing value of 100 for fetchcount argument. I have mentioned request details below.

if i passed value 10 means ,response getting properly. But this is taking too much time if we need to fetch more than 100 records.

I need proper solution for getting get_entry_list response fastly.

Error: {“Client found response content type of ‘text/html; charset=UTF-8’, but expected ‘text/xml’.\r\nThe request failed with an empty response.”}

Function with Argument : client.get_entry_list(sessionId, moduleName, WhereClause, OrderBy, offset_pos, selectedFields, linknametofields, fetch_count, deletedResult, false);

Thanks!

Could this be simply a problem of hitting some PHP limit?

Check your php.ini for these values:

memory_limit
max_execution_time

Hi,

The following values are available in our php.ini file.

memory_limit = 128M
max_execution_time = 120

What values need to assign to memory_limit and max_execution_time for getting 100 records per single request.

Thanks!

memory_limit 128MB is too low, use 256MB or even 512MB if your hosting doens’t limit you.

Hi,
i have checked with memory_limit=256M and 512M. i am getting below exception in this both scenarios. Need help on this.please give me actual solution.

Client found response content type of ‘text/html; charset=UTF-8’, but expected ‘text/xml’. The request failed with the error message: –
( ! ) Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 158210915 bytes) in C:\wamp\www\SuiteCRM\include\nusoap\nusoap.php on line

Thanks!

That number 268435456 is exactly 256MB (25610241024), so if you think you tried it with 512MB, you probably didn’t.

There are two PHP’s, one for Web server and another for command-line (CLI), SuiteCRM uses both (the CLI is for the Cron Scehduler jobs).

You need to make sure which one is giving the error, and you need to make sure your changes in php.ini are getting picked up.

In SuiteCRM, if you go into Admin / Diagnostics you can extract a phpinfo and see where your php.ini is, and what your effective memory_limit is.

Hi,

 I have checked with memory_limit= 512M and changed in both php.ini file. Its working fine now.Thank you so much for your help.

Thanks!