PHP Error on "Add new Vendor" back-end

Hello,

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.

Hi,

Sorry for the delay.

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.

thanks ihor, Im working on it and as soon as i figure it out, I’ll share it here.

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,

If it is possible, please check the PHP error log; usually, it contains the detailed error, mentions the file and line number where it occurred, and shares errors here: How to configure WordPress error logs to identify and resolve problems - HivePress Help Center

Alternatively, you can hide the attributes one by one to see which one might be causing the issue.

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

Hi,

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.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.