It sounds like a server issue. A 504 error often indicates a timeout between your server and upstream services. Try increasing PHP max execution time in your server settings or contact your hosting provider to check if they’re experiencing high server load or connectivity issues. Also, clear cache if possible—this sometimes resolves it.