Posted: February 4, 2018 at 12:33 am
|
Dear support, while loading eventespresso app we’re getting “Error Occurred – The requested resource could not be found but may be available again in the future. Subsequent requests by the client are permissible. The scan already worked at my mobile in the past but as we tried yesterday, only me could scan properly, the others 3 were getting the error above. Then I deinstalled my app and installed a new version. Since there I’m now getting same error. We’re using EE4 and current versions of the app, WP and EE4. Thanks for your troubleshooting: This could not help. I adjusted .htaccess but it didn’t work. Refresh via permalinks either. Could you please help? We wanted to test the app with 4 mobile phones today. Thanks. Best regards, |
Hi Alex, Which device are you using, Android or Apple? The apps use the REST API to communicate with your server and on checking the site linked to your support license its showing a blank screen. You can test this yourself by navigating to {your_domain}/wp-json/ It should show content but your site shows error 500 and a whitescreen. If you check the servers error logs can you see any errors there? Or enable WP_DEBUG using the snippet here: https://eventespresso.com/wiki/troubleshooting-checklist/#wpdebug Then let us know once you have the above enabled and we can test again. |
|
|
We’re using Apple for test. And would need to use 3-4 mobile phones. Perhapps also Android version on the event. The event is in April but we need to fix it asap for testing. Yes, I did a retest as you said. It shows white screen. Where can I see the servers error logs? I enabled WP_DEBUG using your snippet in wp-config.php, but I don’t get any logs into wp-content directory. Please help further. Thanks in advance. |
Your server may be configured to not allow adding new files there, in which case you can FTP into the server and add a blank file to the wp-content directory and give it this name: If the file permissions allow, WP will then log errors there if WP_DEBUG and WP_DEBUG_LOG are set to true. Sometimes a whitescreen / 500 error just means the server is running too low on memory, in which case you can try adding the following to your site’s wp-config.php file:
|
|
|
Thanks Josh. I opened an empty file debug.log at wp-content directory. I added also the last define… statement in wp-config. Nothing happened after I tried to open https://events.akram-vignan.de/wp-json – white page and tried to login into the app – same error. File debug.log is still empty. Please help. Thanks. |
|
Do we have a possibility to use an old app version? It has already worked. |
The problem isn’t the app, as mentioned the app uses the REST API to access the data on your site, /wp-json/ returning error 500 is why you apps aren’t working. Were are you adding the WP_Debug snippet on the site? It needs to be above the line that has WP includes |
|
|
Great! Thanks. Now I get this error into the log: |
|
I tried to change define( ‘WP_MEMORY_LIMIT’, ‘128M’ ); to define( ‘WP_MEMORY_LIMIT’, ‘256M’ ); then I got following text via …/wp-json – the whole page was filled with this code. Now I changed back to 128M. Please help. {“name”:”Akram Vignan Germany e.V. Events”,”description”:”Events von Akram Vignan Germany e.V.”,”url”:”https:\/\/events.akram-vignan.de”,”home”:”https:\/\/events.akram-vignan.de”,”gmt_offset”:1,”timezone_string”:”Europe\/Berlin”,”namespaces”:[“oembed\/1.0″,”2fa\/v1″,”contact-form-7\/v1″,”ee\/v4.8.29″,”ee\/v4.8.33″,”ee\/v4.8.34″,”ee\/v4.8.36″,”wp\/v2″],”authentication”:[],”routes”:{“\/”:{“namespace”:””,”methods”:[“GET”],”endpoints”:[{“methods”:[“GET”],”args”:{“context”:{“required”:false,”default”:”view”}}}],”_links”:{“self”:”https:\/\/events.akram-vignan.de\/wp-json\/”}},”\/oembed\/1.0″:{“namespace”:”oembed\/1.0″,”methods”:[“GET”],”endpoints”:[{“methods”:[“GET”],”args”:{“namespace”:{“required”:false,”default”:”oembed\/1.0″},”context”:{“required”:false,”default”:”view”}}}],”_links”:{“self”:”https:\/\/events.akram-vignan.de\/wp-json\/oembed\/1.0″}},”\/oembed\/1.0\/embed”:{“namespace”:”oembed\/1.0″,”methods”:[“GET”],”endpoints”:[{“methods”:[“GET”],”args”:{“url”:{“required”:true},”format”:{“required”:false,”default”:”json”},”maxwidth”:{“required”:false,”default”:600}}}],”_links”:{“self”:”https:\/\/events.akram-vignan.de\/wp-json\/oembed\/1.0\/embed”}},”\/oembed\/1.0\/proxy”:{“namespace”:”oembed\/1.0″, |
Means your site is running out of memory… so you increased the memory:
Increasing the amount of available memory allowed the page to load, the code you mentioned is the correct output for that endpoint.
Meaning your site now once again does not have enough memory, why did you change it back? 134217728 bytes = roughly 138MB, which is a little on the high side but depends on multiple different factors, the number of posts on the site, various different plugins adding output to the rest api and so on. Either way right now you site needs more memory to function so you’ll need to increase the above again. |
|
|
Now I adjusted back to 256M. Could you please help further? |
|
One more error: |
You can turn WP_DEBUG off now (set it to false). After WP_DEBUG is deactivated, can you log into the app? |
|
|
Thanks Josh. I switched WP_DEBUG off in wp-config.php file by setting it to false as it was before. Now I cannot login into app after even after deletion and download it once more. Same error. I saw following last error in debug.log: [14-Feb-2018 22:05:13 UTC] PHP Notice: Undefined offset: 1 in /var/customers/webs/Kraa0UB1/Events/wp-content/plugins/wp-members/inc/class-wp-members-forms.php on line 150 |
That’s technically not an error, it’s a PHP notice caused by the WP Members Forms plugin. You may need to troubleshoot this further by deactivating all WP plugins (except EE) and switch to one of the default twenty* themes, then try the app again. |
|
|
Each plugin deactivated first separately, than everything except EE deactivated, nothing helps. No I activated back plugins because we need them. I wouldn’t like to switch theme off because we have done some custom adjustments of the layout. |
|
Now I switched also theme to Twenty Fifteen. Same issue. And now back to Salient. |
|
I found now I did not the following for Application Passwords plugin. Perhapps it could be the issue. I don’t know where is the composer and how to use it. Please explain if needed. Installation with composer { |
You do not need the Applications Password plugin. |
|
|
Now I deactivated Applications Password plugin. Same error within the app. |
May I ask what is the exact URL that’s being input into the app’s URL field when you try to log in? |
|
|
|
|
|
Please remove Just |
|
|
Thanks! Finally its solved at my mobile phone! Thank you very much. We’ll test on other mobiles whether it works in parallell. |
You’re most welcome, please do let us know if you still run into problems. |
|
The support post ‘QR Code scan App load issue’ 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.