Home › Forums › Legacy Support › 4.0 Bugs & Issues › IMPORTANT: 500 error when multiple users
- This topic has 23 replies, 3 voices, and was last updated 3 years, 1 month ago by Anshuman Sahu.
-
AuthorPosts
-
February 25, 2021 at 2:57 pm #342452Chala88SpectatorAs soon as I do a campaign and there is a peak of users, the page falls and shows error 500. It also falls if I open multiple tabs at the same time. I contact my server and they told me: "you have a lot of POST type traffic that users generate when they log into your website through the plugin you use https://wplms.io/ These types of requests are not cached on the server. If, for example, analyzed the number of requests that are made from the backend per user, you can see what you can see in the following log: http://prntscr.com/106pad1 As you can see, in the interval of 1 second, 17 requests of this type are made. If you have more users connected, this traffic multiplies. Requests of this type also require internal processing on the server and queries to your application's database. We recommend that you contact the plugin support so that they can help you minimize all this type of traffic generated from the backend of your website with logged in users.February 25, 2021 at 7:48 pm #342479Chala88SpectatorAnother example: "Hello, I have been reviewing the number of requests as mentioned, and I see that they continue to be carried out in a short period of time, for example I see at the end, the following: http://prntscr.com/106y97p In this case, the requests by a user are 15 per second that are generated in the backend, which by having several users connected affects the performance and use of resources of your hosting, affecting the operation of your website.February 26, 2021 at 7:15 am #342520MrVibeKeymasterok, thank you for details and this vital information. Please remove all "DASHBOARD:" widgets from non-dashboard pages. Also make sure you have not selected dashboard as your perferred sidebar in posts and pages. It seems you have either selected the dashboard sidebar which is supposed to work only inside the PWA , in the page and posts make sure you select "main sidebar" in page settings : https://prnt.sc/107e9d8 --- From above logs here's what is happening. 1. You selected a sidebar in posts and pages which is the dashboard sidebar 2. All dashboard widgets are loaded 3. All including their scripts on page 4. All making a API hit and then turning to 404 after max timeout. ---February 26, 2021 at 9:28 am #342538Chala88SpectatorHi, I confirm that I dont have selected "dashboard sidebar" in pages, posts nor courses. I have selected "course sidebar" in courses and "main sidebar" in pages and these sidebar are empty. Screenshot course sidebar: http://prntscr.com/107h512 Screenshot course settings: http://prntscr.com/107ha3i Screenshot page settings: http://prntscr.com/107haqn In fact I don't have any active dashboard widget in any menu. Screenshot: http://prntscr.com/107hdgaFebruary 26, 2021 at 9:43 am #342541Chala88SpectatorLook the waterfall: http://prntscr.com/107hnmd http://prntscr.com/107hok3February 27, 2021 at 8:55 am #342773MrVibeKeymasterok, since the course progress is included, can you also confirm if the Dashboad widgets are not included in the Footer , top footer and bottom footer sidebars of your site ? Also share WP admin details to check your site.March 1, 2021 at 8:56 am #343109Chala88SpectatorThis reply has been marked as private.March 2, 2021 at 12:26 pm #343416Anshuman SahuKeymasterThis reply has been marked as private.March 2, 2021 at 12:27 pm #343418Anshuman SahuKeymasterI guess you added these block for mobile optimization but this is causing issues with the script as for each button we run a api hit to fetch user course status .March 2, 2021 at 1:56 pm #343472Chala88SpectatorPLease, I need URGENT help. My webpage is showing error 500 a lot. I need to resolve it. - I deleted all buttons except one in course layout and the problem continues. If I open more than 2 tabs, the web falls and show error 500. - I delete and desactivate my caché plugin (autoptimize). I tried with WPRocket (as you recommend) and it fails too. - Is it not possible to have more than one button in a course page? I want different buttons for desktop and mobile. How to do it? - Show course progress is not neccesary for me. Is there a possibility to skip that?March 2, 2021 at 2:13 pm #343479Chala88SpectatorI realized that there is a button in mobile behind the header that I didn't add in course layout (class .extra_course_button). Where can I delete it?March 3, 2021 at 1:17 pm #343691Anshuman SahuKeymasterWell there is a lazyload something class which is triggerring these multiple doms for the course button which we are detecting and rendering react scripts. CAn you please check how this lazyload is appearing there ? https://prnt.sc/10c4zs2 Is it not possible to have more than one button in a course page? I want different buttons for desktop and mobile. How to do it? Well currently no we dont recommend this untill we optimize our code . Can you please share your php error log(upload online somewhere and share link here to examine) and check what could be wrong ?March 3, 2021 at 2:30 pm #343711Chala88SpectatorHi Alex, I have desactivated "Mirage" in Cloudflare CDN. I think it adds Lazyload class. There is not lazyload class anymore, but the problem is still there: http://prntscr.com/10c6j40 And error 500 when open some tabsMarch 3, 2021 at 3:22 pm #343714Chala88SpectatorError log link. Is this what you need? I think there is nothing relevant here: https://www.dropbox.com/s/gxoxaw5yr11y2lj/error_log%20%2825%29?dl=1March 4, 2021 at 1:04 pm #343930Anshuman SahuKeymasterCurrently there are only three calls are going for the button there are still two extra buttons on the page somehow : https://prnt.sc/10cx9yp Are you using the_course_button shortcode or function OR elementor block itself somewhere?
-
AuthorPosts
- The topic ‘IMPORTANT: 500 error when multiple users’ is closed to new replies.