Comments (6)
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.
I checked again and could neither reproduce this nor find an inconsistency in the code.
from tablepress.
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.
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.
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.
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)
- 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
- 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
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.