PHP 7 Compliance issues

Team WPMU,

My host is updating to PHP 7 and during our preparations for this we scanned all themes and plugins. A majority came out wonderfully, but MarketPress had numerous issues. Here is what we found:

MarketPress
FILE: /dom8133/wp-content/plugins/marketpress/includes/addons/mp-pdf-invoice/vendors/dompdf/include/page_cache.cls.php
---------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------
 40 | WARNING | Method name "Page_Cache::__query" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
---------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /dom8133/wp-content/plugins/marketpress/includes/addons/mp-pdf-invoice/vendors/dompdf/include/table_frame_decorator.cls.php
---------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------
 181 | ERROR | Using 'break' outside of a loop or switch structure is invalid and will throw a fatal error since PHP 7.0
---------------------------------------------------------------------------------------------------------------------------------

FILE: /dom8133/wp-content/plugins/marketpress/includes/addons/mp-pdf-invoice/vendors/dompdf/dompdf.php
--------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------
 183 | ERROR | Function split() is deprecated since PHP 5.3 and removed since PHP 7.0; use preg_split instead
--------------------------------------------------------------------------------------------------------------

FILE: /dom8133/wp-content/plugins/marketpress/includes/common/payment-gateways/stripe-files/lib/Stripe/Object.php
---------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------
 119 | WARNING | Method name "Stripe_Object::__toJSON" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
 132 | WARNING | Method name "Stripe_Object::__toArray" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
---------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /dom8133/wp-content/plugins/marketpress/includes/common/payment-gateways/mijireh/Rest.php
-------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------
 34 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4.
-------------------------------------------------------------------------------------------------

I'm not sure when PHP 7 is in your pipeline, but it would be great if these issues could be promptly addressed.

Thanks,
Rob

  • Nastia

    Hello jetmac

    I hope you're doing well!

    MarketPress plugin is working well with PHP 7.0 and I can't replicate the same warnings from my end. Would you please let me know what plugin you've used to scan for PHP Compatibility so I could test it as well?

    Please note, that the MarketPress does contain some deprecated codes for these servers, that still running on older PHP versions. But this code is not executed unless the right PHP version is detected.

    Please advise,

    Kind regards,
    Nastia

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.