legys 0 Опубликовано 21 февраля, 2010 Жалоба Share Опубликовано 21 февраля, 2010 Ошибки выводимые скриптом с 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 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: number_format() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 349Warning: round() expects parameter 2 to be long, string given in Z:\home\ele\www\includes\classes\vam_price.php on line 157Warning: 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 113Deprecated: Function ereg() is deprecated in Z:\home\ele\www\admin\configuration.php on line 113Deprecated: Function ereg() is deprecated in Z:\home\ele\www\admin\configuration.php on line 113Deprecated: Function ereg() is deprecated in Z:\home\ele\www\admin\configuration.php on line 113Deprecated: 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] Ссылка на сообщение Поделиться на другие сайты
support 447 Опубликовано 21 февраля, 2010 Жалоба Share Опубликовано 21 февраля, 2010 Спасибо, внёс исправления в текущий код. В админке эти изменения уже вносил. Ссылка на сообщение Поделиться на другие сайты
legys 0 Опубликовано 21 февраля, 2010 Автор Жалоба Share Опубликовано 21 февраля, 2010 Вот еще одна 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] Ссылка на сообщение Поделиться на другие сайты
support 447 Опубликовано 21 февраля, 2010 Жалоба Share Опубликовано 21 февраля, 2010 Спасибо, добавил. Ссылка на сообщение Поделиться на другие сайты
Рекомендуемые сообщения