Я получаю сообщение об ошибке (-32300): ошибка транспорта - код состояния HTTP не был 200 при получении категорий - PullRequest
0 голосов
/ 11 апреля 2019
Error (-32300): transport error - HTTP status code was not 200.

Я получаю вышеуказанную ошибку, Вот мой скрипт, который используется для создания поста

$wpusername = "admin";
$wppassword = "admin123";
require_once("IXR_Library.php.inc"); 
$client = new IXR_Client($wpurl.'/xmlrpc.php');
$client->query('wp.getTerms',1,$wpusername, 
$wppassword,'category');
$data=$client->getResponse();

print_r($data);

Вывод:

Объект IXR_Client ([сервер] => engtesttesting.info [порт] => 80 [путь] => /trendpresstheme//xmlrpc.php [useragent] => Библиотека Incutio XML-RPC PHP [response] => [message] => Объект IXR_Message ([message] => term_id3 namedog slugdog term_group0 term_taxonomy_id3 описание таксономиикатегория parent0 count18 filterraw custom_fields term_id4 namemusic slugmusic term_group0 term_taxonomy_id4 описание таксономиикатегория parent0 count0 filterraw custom_fields term_id5 nameNews slugnews term_group0 term_taxonomy_id5 описание таксономиикатегория parent0 count0 filterraw custom_fields term_id1 nameUncategorized sluguncategorized term_group0 term_taxonomy_id1 таксономия описание категории parent0 count0 filterraw custom_fields term_id6 nameWeb Automation slugweb_automation term_group0 term_taxonomy_id6 описание таксономиикатегория parent0 count0 filterraw custom_fields [messageType] => [faultCode] => [faultString] => [methodName] => [params] => [_arraystructs] => Массив () [_arraystructstypes] => Array () [_currentStructName] => Array ( ) [_param] => [_value] => [_currentTag] => [_currentTagContents] => h3.h3 {выравнивания текста: центр; поле: 1em; текст-преобразования: капитализировать; размер шрифта: 1.7em;} .product-grid2 .product-image2 {переполнение: скрыто; положение: относительное} .product-grid2 .product-image2 img {ширина: 100%; высота: авто} /.product-grid2:hover .social li: nth-child (2) {задержка перехода: .15s} / .product-grid2 .buynow {цвета: #fff; размер шрифта: 15px; выравнивания текста: центр; ширина: 100%; обивка: 10px 0; дисплей: блок; позицию: абсолютная; слева: 0; внизу: -100%; переход: все .3s;} .product-grid2: hover .buynow {bottom: 0} .product-grid2: hover .imgpro {-webkit-filter: blur (1px); / * Chrome, Safari, Opera * / фильтр: размытие (1 пиксель); } .dispro .product-grid2 {margin: 20px! важный; ширина: 180 пикселей! важно; дисплей: встроенный блок! важный; наценка: авто; } #proli {margin: 20px; стиль списка: нет; дисплей: встроенный блок; } .wp-menu-image img {margin-top: -7px; } .pricetag {цвет: красный; } .product-image2 .btnbuynow {margin-bottom: -20px! важный; } [_parser] => Идентификатор ресурса # 4 [currentTag] => style) [debug] => [error] => Объект IXR_Error ([code] => -32700 [message] => ошибка синтаксического анализа. Неправильно сформирован))

...