I'm using the Artio Joomsef component with the Virtuemart plugin mainly for sitemap manipulation, however every time I enable it i get the following error in the product pages:
Deprecated: Non-static method JoomSefLogger::Log() should not be called statically, assuming $this from incompatible context in /mnt/data/vhosts/mydomain/httpdocs/components/com_sef/sef_ext/com_virtuemart.php on line 404
This error relates to the below function:
Function GetProductManufacturerId($productId)
{
$database = JFactory::getDBO();
$database->setQuery("SELECT `virtuemart_manufacturer_id` FROM `#__virtuemart_product_manufacturers` WHERE `virtuemart_product_id` = '{$productId}'");
$mId = $database->loadResult();
if (is_null($mId)) {
JoomSefLogger::Log("Manufacturer for product ID {$productId} not found.", $this, 'com_virtuemart');
}
return $mId;
}
Is there a way to modify the function so that the error no longer shows? Unfortunately, Artio does not provide support for the extension unless you buy it as a top up to the component itself, and the support forum isn't very active.
I'm not hot with php so i'm hoping someone could provide some advise so I can update the code with and use an override to ensure it doesn't reappear.
This is running on Joomla 3.6.4 VM 3.0.18 and php 5.6.
Thank you in advance Donna