Comments (8)
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.
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.
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.
from tablepress.
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.
from tablepress.
Hi @iamkanp,
any new findings here?
Regards,
Tobias
from tablepress.
from tablepress.
Related Issues (20)
- Can't save Auto Import Tables config HOT 1
- Function WP_Block_Type_Registry::register was called incorrectly HOT 2
- tablepress_rest_api:missing_capability:tablepress_edit_table HOT 7
- Help with translation HOT 3
- Freemius integration is doing heavy damage to wp_sitemeta meta_key fs_accounts HOT 5
- aria-role="link" in previous/next-buttons is redundant HOT 4
- check if file exists before attempting to unlink HOT 2
- Freemius Performance issue after upgrading to 2.1.5 HOT 3
- Error: Function is_search was called incorrectly... HOT 4
- Change Default Table Features for Site Visitors HOT 1
- No obvious way to disable/revert inline CSS loading HOT 1
- Fatal error: Compatibility issue with FS Edd Migration plugin HOT 8
- Resolve PHPStan issues HOT 12
- Oops! That page can’t be found. HOT 3
- Question: Accent neutralise HOT 1
- Tablepress text gets white when add links HOT 5
- TablePress CSS Loads even without a Table on page HOT 2
- Deprecation error from Freemius HOT 5
- TablePress and Elementor conflict after recent updates, preventing Elementor editor to load HOT 1
- Import of CSV: separation character determination fails HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tablepress.