Can't Create Templates - Database Users Overflow Bug
Hi. I have imported all my customers from WooCommerce into WordPress, and after ~2,000 users have been imported, the Brizy "Add New Template" option becomes broken and the server returns an error code of 500.
I am using the latest version of Brizy Pro.
The error I am getting is "Failed to load resource: the server responded with a status of 500 ()" from "https://mysite.com/wp-admin/admin-ajax.php?action=brizy_rule_posts_group_list&postType=post&hash=c89bd96267&version=255-wp&context=template-rules&templateType=single"
-
Okay, after doing some debugging I found the problem.
Your function to handle the "Add New Template" in PHP is written poorly. It's literally loading ALL the array in one go when the page is loaded, and it's consuming an insane amount of memory to do so.
In my case, it was exceeding 256 MB, so I tried 512 MB. That was exceeded as well, so I bumped it up to 1024 MB (1 GB) and that finally solved it, but that is horribly inefficient programming so I ask that you please review and fix this problem in your next update.
0 -
Hi Matthew,
Thank you for contacting us.
Could you please let us know if you have already performed the following troubleshooting steps?
- Have you tried disabling all other plugins besides Brizy, Brizy Pro, and WooCommerce and seeing if the issue persists?
- Additionally, have you tried temporarily switching to another theme to see if the issue persists?
512 MB should generally be sufficient for most websites. However, there may be other underlying issues contributing to the error 500 you're encountering. These issues could include misconfigurations, server limitations, or conflicts with your current theme or with third-party plugins.
I am looking forward to your response.
Best regards,
Ariel H.0
Please sign in to leave a comment.
Comments
2 comments