• Resolved pwicky

    (@pwicky)


    1 week ago, my json doesn’t work anymore.
    Anybody an idea?

    [jsoncontentimporter url=”https://h4a.it4sport.de/spo/spo-proxy_public.php?cmd=data&lvTypeNext=team&lvIDNext=397978″ numberofdisplayeditems=”” timeout=”100″ basenode=”dataList”]
    {subloop-array:dataList:-1}
    <tr style=”border-bottom: 1px solid #999999;”>
    <td>{gDate}<br>
    <small>{gTime} Uhr</small>
    </td>
    <td>{gHomeTeam}</td>
    <td>-</td>
    <td>{gGuestTeam}</td>
    <td><b>{gHomeGoals:ifNotEmptyAdd::}{gGuestGoals} </b>
    <small>{gHomeGoals_1:ifNotEmptyAdd::}{gGuestGoals_1} {gComment}</small></td>
    <td>{gGymnasiumName}<br>
    <small>{gGymnasiumStreet:ifNotEmptyAdd:,} {gGymnasiumPostal} {gGymnasiumTown}</small></td>
    </tr>
    {/subloop-array:dataList}
    [/jsoncontentimporter]

    • This topic was modified 8 years, 3 months ago by pwicky.

    The page I need help with: [log in to see the link]

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

    (@berkux)

    Hi,

    add “debugmode=10 urlgettimeout=20” to the shortcode. This will show you some info and extends the timeout for the API-request.
    It seems that the API needs more time…

    Bernhard

    PS: Feeld free to vote for my plugin

    Thread Starter pwicky

    (@pwicky)

    Hi,

    error report in the html-code:

    Something went wrong fetching URL with JSON-data: cURL error 28: Operation timed out after 5000 milliseconds with 0 bytes receivederror: get of json-data failed – plugin aborted: check url of json-feed<hr>neither object nor array? not implemented yet

    <hr>problems with JSON-structure: check basenode-param<hr>

    Plugin Author berkux

    (@berkux)

    Something went wrong fetching URL with JSON-data: cURL error 28: Operation timed out after 5000 milliseconds with 0 bytes receivederror: get of json-data failed – plugin aborted: check url of json-feed<hr>neither object nor array? not implemented yet

    So add debugmode=10 urlgettimeout=20 to the Shortcode to increase the timeout and get some more info about whats happening

    Thread Starter pwicky

    (@pwicky)

    I added debugmode, but it doesn’t show all results:
    http://sgsw.de/test/

    Maybe the JSON isn’t correct?

    Plugin Author berkux

    (@berkux)

    this gives me all itemas:
    [jsoncontentimporter debugmode=10 urlgettimeout=20 url=https://h4a.it4sport.de/spo/spo-proxy_public.php?cmd=data&lvTypeNext=team&lvIDNext=397978 basenode=dataList]
    {subloop-array:dataList:-1}
    <tr style=”border-bottom: 1px solid #999999;”>
    <td>{gDate}<br>
    <small>{gTime} Uhr</small></td>
    <td>{gHomeTeam}</td>
    <td>-</td>
    <td>{gGuestTeam}</td>
    <td><b>{gHomeGoals:ifNotEmptyAdd::}{gGuestGoals} </b>
    <small>{gHomeGoals_1:ifNotEmptyAdd::}{gGuestGoals_1} {gComment}</small></td>
    <td>{gGymnasiumName}<br>
    <small>{gGymnasiumStreet:ifNotEmptyAdd:,} {gGymnasiumPostal} {gGymnasiumTown}</small></td>
    </tr>
    {/subloop-array:dataList}
    [/jsoncontentimporter]

    Bernhard

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

The topic ‘My json doesn’t work’ is closed to new replies.