Posted: March 17, 2016 at 8:55 am
|
Hello, I have a little problem, When I set the API to a maximum of more then 1000 registrations the app return me a error: The Data couldn’t be read because it isn’t in the correct format. But if I set the API to 1000 no problem I get registration. Would you have a idea of the problem ? Thank you ! |
Hi there, Are you setting to registrations limit to 1000 in the app’s settings or within the API settings in WordPress? If the latter, have you tried changing the app’s settings? |
|
|
Hi Josh, in the App it set to unlimited. It’S in the API, if I set to 1000 I can sync but if I go over 1000 it doesn’t work. |
What value are you setting it to? Is it any value over 1000? If you set the value to 1001 does it still work then? |
|
|
Hi Tony, I can go up to 1500 registrations but over that the app say no registration. |
Hmm ok, so is that after waiting for a sec sections? Right now I suspect the request is timing out, meaning the high volumje of registrations is taking over 30 sections (the default timeout setting) and the app returns 0. |
|
|
yes after couple seconds I get the error. |
Hi Jean-Francois, It may help to see if there’s a PHP error that’s triggering this. Can you set up error logging on your site? You basically follow this guide: http://codex.wordpress.org/Editing_wp-config.php#Configure_Error_Logging Once you have error logging set up, it will capture any PHP errors and write them to a file. You can also try setting the max execution time to a higher value. Please be careful with making edits to the .htaccess file or php.ini file: http://codex.wordpress.org/Common_WordPress_Errors#Maximum_execution_time_exceeded |
|
|
Hi Josh, Here is the error I’m getting from the API [06-Apr-2016 10:09:08 America/Toronto] PHP 1. {main}() C:\wamp\www\wordpress\index.php:0 [06-Apr-2016 10:09:08 America/Toronto] PHP 2. require() C:\wamp\www\wordpress\index.php:17 [06-Apr-2016 10:09:08 America/Toronto] PHP 3. require_once() C:\wamp\www\wordpress\wp-blog-header.php:16 [06-Apr-2016 10:09:08 America/Toronto] PHP 4. do_action() C:\wamp\www\wordpress\wp-includes\template-loader.php:12 [06-Apr-2016 10:09:08 America/Toronto] PHP 5. call_user_func_array:{C:\wamp\www\wordpress\wp-includes\plugin.php:525}() C:\wamp\www\wordpress\wp-includes\plugin.php:525 [06-Apr-2016 10:09:08 America/Toronto] PHP 6. EspressoAPI_Router->template_redirect() C:\wamp\www\wordpress\wp-includes\plugin.php:525 [06-Apr-2016 10:09:08 America/Toronto] PHP 7. EspressoAPI_Generic_Controller->handleRequest() C:\wamp\www\wordpress\wp-content\plugins\espresso-json-api\includes\EspressoAPI_Router.class.php:99 [06-Apr-2016 10:09:08 America/Toronto] PHP 8. EspressoAPI_Generic_Controller->generalRequest() C:\wamp\www\wordpress\wp-content\plugins\espresso-json-api\includes\controllers\EspressoAPI_Generic_Controller.class.php:58 [06-Apr-2016 10:09:08 America/Toronto] PHP 9. EspressoAPI_Generic_Controller->generalRequestGet() C:\wamp\www\wordpress\wp-content\plugins\espresso-json-api\includes\controllers\EspressoAPI_Generic_Controller.class.php:74 [06-Apr-2016 10:09:08 America/Toronto] PHP 10. EspressoAPI_Generic_Resource_Facade_Read_Functions->getMany() C:\wamp\www\wordpress\wp-content\plugins\espresso-json-api\includes\controllers\EspressoAPI_Generic_Controller.class.php:90 [06-Apr-2016 10:09:08 America/Toronto] PHP 11. EspressoAPI_Generic_Resource_Facade_Read_Functions->initiateProcessSqlResults() C:\wamp\www\wordpress\wp-content\plugins\espresso-json-api\includes\resource_facades\parents\EspressoAPI_Generic_Resource_Facade_Read_Functions.class.php:454 [06-Apr-2016 10:09:08 America/Toronto] PHP 12. EspressoAPI_Transactions_Resource->processSqlResults() C:\wamp\www\wordpress\wp-content\plugins\espresso-json-api\includes\resource_facades\parents\EspressoAPI_Generic_Resource_Facade_Read_Functions.class.php:169 |
Hi Jean-Francois, It turns out that those are not errors. That’s a stack trace, which is normal. An error will start with something like |
|
|
ok I get this Fatal error: [07-Apr-2016 11:16:37 America/Toronto] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 73 bytes) in C:\wamp\www\wordpress\wp-content\plugins\espresso-json-api\includes\resources\3.1\EspressoAPI_Transactions_Resource.class.php on line 78 |
A ha! This is the guide you need to follow: http://codex.wordpress.org/Common_WordPress_Errors#Allowed_memory_size_exhausted |
|
|
yah first thing i did after reading the error message. in my php.ini it was set to the default 128mb, I increase it to 256mb. Now I can sync all my attendees. Thanks for help! 😉 |
You’re welcome! |
|
The support post ‘IOS APP’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.