Not logged in. · Lost password · Register
Forum: General Help and Support Plugins RSS
Can't get sync plugin to work any more?
Transport error since upgrading PHP
allthatyouhear #1
Member since Aug 2007 · 40 posts
Group memberships: Members
Show profile · Link to this post
Subject: Can't get sync plugin to work any more?
Remote wiki is current on PHP 7.2.9. Local wiki was Detritus on PHP 5.?; since updating to PHP 5.6 I am seeing this error:

Failed to talk to remote wiki. Make sure the remote wiki allows XMLRPC requests and that you set up the endpoint URL correctly. transport error - Could not connect to ssl://xxx.xxx.xxx.xxx:443 (0)

Local wiki was able to sync until I updated PHP: this was a troubleshooting step as what I was actually trying to do was get a new up-to-date install on another machine (PHP 7.1.33) working.

If I visit the https://xxx.xxx.xxx.xxx/lib/exe/xmlrpc.php file I see "XML-RPC server accepts POST requests only.", which is as it was on the working system before upgrading.

Does this plugin no longer work after PHP 5.6 (required for up-to-date wiki), or have I missed something really stupid?

I tried username:password@address variation too. Also connection over LAN.

Thanks.
Avatar
cziehr #2
Member since Jan 2011 · 685 posts · Location: 10119 Berlin
Group memberships: Members
Show profile · Link to this post
Is XMLRPC support enabled for the user which you want to use to connect?
allthatyouhear #3
Member since Aug 2007 · 40 posts
Group memberships: Members
Show profile · Link to this post
Yes: only change from fully working setup to not working setup was upgrading PHP on the client machine.
Avatar
cziehr #4
Member since Jan 2011 · 685 posts · Location: 10119 Berlin
Group memberships: Members
Show profile · Link to this post
Is the xmlrpc-package for PHP installed?
allthatyouhear #5
Member since Aug 2007 · 40 posts
Group memberships: Members
Show profile · Link to this post
Pretty sure it's present everywhere. Appears in phpinfo at both ends. Is there a more definitive test?
Avatar
turnermm (Moderator) #6
Member since Oct 2009 · 4803 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
As far as I am aware, dokuwiki doesn't use the xmlrpc package that comes with PHP, so I don't think that's the source of your  problem.  It uses the external IXR library.

For a test see: https://forum.dokuwiki.org/post/66451
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
allthatyouhear #7
Member since Aug 2007 · 40 posts
Group memberships: Members
Show profile · Link to this post
I don't follow… DokuWiki doesn't use something that's part of PHP, but it broke when I updated PHP. It also worked before I updated PHP (which had to be done to update DokuWiki itself). An older client could connect with the updated server, but updating the client made it not work. At no stage have I ever installed anything other than PHP updates, DokuWiki and plugins.

Using the xcom plugin I could query the local install (PHP 7.1.33) and get a result. Trying to query the remote install that I'm trying to sync to I got "No connection.  Have you set the remote API config options?".

The key difference is that the remote install is only available via https. Could that be why it's not working? To reiterate, the _only_ thing I have changed that has made a working setup stop working is update PHP and the DokuWiki _at the client end_.
allthatyouhear #8
Member since Aug 2007 · 40 posts
Group memberships: Members
Show profile · Link to this post
I did a bit of digging, and found this in HTTPClient.php:

set correct peer name for verification (enabled since PHP 5.6)

I suspect that since PHP 5.6 self-signed certificates whose details don't match the url cause the connection to fail. I will try to fix the certificate to match the external url…
allthatyouhear #9
Member since Aug 2007 · 40 posts
Group memberships: Members
Show profile · Link to this post
That didn't work. Is there an easy way to check "correct peer name" in, say, Terminal? Or get PHP >5.6 to work with self-assigned certificates?
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-04-02, 21:27:15 (UTC +02:00)