Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Варнинги в пхп логе #47

Open
vdementev opened this issue Aug 11, 2017 · 3 comments
Open

Варнинги в пхп логе #47

vdementev opened this issue Aug 11, 2017 · 3 comments

Comments

@vdementev
Copy link

Собственно вот, возьмите на заметку.

[11-Aug-2017 10:24:34 UTC] PHP Warning: A non-numeric value encountered in /var/www/domisolnce/html/wp-content/plugins/wc-edostavka/includes/class-wc-shipping-edostavka.php on line 278

[11-Aug-2017 10:40:28 UTC] PHP Warning: Declaration of WC_Edostavka_Shipping_Method::calculate_shipping() should be compatible with WC_Shipping_Method::calculate_shipping($package = Array) in /var/www/domisolnce/html/wp-content/plugins/wc-edostavka/includes/class-wc-shipping-edostavka.php on line 0

@blacksheep581
Copy link

У меня то же самое и экран не скроллится. Вы нашли как вылечить?

Warning: Declaration of WC_Edostavka_Shipping_Method::calculate_shipping() should be compatible with WC_Shipping_Method::calculate_shipping($package = Array) in /var/www/waxamanager/data/www/waxashop.ru/wp-content/plugins/wc-edostavka/includes/class-wc-shipping-edostavka.php on line 307

@kalbac
Copy link
Owner

kalbac commented Aug 20, 2017

Для тех у кого отображаются данного типа варнинги, отключите режим отладки вордпресс define( 'WP_DEBUG', false );
В файле class-wc-shipping-edostavka.php в метод calculate_shipping добавьте атрибут $package (Пример function calculate_shipping( $package = array() ))

@vdementev
Copy link
Author

В файле class-wc-shipping-edostavka.php в метод calculate_shipping добавьте атрибут $package (Пример function calculate_shipping( $package = array() ))

Это решение работает, ошибки пропадают.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants