Giter VIP home page Giter VIP logo

Comments (8)

TobiasBg avatar TobiasBg commented on May 29, 2024

Hi @iamkanp,

thanks for your post, and sorry for the trouble.

Does the import from that URL in JSON format work with a manual import (i.e. on the "Import" screen)?
Does everything work with e.g. a CSV file?

Note that TablePress can only import its own JSON format, but no arbitrary JSON formats. Can you therefore maybe give me the URL of the file that you are trying to import?

Regards,
Tobias

from tablepress.

iamkanp avatar iamkanp commented on May 29, 2024

Hi @TobiasBg ,
Could you send me your email (my email is [email protected])? i will give you that url. Sorry for inconvinience
I try it manually. it works and also, i just create a php file that echo the json. it works as well.
just failed when getting from url directly. Is there any problem with time delay when the server querying data?
Regards,
Kan P.

from tablepress.

TobiasBg avatar TobiasBg commented on May 29, 2024

Hi @iamkanp,

thanks for the link! I have tested your URL on my site (with the manual import), and that is working fine. The JSON format is correct, too.

Because of that, I can only assume that your server is not properly connecting to the URL, for some reason. One reason might be that it's a Punycode/internationalized domain, or that it takes quite a while for the URL to return the content.
Unfortunately, finding out the exact cause is beyond what I can help with here, as the issue very likely is on the server level :-(

Regards,
Tobias

from tablepress.

iamkanp avatar iamkanp commented on May 29, 2024

from tablepress.

TobiasBg avatar TobiasBg commented on May 29, 2024

Hi,

yes, it's the same code for the import. However, there are same differences in the background, that could play a role. For example, as the auto import uses the WP Cron feature, it runs as a non-logged-in user in WordPress. This could result in different parameters being used, for things like memory limit or HTTP requests. The developer tools in Chrome will not help with this, you would have to directly add debugging/testing to the PHP file of the Extension. Then, instead of relying on the cron job to run, you could use plugins like https://wordpress.org/plugins/core-control/ to manually run the import cron job.

Now, trying the auto import with a direct file import (from the server) could of course also work, but you would have to test it (first with a static file maybe).

Of course, if your PHP script runs on the same server as the WordPress installation, and if it has access to the database, you could directly update the data in the database.

Regards,
Tobias

from tablepress.

iamkanp avatar iamkanp commented on May 29, 2024

from tablepress.

TobiasBg avatar TobiasBg commented on May 29, 2024

Hi @iamkanp,

any new findings here?

Regards,
Tobias

from tablepress.

iamkanp avatar iamkanp commented on May 29, 2024

from tablepress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.