Comments (16)
Hi,
thanks for your post, and sorry for the trouble. I can't really imagine that the translation plugin would cause this, as it should not be interfering with the JavaScript code.
Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!
Regards,
Tobias
from tablepress.
Unfortunately I've only simulated this in a private development environment, will try to find something for you, thanks :)
from tablepress.
That would be great, thanks! Also, could you maybe check if there are any JavaScript errors in the error log console of the browser? And most importantly: Is the JS invocation code in the page (via "View Source" in the browser)?
from tablepress.
I looked into the network requests for my web page and apparently something weird is happening, when I activate the translate plugin there is a file called "datatables.whatever.js" requested and when the translate plugin is deactivated this file doesn't seem to be requested. Hope this helps with something
No console errors in both cases
from tablepress.
That jquery.datatables.min.js file is the JavaScript file from TablePress that contains the relevant code for those JS features from TablePress. So, that's mandatory for these features to work. Or are you referring to a different file?
from tablepress.
Actually I know a bit about what happened there: I disabled all the DataTables options in the table settings so it didn't import the script since it was not necessary (this is the right case without the translate plugin).
However with the translate plugin for some reason it keeps requesting this script even though it's not needed.
from tablepress.
TablePress will load that script if the "Use DataTables" checkbox is checked (regardless off the state of the checkboxes for the individual features), or if a TablePress Extension is active for that table that might require it.
But I guess a direct look at a page where this happens would be the best approach here.
from tablepress.
There's a link to a page where this is happening: http://teste.paginas.ufsc.br/2017/06/06/table-test/
And my settings are as follows:
As you can see they are not working (e. g. first row as header, pagination limit as 1)
from tablepress.
Thanks for the link and screenshot! Are you sure that this is really the same table that we are talking about here? The main issue here is that the "Table Head Row" checkbox is checked but the first row is not marked as such.
Are there maybe any Shortcode parameters used on that page?
from tablepress.
Yup, I cleaned any tables to make sure this is the only one there.
I'm using the simple Shortcode "[table id=1 /]" not sure if any parameters are needed in this case.
from tablepress.
Ok, really strange then... If possible, I'd like to take a direct look at this on your site. Could you therefore please create a temporary admin account for me and send me the details via email (the address is in the main plugin file "tablepress.php")? That way, I can investigate this directly. Thanks!
from tablepress.
I'll see what I can do :) probably will take some time though. Thanks for your attention for now.
from tablepress.
HI @gabrielecker,
did you find anything in your tests?
Best wishes,
Tobias
from tablepress.
Hi @TobiasBg ,
I've been looking at it and it seems like the problem is with qTranslate-X which is blocking the datatables javascript import, i'm still not sure where exactly this is happening still. Maybe there can be any conflict with Tablepress native i18n translation?
EDIT 1: It's very strange since Tablepress works perfectly until qTranslate-X is activated :(
EDIT 2: I've found that when qTranslate-X is activated the function _enqueue_datatables()
from controller-frontend.php is not called
Thanks,
Gabriel
from tablepress.
Hi @gabrielecker,
thanks for checking! Would you be ok with me closing this issue for now, as I just don't see how TablePress is doing something wrong here? Of course, if you find that this issue is TablePress' fault, we can always reopen! Thanks!
Best wishes,
Tobias
from tablepress.
Yeah, i'll debug the whole thing to find out what is really going on and warn you if I discover anything important. For now we are fine with that :)
Thanks for the support,
Gabriel
from tablepress.
Related Issues (20)
- Have TablePress show pages a table is embedded on HOT 1
- Sorting issues with DD/MM/YYYY HOT 10
- Vanilla JS HOT 7
- Tablepress custom css not working HOT 1
- Add Custom Endpoint for TablePress tables using the WP REST API HOT 9
- Responsive Table extension is triggering datatables HOT 2
- column_default missing in TablePress_Editor_Button_Thickbox_List_Table HOT 4
- Editor page hangs browser when table has many rows (~1000) HOT 1
- Cross site scripting HOT 2
- Table cross the maximum size of template HOT 1
- Uncaught TypeError: can't access property "disabled", o(...) is null HOT 8
- Lesbarkeit von Beiträgen (Yoast SEO) wird durch einfügen der Tabelle von Gut auf OK runtergestuft HOT 2
- Question: posibility to get table information from a json REST api, instead of importing? HOT 4
- 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
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.