Skip Navigation

[Gelöst] Ajax slider causing server errors

This support ticket is created vor 6 Jahre. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 23 Antworten, has 2 Stimmen.

Last updated by zoeS vor 5 Jahre, 11 Monate.

Assigned support staff: Shane.

Author
Artikel
#484580

Hello, I am using a slightly modified version of the slider that comes with the real estate reference site. It appears to work perfectly well, but I'm getting lots of error 500s in the server logs, and I think they seem to be coming from the slider. It is always an HTML call from admin-ajax.php that gets the error. The JSON ones are ok. I think it is memory related, but why would that call be using so much memory? To see the problem live, hopefully you can see the URL in the screenshot I've uploaded. I'd rather not post the link here for SEO reasons. Thank you!

#484690

Shane
Supporter

Languages: Englisch (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Zoe,

Thank you for contacting our support forum.

Would you mind providing me with the debug information on the site so I can have some info on your website's operating environment.

To provide the debug information please have a look at the link below.
https://toolset.com/faq/provide-debug-information-faster-support/

Looking forward to hearing from you soon.
Thanks,
Shane

#484691

Yes of course, sorry I forgot to post it in the first place.

#484720

Shane
Supporter

Languages: Englisch (English )

Timezone: America/Jamaica (GMT-05:00)

Screen Shot 2017-02-01 at 1.27.54 PM.png

Hi Zoe,

Thank you for providing the debug information on the website.

I took a look at the issue but i'm not seeing any error in the network tab on my browser.

So i'm not seeing the issue 🙁

Thanks,
Shane

#484728

Oh! Would you try refreshing the home page please with the network tab open?

#484734

Shane
Supporter

Languages: Englisch (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Zoe,

I was able to see the issue now.

I dont think this is something to be worried about as the whenever the slider is paginating the requests to the admin-ajax.php all returns 200 .

Just to ensure that its not being caused by a plugin conflict would you mind temporarily disabling all non-toolset plugins and let me know if the issue still remains.

Thanks,
Shane

#484735
memory-usage.jpg

Hi Shane

Yes it's not too serious in that it doesn't seem to affect the functioning of the site. It's more just that I'm spending a lot of time (probably too much) monitoring the server in CPanel and am worried about the memory use. It seems to me that every time that error is present, there is a spike in the virtual memory usage and a corresponding VMemF fault recorded. I don't know enough about server environments to understand exactly what's going on. Or indeed why every page load seems to use a minimum of about 250MB of physical memory. That seems high does it not?

#485038

Shane
Supporter

Languages: Englisch (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Zoe,

What you can do is to check with you host to see if they can help because it could be that some of the requests are being blocked.

Also you could try disabling some of your plugins and see if the error 500 still occur on the admin-ajax.php request.

Thanks,
Shane

#485156

Hi Shane

I've got some idea what's going on – I've just realised that I get the errors when, on a single page, I have more than one view that uses Ajax transitions. It's causing a big memory leak and a resulting error 500. Is this to be expected? Is there anything I can do to resolve the conflict? In the mean time, I have an acceptable solution, which is to limit the results to 3 and display them in a random order.

Thanks
Zoe

#485506

Shane
Supporter

Languages: Englisch (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Zoe,

What I can do is to test this for you on my server and see if the same issue persists. Would you mind providing me with a duplicator package of the website so that I can have a look?

https://toolset.com/faq/provide-supporters-copy-site/

Thanks,
Shane

#485581

Shane
Supporter

Languages: Englisch (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Zoe,

Actually no I won't be able to use this as it is just a database backup. I will need the entire website to perform the test.

Thanks,
Shane

#485587

Sorry Shane, that was silly, I sent you the wrong link:
p.s. oops this should not be public, should I remove it or can you make it private?

#485651

I have deactivated that link but can post a new one privately.

#486326

Shane
Supporter

Languages: Englisch (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Zoe,

The private fields have been enabled.

Thanks,
Shane

#488056

Shane
Supporter

Languages: Englisch (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Zoe,

Thanks for the backup but based on what I have there are no error 500 being returned on my end regarding the slider on the frontend.

The server log on my end is fine.

Thanks,
Shane