Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; IXR_Value has a deprecated constructor in /home/сайт.ру/system/controllers/ping/IXR_Library.php on line 42 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; IXR_Message has a deprecated constructor in /home/сайт.ру/system/controllers/ping/IXR_Library.php on line 171 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; IXR_Server has a deprecated constructor in /home/сайт.ру/system/controllers/ping/IXR_Library.php on line 342 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; IXR_Request has a deprecated constructor in /home/сайт.ру/system/controllers/ping/IXR_Library.php on line 546 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; IXR_Client has a deprecated constructor in /home/сайт.ру/system/controllers/ping/IXR_Library.php on line 590 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; IXR_Error has a deprecated constructor in /home/сайт.ру/system/controllers/ping/IXR_Library.php on line 740 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; IXR_Date has a deprecated constructor in /home/сайт.ру/system/controllers/ping/IXR_Library.php on line 782 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; IXR_Base64 has a deprecated constructor in /home/сайт.ру/system/controllers/ping/IXR_Library.php on line 845 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; IXR_IntrospectionServer has a deprecated constructor in /home/сайт.ру/system/controllers/ping/IXR_Library.php on line 866 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; IXR_ClientMulticall has a deprecated constructor in /home/сайт.ру/system/controllers/ping/IXR_Library.php on line 1029 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; IXR_ClientSSL has a deprecated constructor in /home/сайт.ру/system/controllers/ping/IXR_Library.php on line 1065 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; IXR_ClassServer has a deprecated constructor in /home/сайт.ру/system/controllers/ping/IXR_Library.php on line 1289
InstantCMS 2.X
IXR_Library.php
#1
2 марта 2017 в 08:21
Всем добрейшего денёчка! Помогите пожалуйста с ошибкой.
Ошибки вылезли внезапно, из добавленного на сайт, добавил только микроразметку.
#2
2 марта 2017 в 08:49
instantcms.ru/blogs/udarnyi-blog/komponent-ping-servisov-obnovlenija.html
В этом ваши ошибки кроются.
В этом ваши ошибки кроются.
#3
2 марта 2017 в 09:10
Ну перейти на php5 или просто отключить пинг устранит ошибку, но хотелось бы исправить ошибку для php7
Сегодня в 17:59
#4
2 марта 2017 в 09:29
Ну с этим вопросом вам к разработчику надо обратиться
#5
2 марта 2017 в 10:20
Есть несколько вариантов:
1 — скрыть ошибки с глаз долой. Способов несколько — погуглите-попробуйте какой вам подойдет
2 — поправить IXR_Library.php переписав самостоятельно устаревшие функции/методы
3 — перейти на php 5.2 (?) возможно есть еще ошибки только вы их еще не нашли
4 — отказаться от компонента ping
1 — скрыть ошибки с глаз долой. Способов несколько — погуглите-попробуйте какой вам подойдет
2 — поправить IXR_Library.php переписав самостоятельно устаревшие функции/методы
3 — перейти на php 5.2 (?) возможно есть еще ошибки только вы их еще не нашли
4 — отказаться от компонента ping
#6
2 марта 2017 в 12:12
Про второй способ:
Открываем в блокнотике файл system/controllers/ping/IXR_Library.php
находим строки на которые ругается Deprecated.
Там будет объявление класса, а чуть ниже функция-конструктор с тем же именем.
Пример с 42 строки:
Так вот в конструкторе вам надо поменять имя функции которое ранее совпадало с классом на имя
__construct
Чтобы получилось типо так
вроде так должно работать…
Открываем в блокнотике файл system/controllers/ping/IXR_Library.php
находим строки на которые ругается Deprecated.
Там будет объявление класса, а чуть ниже функция-конструктор с тем же именем.
Пример с 42 строки:
class IXR_Value { var $data; var $type; function IXR_Value($data, $type = false)
__construct
Чтобы получилось типо так
function __construct($data, $type = false)