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:

This page contains the following errors: error on line 15 at column 52: Specification mandate value for attribute crossorigin

Share Improve this question edited May 8, 2017 at 15:07 StevieD asked May 8, 2017 at 15:01 StevieDStevieD 2112 silver badges10 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Doh, I forgot to tack on /xmlrpc.php to the url. Should have been obvious because it was spitting back the home page.

本文标签: