When I try to create a new vendor from the back-end, I get the attached screenshot error. This issue only occurs in the back-end; users can still add listings without any problems.
I’ve gone through all troubleshooting steps, including disabling all plugins and snippets, but it didn’t make a difference. I also enabled WP debug, and the log shows:
[31-Jul-2024 15:56:05 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /var/www/vhosts/taablo.com/httpdocs/wp-content/plugins/hivepress/includes/helpers.php on line 155
When I increase the memory limit, the entire website gets stuck on the gateway timeout page.
I checked the error location in the code and it occurs in the settings merge function, please make sure that there are no other plugins or code snippets that may cause it. You can also try to un-publish vendor attributes in Vendors/Attributes section in case if one of the attributes causes this issue.
Last night, I disabled everything on my website except for HivePress. In that case, I was able to open the “Add New Vendor” page, but it took quite some time—about 2 minutes. However, as soon as I enable any other plugin, even something like HivePress Reviews, the same error reappears.
Hi Andri,
first, I dont have any attributes for vendors, I do have some for listings but not vendors.
The only error in log is the below one, but sometimes the line is different:
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /var/www/vhosts/taablo.com/httpdocs/wp-content/plugins/hivepress/includes/helpers.php on line 161
We have checked again locally and everything is working correctly. But based on the error displayed, it may be caused by configuration, custom code changes, or incorrectly created attributes or other options in the WordPress Dashboard. Therefore, we recommend that you disable all third-party plugins except HivePress, minimize all settings, until this error disappears. Or, if you have a backup, revert to the previous version.
I’m trying to add a new vendor to the website. When I attempt to do that, I get the following error message: " There has been a critical error on this website. Please check your site admin email inbox for instructions. If you continue to have problems, please try the support forums."
Even when I disable all the plugins on my site except for Hivepress, I still get this message.
Thanks for the details. We investigated this issue in more detail at the time and were unable to reproduce it. If your PHP logs contain an error similar to the one in this topic, we recommend that you follow all of these recommendations.
Thanks for your response. I’ve followed all of the recommendations. Even with just Hivepress installed, I still get an error:
“Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /www/sitename/public/wp-includes/class-wpdb.php on line 2322”
I’ve deleted all post revisions to clean up the database. My hosting team said I should contact Hivepress support to see if they can reduce the memory requirement…
Please provide your actions step by step, after which this error is displayed. For example, if you go to WordPress Dashboard > Add New and an error is immediately displayed, it is most likely due to vendor attributes. Please try to go to Vendors > Attributes and move all attributes to Draft status (do the same in Users > Attributes). This way, you can check if the issue exists.