Перейти к содержанию
Форум поддержки пользователей VamShop

PHP 5.3 Errors includes\classes\vam_price.php


Рекомендуемые сообщения

Ошибки выводимые скриптом с PHP 5.3


Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349

Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349[/code] Решение:
[code]
function AddTax($price, $tax) {
$price = $price + $price / 100 * $tax;
$price = $this->CalculateCurr($price);
return round($price, $this->currencies[$this->actualCurr]['decimal_places']);
}
заменяем на

function AddTax($price, $tax) {
$price = $price + $price / 100 * $tax;
$price = $this->CalculateCurr($price);
return round($price, (int)$this->currencies[$this->actualCurr]['decimal_places']);
}
[/code] и
[code]
if ($format) {
$Pprice = number_format($price, $this->currencies[$this->actualCurr]['decimal_places'], $this->currencies[$this->actualCurr]['decimal_point'], $this->currencies[$this->actualCurr]['thousands_point']);
$Pprice = $this->checkAttributes($pID).$this->currencies[$this->actualCurr]['symbol_left'].' '.$Pprice.' '.$this->currencies[$this->actualCurr]['symbol_right'];
if ($vpeStatus == 0) {
return $Pprice;
} else {
return array ('formated' => $Pprice, 'plain' => $price);
}
} else {

return round($price, $this->currencies[$this->actualCurr]['decimal_places']);

}

}
заменяем на

if ($format) {
$Pprice = number_format($price, (int)$this->currencies[$this->actualCurr]['decimal_places'], $this->currencies[$this->actualCurr]['decimal_point'], $this->currencies[$this->actualCurr]['thousands_point']);
$Pprice = $this->checkAttributes($pID).$this->currencies[$this->actualCurr]['symbol_left'].' '.$Pprice.' '.$this->currencies[$this->actualCurr]['symbol_right'];
if ($vpeStatus == 0) {
return $Pprice;
} else {
return array ('formated' => $Pprice, 'plain' => $price);
}
} else {

return round($price, $this->currencies[$this->actualCurr]['decimal_places']);

}

}
[/code] Номера строк могут отличаться В админке:
[code]Deprecated: Function split() is deprecated in Z:\home\ele\www\admin\includes\application_top.php on line 429
Решение: Код:

$current_page = split('\?', basename($_SERVER['PHP_SELF'])); $current_page = $current_page[0]; // for BadBlue(Win32) webserver compatibility[/code] Заменяем на
[code]
  $current_page = explode('\?', basename($_SERVER['PHP_SELF'])); $current_page = $current_page[0]; // for BadBlue(Win32) webserver compatibility
Deprecated: Function ereg() is deprecated in Z:\home\ele\www\admin\configuration.php on line 113

Deprecated: Function ereg() is deprecated in Z:\home\ele\www\admin\configuration.php on line 113

Deprecated: Function ereg() is deprecated in Z:\home\ele\www\admin\configuration.php on line 113

Deprecated: Function ereg() is deprecated in Z:\home\ele\www\admin\configuration.php on line 113

Deprecated: Function ereg() is deprecated in Z:\home\ele\www\admin\configuration.php on line 113[/code] Решение: код:
[code]
if (ereg('->', $use_function))
заменяем

if (preg_match('/->/', $use_function))
[/code]

Ссылка на сообщение
Поделиться на другие сайты

Вот еще одна

Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\admin\includes\classes\currencies.php on line 45
руб.[/code] меняем
[code] $format_string = $this->currencies[$currency_type]['symbol_left'] . number_format($number * $rate, $this->currencies[$currency_type]['decimal_places'], $this->currencies[$currency_type]['decimal_point'], $this->currencies[$currency_type]['thousands_point']) . ' ' . $this->currencies[$currency_type]['symbol_right'];
на:
        $format_string = $this->currencies[$currency_type]['symbol_left'] . number_format($number * $rate, (int)$this->currencies[$currency_type]['decimal_places'], $this->currencies[$currency_type]['decimal_point'], $this->currencies[$currency_type]['thousands_point']) . ' ' . $this->currencies[$currency_type]['symbol_right'];
[/code]

Ссылка на сообщение
Поделиться на другие сайты
×
×
  • Создать...