Plugin Author
berkux
(@berkux)
Hi,
try
[jsoncontentimporter url=http://103.224.247.200:7500/m/sahil]{file}[/jsoncontentimporter]
The quotationmarks in your posting creat a invalid URL.
see http://wptest.kux.de/103-224-247-2007500/
Bernhard
Hi, I’m getting the same error. I changed the url inside the shortcode but it didn’t change the result
I even disabled all the themes and the plugins except the json content importer but it still didn’t work.
Plugin Author
berkux
(@berkux)
try to copypaste this:
[jsoncontentimporter url=http://103.224.247.200:7500/m/sahil debugmode=10]{file}[/jsoncontentimporter]
Can I then see the Page you using it?
-
This reply was modified 5 years, 11 months ago by
berkux.
Hi,
I have added this code. Please check out this page:
http://www.agri10x.com/dummy-page
It is showing a connection timed out error however, when you open this URL in the browser, it works. So, that is not an issue.
Please sort this. Thanks
Plugin Author
berkux
(@berkux)
Hi,
Try another url like http://worldtimeapi.org/api/timezone/Europe/Berlin
If this works: maybe your serverhoster configured php to be unable to retrieve special urls, like the one on port 7500
If thisis not working: has your hoster blockedall requests.
Bernhard
It is being able to access other APIs. But just not this one. What settings could be a potential issue? Could you please check?
Plugin Author
berkux
(@berkux)
Ask your webserver-hoster if there are any security settings that forbid php-requests on port 7500
But how will that affect my api? The api is on the data server that I was calling. There is no authentication on that api and all ports are open where the data server is because I am able to access this api with a web browser
Plugin Author
berkux
(@berkux)
Access to an url via web browser and via php-wordpress-server might be very different.
My guess is still: the php on the webserver can‘t load the url due to port 7500.
To verify that you also can try a php script on your server using
https://www.php.net/manual/de/function.file-get-contents.php
I tried out the PHP script. I get a blank page.
Also, if a web browser is able to access the API, that means that there are no port issues because the connection between the browser and the server is happening. The JSON file is showing properly. So, I dont think it is the webserver issue at all.
By webserver, you mean where the 103.224.247.200:7500 is right?
Plugin Author
berkux
(@berkux)
You might have a temp login to Your wordpress which you can post at
https://jsoncontentimporter.freshdesk.com/widgets/feedback_widget/new?searchArea=no
in private?
<< Also, if a web browser is able to access the API, that means that there are no port issues because the connection between the browser and the server is happening. >>
this is true in 99,9% of all situations.
But not always…
In the end a browser creates an http-get request with his http-requestsoftware. When using wordpress, php, jci the request is done with other techniques.
I have sent my admin creds to access the backend wp-admin for this. Please feel free to check it out. I am using the file called agri10x.com/data-server.php to access the data servers API