-
Notifications
You must be signed in to change notification settings - Fork 5
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
transport error - could not open socket #1
Comments
I will need to install a WP instance on localhost to check if the issue is the name of the host. but for now, please try this:
let the host simply be that, localhost. The path would be the path to the xmlrpc file. Let me know if that works. |
ghost
assigned angelxmoreno
Jul 16, 2013
I have the same error but WP instance works on localhost. No solution for remote connection with datasource ? For example the code bellow works :
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a wordpress at localhost then i'm trying to connect with xml-rpc..
It gives the message: "transport error - could not open socket" at line 262 of /WordpressSource/Model/Datasource/WordpressSource.php
Config:
Controller:
$wp = ConnectionManager::getDataSource('wp');
$res = $wp->getPosts(array(
'post_status' => 'publish',
'post_type' => 'post',
'number' => 5,
'orderby' => 'post_modified',
'order' => 'desc',
), array(
'post_title'
));
What it could be?
The text was updated successfully, but these errors were encountered: