Hi,
thanks for your post, and sorry for the trouble.
No worries, everything’s compatible here, please see https://wordpress.org/support/topic/is-tablepress-compatible-with-php-7-and-php-7-1/
Regards,
Tobias
Thank you for your quick response! Although, I am asking about PHP 7.2
Hi,
same answer 🙂 (Also for PHP 7.3.)
Regards,
Tobias
Perfect!! Hopefully this post helps out lots of people 😀
Hi,
no problem, you are very welcome! 🙂 Good to hear that this helped!
Best wishes,
Tobias
P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!
Hello, I just upgraded to PHP 7.2 and TablePress is working fine. However, it is throwing an error that prevents the plugin to be listed in the plugins menu. In fact, it stops anything from showing alphabetically after it. For example, my Yoast plugin also doesn’t show (but it works).
I can get to TablePress (and Yoast) by using the search box. I tried disabling TablePress and then it shows up in the menu along with the others that come after “T” so I can confirm that is the problem and it started right after the 7.2 upgrade.
any ideas? error pasted below
Thu Dec 13 14:53:16.578796 2018] [php7:error] [pid 9478] [client 68.8.79.83:22931] PHP Fatal error: Uncaught TypeError: Argument 1 passed to TablePress_Admin_Controller::add_plugin_action_links() must be of the type array, string given in /nas/content/live/tystewart888/wp-content/plugins/tablepress/controllers/controller-admin.php:313
-
This reply was modified 5 years, 10 months ago by tystewart888.
Hi tystewart888,
this is actually caused by another plugin on your site, TablePress just happens to expose this. There’s a plugin that returns an unallowed value in a filter hook (a string instead of an array). You’ll probably see a plugin in the list that does not have the usual links after its description, version number, and author.
Regards,
Tobias
thanks Tobias. I don’t see any of my plugins that are missing that info but I suppose I’ll need to copy my site to staging and go one by one deactivating them to find the actual problem since it doesn’t sound like it’s TablePress.
Hi,
can you provide a screenshot of your list of plugins maybe? Maybe I can spot something.
Another idea would be to search for “plugin_action_links_” inside the PHP code of the plugins (e.g. using grep
if you have shell access to the server). That would show us which plugins use the relevant filter.
Regards,
Tobias
thank you for the offer. I did identify it was WPEditor – https://wordpress.org/plugins/wp-editor/
Now the next thing to do is figuring out if I actually need that plugin!
Hi,
nice find! Thanks for trying this!
You most likely don’t need this anymore. The plugin and theme editors use CodeMirror natively now and do some sort of error checking. And the post editor is Gutenberg now anyways 🙂
Regards,
Tobias
Hi,
experiencing massive errors with the plugin…:
[03-Apr-2019 11:57:34 UTC] PHP Notice: Undefined offset: 4 in /var/www/html/wordpress/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 867
foreach ( $table_row as $col_idx => $table_cell ) {
if ( 0 === $table[‘visibility’][‘columns’][ $col_idx ] ) {
// Column is hidden, so don’t search in it.
continue;
}
// @todo: Cells are not evaluated here, so math formulas are searched.
if ( false !== stripos( $table_cell, $search_term ) ) {
// Found the search term in the cell content.
$query_result[ $search_term ][] = $table_id; // Add table ID to result list
// No need to continue searching this search term in this table.
continue 3;
}
}
It apparently has led to my site to crash several times… Can you help?
Thx a lot!
/Jens
Hi,
thanks for your post, and sorry for the trouble.
This indicates that some table data is corrupted, presumably in the wp_postmeta
database table.
Can you please try saving all your tables again, one by one?
Regards,
Tobias
hmm, that´ll be hundreds of tables… ;-( are you sure this will save the problems?
thx!
Hi,
ok, that’s quite a lot indeed. If possible, I’d like to take a direct look at this on your site. Could you therefore please get in touch by email (the address is in the main plugin file “tablepress.php”)?
Regards,
Tobias