Giter VIP home page Giter VIP logo

Comments (16)

TobiasBg avatar TobiasBg commented on May 29, 2024

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.

gabrielecker avatar gabrielecker commented on May 29, 2024

Unfortunately I've only simulated this in a private development environment, will try to find something for you, thanks :)

from tablepress.

TobiasBg avatar TobiasBg commented on May 29, 2024

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.

gabrielecker avatar gabrielecker commented on May 29, 2024

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.

TobiasBg avatar TobiasBg commented on May 29, 2024

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.

gabrielecker avatar gabrielecker commented on May 29, 2024

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.

TobiasBg avatar TobiasBg commented on May 29, 2024

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.

gabrielecker avatar gabrielecker commented on May 29, 2024

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:
wp_tablepress_configs
As you can see they are not working (e. g. first row as header, pagination limit as 1)

from tablepress.

TobiasBg avatar TobiasBg commented on May 29, 2024

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.

gabrielecker avatar gabrielecker commented on May 29, 2024

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.

TobiasBg avatar TobiasBg commented on May 29, 2024

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.

gabrielecker avatar gabrielecker commented on May 29, 2024

I'll see what I can do :) probably will take some time though. Thanks for your attention for now.

from tablepress.

TobiasBg avatar TobiasBg commented on May 29, 2024

HI @gabrielecker,

did you find anything in your tests?

Best wishes,
Tobias

from tablepress.

gabrielecker avatar gabrielecker commented on May 29, 2024

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.

TobiasBg avatar TobiasBg commented on May 29, 2024

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.

gabrielecker avatar gabrielecker commented on May 29, 2024

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)

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.