Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author berkux

    (@berkux)

    try this:

    [jsoncontentimporter url=http://136.243.105.99:8080/u/?id=1418689&a=3&h=f1f35843a030c00913c9558874f63d64&l=2 debugmode=10]
    numOnTopic: {numOnTopic}
    {subloop-array:pages:-1}pages.title: {pages.title}<br>{/subloop-array:pages}
    [/jsoncontentimporter]

    Feel free to cote for my plugin.

    Bernhard

    Plugin Author berkux

    (@berkux)

    or

    [jsoncontentimporter url=http://136.243.105.99:8080/u/?id=1418689&a=3&h=f1f35843a030c00913c9558874f63d64&l=2 basenode=pages debugmode=10]
    {title}
    [/jsoncontentimporter]
    Thread Starter dom-rep

    (@dom-rep)

    Nope, I get this:

    DEBUG: Cache is NOT active
    DEBUG: try to retieve http://136.243.105.99:8080/u/?id=1418689&a=3&h=f1f35843a030c00913c9558874f63d64&l=2
    DEBUG: wp_remote_get to http://136.243.105.99:8080/u/?id=1418689&a=3&h=f1f35843a030c00913c9558874f63d64&l=2
    DEBUG: arguments: Array ( [timeout] => 5 )
    Something went wrong fetching URL with JSON-data: connect() timed out!DEBUG: error getting URL: connect() timed out!
    error: get of json-data failed – plugin aborted: check url of json-feedDEBUG: no data received: check url of json-feed
    DEBUG: api-answer:

    DEBUG: basenode: pages
    DEBUG: template:
    <br />{title}<br />
    neither object nor array? not implemented yet
    please open ticket at ww.wp.xz.cnproblems with JSON-structure: check basenode-param
    please open ticket at ww.wp.xz.cn

    Plugin Author berkux

    (@berkux)

    http://wptest.kux.de/test136-243-105-998080/
    is working with
    [jsoncontentimporter url=http://136.243.105.99:8080/u/?id=1418689&a=3&h=f1f35843a030c00913c9558874f63d64&l=2 basenode=pages debugmode=10]
    {title}
    [/jsoncontentimporter]

    Bernhard

    Thread Starter dom-rep

    (@dom-rep)

    It must be some server issue then 🙁

    Plugin Author berkux

    (@berkux)

    try
    [jsoncontentimporter url=http://wptest.kux.de/extra/json/2.json debugmode=10]test[/jsoncontentimporter]

    with a working url. This should work.

    Thread Starter dom-rep

    (@dom-rep)

    Nope.. so it’s my server issue.. will have to use this plugin on another server (move my site)..

    Plugin Author berkux

    (@berkux)

    this php code tests the basic php-method to get data from nytimes.com.
    If this fails it’s a basic problem.

    <?PHP
    echo date("d.m.Y, H:i:s");
    $url = "https://www.nytimes.com/";
    $resfget = file_get_contents($url);
    echo "<hr>url: $url<hr>";
    echo "got this:<br>".htmlentities($resfget)."<hr>";
    ?>

    If it’s of try
    [jsoncontentimporter url=https://www.nytimes.com/ debugmode=10]test[/jsoncontentimporter]

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Breaks on a valid json’ is closed to new replies.