Giter VIP home page Giter VIP logo

Comments (6)

TobiasBg avatar TobiasBg commented on June 1, 2024

Hi,

thanks for your post, and sorry for the trouble.

I checked the TablePress code again but can't spot a bug there. My assumption is that another plugin (or the theme) is interering here. To explain this more:
That TablePress_Admin_Controller::add_plugin_row_meta() function is hooked to the plugin filter hook plugin_row_meta (see this line in WP Core). From there, it gets an array ($links) and the $file that is currently processed. If the $file matches the TablePress main file (which is stored in TABLEPRESS_BASENAME), the function appends some entries to the $links array (thus, it is not directly "populating" it, but only adding to it). Ultimately, he links in that array are then printed to the "Plugins" page by WordPress.
Now, unless your WordPress installation (specifically the file class-wp-plugins-list-table.php) or the TablePress plugin files are corrupted, the only way I see for how this can happen is if another plugin is also hooking into the plugin_row_meta filter (because it also wants to add links to its row), but forgets to again return the modified $links array in its filter hook function.
As filters are evaluated sequentially, WordPress will then pass NULL (because there was no return value from that other function's call) to the TablePress filter hook function add_plugin_row_meta. However, NULL does not match the required array type of the $links variable (TablePress has strict checks in place here, to find such errors that otherwise might go unnoticed), and that results in the encountered PHP error.

I therefore suggest that you try again after reverting your changes to the TablePress plugin files (i.e. go back to a fresh copy): First, deactivate all plugins. Then activate TablePress. The problem should not occur then. Then, reactivate the other plugins one by one, until the error happens again. We have then found the plugin that causes the problem.

from tablepress.

TobiasBg avatar TobiasBg commented on June 1, 2024

I checked again and could neither reproduce this nor find an inconsistency in the code.

from tablepress.

mattsaler avatar mattsaler commented on June 1, 2024

Sorry, we were going to do some additional testing, but got pulled onto something else—you must be right about it being another plugin. Will update this to close the loop, but yeah, it's not on you.

from tablepress.

TobiasBg avatar TobiasBg commented on June 1, 2024

No problem at all! Thanks for the reply! If you happen to find that this is caused by TablePress, just let me know here.

from tablepress.

sunyleone avatar sunyleone commented on June 1, 2024

very most thanks mr tobias .can u do 1 thing ?
add compare parameter to search
example -
1 field -- NAME
2 FIELD -- NUMERICAL VALUE (123)
3. SEARCH

from tablepress.

TobiasBg avatar TobiasBg commented on June 1, 2024

Hi,

I'm really sorry, but something like that is not really possible :-( I hope that TablePress is still useful to you!

Best wishes,
Tobias

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.