Hi
It's because you are using outdated version of the extension. Try to use the instructions below to fix it:
1. Open the file components/com_osmembership/helper/helper.php
2. Find this method convertAmountToUSD and change it to:
Code:
public static function convertAmountToUSD($amount, $currency)
{
$http = JHttpFactory::getHttp();
$url = 'https://finance.google.com/bctzjpnsun/converter?a=1&from=USD&to=' . $currency;
$response = $http->get($url);
if ($response->code == 200)
{
if (preg_match("/<span class=bld>(.*)<\/span>/", $response->body, $converted))
{
$rate = JFilterInput::getInstance()->clean($converted[1], 'float');
if ($rate > 0)
{
$amount = $amount / $rate;
}
}
}
return round($amount, 2);
}
Then check it again, the error should be sorted
Tuan