There are several "error logs" in cpanel. Most are related to http (your web server). You need to find the PHP error_log file and check it. Your hosting can help you find it. Im most current cpanel environments, it is located in /home/[cpanel account]/logs/[domain_name].php.error_log
A 500 error could mean any number of things. Suggest you work with your hosting to identify the cause if it's not a php error.
Ok, thanks again. It seems it's a php error. I found my php error log but there was nothing there. After a lot of googling I realised this was because the php.ini file was not logging php errors. So I added the code to log php errors in the php error log and lo and behold...I now have details of the php error (I think?)
Basically there are some PHP warnings in the log but I think it's the ones with "PHP Fatal Error" that are causing the 500 error?
So it seems the problem is with the vendor data premoderation addon. This makes sense because it seemed to me like an issue with vendor permissions since I wasn't getting the error as marketplace admin.
The two fatal errors I can see are:
1. PHP Fatal error: Uncaught Error: Call to undefined function
fn_vendor_data_premoderation_get_current_product_statuses() in
/app/addons/vendor_data_premoderation/controllers/backend/products.post.php:38
Line 38 on that file mentioned in the error is included below:
if ($product_ids) {
$current_statuses = fn_vendor_data_premoderation_get_current_product_statuses($product_ids);
$pending_products = array_filter($current_statuses, function($status) {
return $status === ProductStatuses::REQUIRES_APPROVAL;
});
2. PHP Fatal error: Uncaught Error: Undefined class constant 'SECTION_PRODUCTS' in /app/addons/vendor_data_premoderation/schemas/notifications/notifications_center.post.php:19
Line 19 on that file mentioned in the error is included below:
$schema[NotificationsCenter::SECTION_PRODUCTS]['tags']['vendor_data_premoderation'] = [
'tag' => 'vendor_data_premoderation',
'tag_name' => __('product_approval'),
Do you or anyone else know what these errors mean? Vendor data premoderation seems to be a cs-cart default addon so is this a bug?
I have the settings for all options in this addon set to "Custom" and when I'm adding products as a vendor the vendor does not require approval for adding/editing products or editing profile. Oh and I'm using multivendor 4.10.4.SP2 if that helps.