admin管理员组文章数量:1122832
I'm running WP 4.7.4. The site is a default site with no plugins activated other than the default plugins. I'm using the WordPress::XMLRPC
Perl module to generate a getPost
XMLRPC call for post #1 like so:
my $obj = WordPress::XMLRPC->new({username => 'admin', password => 'xxxxxx', proxy => '/'});
my $post = $obj->getPost(1);
The full error is this:
not well-formed (invalid token) at line 15, column 51, byte 720 at /usr/local/lib/x86_64-linux-gnu/perl/5.20.2/XML/Parser.pm line 187. <!DOCTYPE html> <html lang="en-US" class="no-js"> <head> <...snip...> </body> </html> at /usr/local/share/perl/5.20.2/WordPress/XMLRPC.pm line 643.
Here is line 643 from WordPress::XMLRPC
:
my $call = $self->server->call(
'metaWeblog.getPost',
$post_id,
$user_login,
$user_pass,
);
Here is line 187 from XML::Parser
in an eval
statement:
eval {
$result = $expat->parse($arg);
};
Line 15 of the output is this:
' crossorigin rel='preconnect' />
When I run the output through this XML validator, I also get an error:
This page contains the following errors: error on line 15 at column 52: Specification mandate value for attribute crossorigin
I'm running WP 4.7.4. The site is a default site with no plugins activated other than the default plugins. I'm using the WordPress::XMLRPC
Perl module to generate a getPost
XMLRPC call for post #1 like so:
my $obj = WordPress::XMLRPC->new({username => 'admin', password => 'xxxxxx', proxy => 'http://my.domain.com/'});
my $post = $obj->getPost(1);
The full error is this:
not well-formed (invalid token) at line 15, column 51, byte 720 at /usr/local/lib/x86_64-linux-gnu/perl/5.20.2/XML/Parser.pm line 187. <!DOCTYPE html> <html lang="en-US" class="no-js"> <head> <...snip...> </body> </html> at /usr/local/share/perl/5.20.2/WordPress/XMLRPC.pm line 643.
Here is line 643 from WordPress::XMLRPC
:
my $call = $self->server->call(
'metaWeblog.getPost',
$post_id,
$user_login,
$user_pass,
);
Here is line 187 from XML::Parser
in an eval
statement:
eval {
$result = $expat->parse($arg);
};
Line 15 of the output is this:
https://fonts.gstatic.com' crossorigin rel='preconnect' />
When I run the output through this XML validator, I also get an error:
Share Improve this question edited May 8, 2017 at 15:07 StevieD asked May 8, 2017 at 15:01 StevieDStevieD 2112 silver badges10 bronze badgesThis page contains the following errors: error on line 15 at column 52: Specification mandate value for attribute crossorigin
1 Answer
Reset to default 0Doh, I forgot to tack on /xmlrpc.php
to the url. Should have been obvious because it was spitting back the home page.
本文标签:
版权声明:本文标题:xml rpc - not well-formed (invalid token) at line 15, column 51, byte 720 when trying to parse XMLRPC call 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736289674a1928355.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论