papercheck
Forum Replies Created
-
This has yet to be resolved. I just updated to Version 2.4.0 and ran into the same issue. The suggestion I added (now to line 56) resolves the issue.
I haven’t heard back, but I did find a workaround for your plugin after I tracked down the bug.
/var/www/website/wp-content/plugins/easy-pricing-tables/pricing-table-plugin.php:52
-relates to-
// Remove Edit link
unset($links[‘edit’]);The problem is that $links is not an array. To handle this situation, I re-wrote line 52:
// Remove Edit link
// unset($links[‘edit’]);
if (is_array($links)) {
if (array_key_exists(‘edit’,$links)) {
unset($links[‘edit’]);
}
}I would like to do a pull request, but I don’t see your Github repo.
You can’t load the plugins page because of the following error while using PHP7.2
[Wed Aug 29 16:28:09.662909 2018] [php7:error] [pid 3081] [client xxx.xxx.xxx.xxx:57586] PHP Fatal error: Uncaught Error: Cannot unset string offsets in /var/www/website/wp-content/plugins/easy-pricing-tables/pricing-table-plugin.php:52\nStack trace:\n#0 /var/www/website/wp-includes/class-wp-hook.php(288): dh_ptp_plugin_settings_link(‘<‘)\n#1 /var/www/website/wp-includes/plugin.php(203): WP_Hook->apply_filters(‘<‘, Array)\n#2 /var/www/website/wp-admin/includes/class-wp-plugins-list-table.php(714): apply_filters(‘plugin_action_l…’, ‘<‘, ‘easy-pricing-ta…’, Array, ‘all’)\n#3 /var/www/website/wp-admin/includes/class-wp-plugins-list-table.php(534): WP_Plugins_List_Table->single_row(Array)\n#4 /var/www/website/wp-admin/includes/class-wp-list-table.php(1165): WP_Plugins_List_Table->display_rows()\n#5 /var/www/website/wp-admin/includes/class-wp-list-table.php(1097): WP_List_Table->display_rows_or_placeholder()\n#6 /var/www/website/wp-admin/plugins.php(571): WP_List_Table->display()\n#7 {main}\n thrown in /var/www/website/wp-content/plugins/easy-pricing-tables/pricing-table-plugin.php on line 52, referer: https://www.website.com/wp-admin/plugins.php