Hi @smackayht
A 502 error in WordPress usually means that the web server is unable to connect to a backend server or service to complete a request. This can be caused by a number of different factors, including:
- Server overload: the server ran out of resources and crashed, triggering an HTTP error 502. The possible reasons for this could be an unexpected spike in traffic or low memory.
- Browser problems: your browser version is outdated or maybe there are corrupted files in your browser cache.
- Firewall blocks: your firewall might be detecting false threats and blocking internet providers or IP addresses.
In your case – just as in most cases – it’s most likely happening because of reason #1. Here’s a guide that will give you a number of solutions that you can try to resolve this: https://kinsta.com/blog/502-bad-gateway/
Also, since you seem to be having large galleries, ensure that lazy loading is enabled for each gallery as shown in this linked image: https://prnt.sc/cSV0o5u0taxW
You can also set up the Paging option on each FooGallery gallery to limit the number of images loaded at a time eg. you can set paging so that only 50 images are loaded at a time, instead of all images being loaded at once, which will need more server resources and bandwidth.
Here’s a guide on setting up and using the Paging feature: https://fooplugins.com/documentation/foogallery/appearance-foogallery/paging-settings/
Also, once you set up the Paging option you prefer, kindly ensure that for your large galleries, “Paging Output” is set to “Fastest” for improved performance as shown here: https://prnt.sc/Jqj3gElOA36I
Lastly, if you are interested in testing out the various pagination options available to give your clients a variety of options to choose from, I’d encourage you to opt into our 7-day free trial option to try them all out and also to try out other FooGallery premium features such as the Filtering feature which would be great for your clients who have large galleries. Here’s a guide on how to opt in: https://fooplugins.com/documentation/general/faq/start-free-trial/
Thanks.
Kind regards,
Elvis.