I replaced the faulty code with the endless redirect, and it works, but whenever I save, it crashes again. Upon inspection, the faulty code from the previous ticket has reappeared, even though it does not seem to be something I have added.
I go back, remove those instances, then the template editor loads. I save the template and close. The next time I open it, I get the 504 again.
Other than removing those infinite loops, is there something else in my template that would automatically create these codes that need to be removed?
Is there any documentation that you are following?
The previous support ticket
That is the current template and I can access it as well. Before I open the template, I make a backup/duplicate. Then, I will open the template and make minimal changes, save and see the changes applied to the front end. Then, it seems if I don't close it immediately after that, the next time I refresh the template, I get a time out and if I look in phpmyadmin to get the codes/shortcodes, the snippets that were removed have reappeared and do not seem to have anything to do with the changes I made.
I remove the snippets that are causing the issue then move the updated code to the backup and can edit again.
Sorry, this is difficult to explain.
So do you think that I have too many conditionals for this to work well? Is there a way to keep the current functionality without overloading the system?
504 status code error related to server and it could be possible that your server is blocking request or CDS or what else could be.
- hidden link
- hidden link
I strongly suggest you should remove all conditional block using which you try to check the post body and instead use the shortcode method and I hope that will help you to resolve the issue.