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.