Open disvroian opened 9 years ago
Can you double check if XMLRPC
php extension is loaded?
Create file info.php
and run it in your browser:
<?php
echo 'XMLRPC is ', extension_loaded('xmlrpc') ? 'loaded' : 'not loaded';
Without xmlrpc
extension is not possible to run this plugin, since it's used to communicate between Wordpress and Yii2.
yii2-wordpress
is wrapper for https://github.com/letrunghieu/wordpress-xmlrpc-client which requires xmlrpc php extension.
So if it's not loaded, maybe check this discussion: http://stackoverflow.com/questions/2031564/php-xmlrpc-extension-and-mamp
Also if XMLRPC is installed by pear and still not loaded, all you may need is to add
extension=xmlrpc.so
to your php.ini
and restart mamp.
Hi, After installing extension im getting following error, and as per ur suggestion I have cross checked that XMLRPC is loaded in my localhost. How to use this please explain asap.
PHP Fatal Error – yii\base\ErrorException
Class 'HieuLe\WordpressXmlrpcClient\WordpressClient' not found
// Create API client
$this->_clientInstance = new WordpressClient($this->endpoint, $this->username, $this->password);
$this->_clientInstance->setProxy($this->proxyConfig);
$this->_clientInstance->setAuth($this->httpAuthConfig
Hello After installing your extension i have the following error : Call to undefined function HieuLe\WordpressXmlrpcClient\xmlrpc_encode_request() at line 823 if (!$this->_endPoint) { echo $this->_endPoint;exit();
Also when you look at php they do not recommend to use as it s still experimental. Do you have any tips to solve ? I use mamp php version 5.5.10 with apache i tried to install /Applications/MAMP/bin/php/php5.5.10/bin/pear install XML_RPC successfully but still get my error.