• Resolved Alan Stewart

    (@heartstone)


    I’m receiving a new error for this pricing table plugin:

    The following plugins/themes are not compatible with PHP 7.1.
    Easy Pricing Tables by Fatcat Apps

    Is this an issue that will be addressed soon?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author fatcatapps

    (@fatcatapps)

    Hello Alan,

    Where are you receiving this message? Our plugin should be fully compatible with PHP 7.1

    As long as the plugin is working, this message can likely be disregarded. There may be some lines of code meant for certain purposes that are not compatible with PHP 7.1, that will never actually run since that is what you are using.

    So please let us know if anything is not working, or if we can be of further assistance with anything else.

    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

    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.

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Warning: not compatible with PHP 7.1’ is closed to new replies.