• Resolved Anselm

    (@aurban)


    Give plugin is incompatible with PHP 7:

    FILE: /home/wp/disk/wordpress/wp-content/plugins/give/includes/class-give-logging.php
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
     44 | WARNING | Method name "Give_Logging::__setup_hooks" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/wp/disk/wordpress/wp-content/plugins/give/includes/admin/upgrades/upgrade-functions.php
    ---------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    ---------------------------------------------------------------------------------------------------
     219 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4.
     256 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4.
    ---------------------------------------------------------------------------------------------------
    
    FILE: /home/wp/disk/wordpress/wp-content/plugins/give/includes/admin/system-info.php
    --------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------
     290 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4.
    --------------------------------------------------------------------------------------------------
    
    FILE: /home/wp/disk/wordpress/wp-content/plugins/give/includes/admin/reporting/class-export.php
    -------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------
     53 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4.
    -------------------------------------------------------------------------------------------------
    
    FILE: /home/wp/disk/wordpress/wp-content/plugins/give/includes/admin/reporting/class-export-earnings.php
    --------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------
     43 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4.
    --------------------------------------------------------------------------------------------------------
    
    FILE: /home/wp/disk/wordpress/wp-content/plugins/give/includes/admin/reporting/tools/class-give-tools-recount-customer-stats.php
    --------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------------------
     218 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4.
    --------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/wp/disk/wordpress/wp-content/plugins/give/includes/admin/reporting/tools/class-give-tools-recount-all-stats.php
    ---------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------------------------------
     231 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4.
    ---------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/wp/disk/wordpress/wp-content/plugins/give/includes/admin/reporting/tools/class-give-tools-recount-form-stats.php
    ----------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------------------
     242 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4.
    ----------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/wp/disk/wordpress/wp-content/plugins/give/includes/admin/reporting/tools/class-give-tools-recount-single-customer-stats.php
    ---------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------------------------------------------
     205 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4.
    ---------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/wp/disk/wordpress/wp-content/plugins/give/includes/admin/reporting/tools/class-give-tools-recount-income.php
    ------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------------------
     179 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4.
    ------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/wp/disk/wordpress/wp-content/plugins/give/includes/admin/reporting/tools/class-give-tools-reset-stats.php
    ---------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------------------------
     219 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4.
    ---------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/wp/disk/wordpress/wp-content/plugins/give/includes/admin/reporting/tools/class-give-tools-delete-test-transactions.php
    ----------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------------------------
     191 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4.
    ----------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/wp/disk/wordpress/wp-content/plugins/give/includes/class-give-session.php
    --------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------
     280 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4.
    --------------------------------------------------------------------------------------------------
    
    FILE: /home/wp/disk/wordpress/wp-content/plugins/give/includes/libraries/fpdf/fpdf.php
    ----------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------
     1044 | ERROR | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0
    ----------------------------------------------------------------------------------------------------------
    
    FILE: /home/wp/disk/wordpress/wp-content/plugins/give/includes/libraries/browser.php
    ----------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------
     219 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    ----------------------------------------------------------------------------------------------
    
    FILE: /home/wp/disk/wordpress/wp-content/plugins/give/includes/class-give-license-handler.php
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
     612 | WARNING | Method name "Give_License::__single_subscription_check" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
     792 | WARNING | Method name "Give_License::__is_third_party_addon" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
     807 | WARNING | Method name "Give_License::__remove_license_key_from_subscriptions" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
     841 | WARNING | Method name "Give_License::__remove_license_notices_show_blocker" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
     879 | WARNING | Method name "Give_License::__is_notice_dismissed" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Matt Cromwell

    (@webdevmattcrom)

    Give is fully compatible with PHP 7. We developer on php7 every day. Here’s a few items to help you understand that report more clearly:

    1) You’ll notice there are no ERRORS in that report. Only warnings.
    2) The warnings are in regard to some functions that are used for backward compatibility and necessarily being compatible with older versions of PHP. Our minimum PHP version is 5.3.
    3) If we resolved each of those warnings, Give would ONLY work on PHP 7 and not on previous versions.

    Give works very well on PHP 7. Our givewp.com site is on PHP 7, my personal site is running Give on PHP7 (mattcromwell.com/products/), we have many customers and users running PHP7.

    I hope that clarifies for you a bit how we approach compatibility with PHP both old and new. Thanks!

    Thread Starter Anselm

    (@aurban)

    Thanks for your answer, that’s good to know.
    Give works well on my site, too.

    Plugin Contributor Matt Cromwell

    (@webdevmattcrom)

    Glad to hear!

    If you’re enjoying Give and appreciate our support, we’d love a kind review from you here:
    https://ww.wp.xz.cn/support/plugin/give/reviews/

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP 7 incompatibility’ is closed to new replies.