In this plugin PHP 7 compatible?
-
We use CM Answers Pro and CM Answers Anonymous in our enterprise WordPress multi-site instance. PHP 5x is end of life and will now longer be supported after December 31st. That means no more updates, no more security patches, no more assistance when issues are discovered.when a piece of software reaches end of life, and is still widely used, that software becomes a prime target for bad actors. I used PHP Compatibility checker plugin to scan our site. While CM Answers Pro shows as compatible (with warnings) see below –
FILE: /var/www/html/wp-content/plugins/cm-answers-pro/lib/CMA.php ----------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ----------------------------------------------------------------------------- 1 | WARNING | File has mixed line endings; this may cause incorrect results ----------------------------------------------------------------------------- FILE: /var/www/html/wp-content/plugins/cm-answers-pro/lib/models/Thread.php ------------------------------------------------------------------------------------------------------------ FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES ------------------------------------------------------------------------------------------------------------ 127 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead 190 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead 200 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead 2841 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead 2842 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead ------------------------------------------------------------------------------------------------------------ FILE: /var/www/html/wp-content/plugins/cm-answers-pro/lib/models/Answer.php ----------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ----------------------------------------------------------------------------- 1 | WARNING | File has mixed line endings; this may cause incorrect results ----------------------------------------------------------------------------- FILE: /var/www/html/wp-content/plugins/cm-answers-pro/lib/helpers/StickyQuestion.php ------------------------------------------------------------------------------------ FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ------------------------------------------------------------------------------------ 1 | WARNING | File has mixed line endings; this may cause incorrect results ------------------------------------------------------------------------------------ FILE: /var/www/html/wp-content/plugins/cm-answers-pro/lib/helpers/Shortcodes.php -------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE -------------------------------------------------------------------------------- 1 | WARNING | File has mixed line endings; this may cause incorrect results -------------------------------------------------------------------------------- FILE: /var/www/html/wp-content/plugins/cm-answers-pro/lib/helpers/Opauth/Strategy/Twitter/TwitterStrategy.php ------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------- 1 | WARNING | File has mixed line endings; this may cause incorrect results ------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/wp-content/plugins/cm-answers-pro/lib/helpers/Opauth/OpauthStrategy.php ------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ------------------------------------------------------------------------------------------- 1 | WARNING | File has mixed line endings; this may cause incorrect results ------------------------------------------------------------------------------------------- FILE: /var/www/html/wp-content/plugins/cm-answers-pro/lib/helpers/Widgets/RelatedQuestionsWidget.php ---------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------------------------------------- 1 | WARNING | File has mixed line endings; this may cause incorrect results ---------------------------------------------------------------------------------------------------- FILE: /var/www/html/wp-content/plugins/cm-answers-pro/lib/helpers/Widgets/CountersWidget.php -------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE -------------------------------------------------------------------------------------------- 1 | WARNING | File has mixed line endings; this may cause incorrect results -------------------------------------------------------------------------------------------- FILE: /var/www/html/wp-content/plugins/cm-answers-pro/lib/helpers/Widgets/TopContributorsWidget.php --------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE --------------------------------------------------------------------------------------------------- 1 | WARNING | File has mixed line endings; this may cause incorrect results --------------------------------------------------------------------------------------------------- FILE: /var/www/html/wp-content/plugins/cm-answers-pro/lib/controllers/ContributorController.php ----------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ----------------------------------------------------------------------------------------------- 1 | WARNING | File has mixed line endings; this may cause incorrect results ----------------------------------------------------------------------------------------------- FILE: /var/www/html/wp-content/plugins/cm-answers-pro/package/cminds-pro.php -------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE -------------------------------------------------------------------------------------------------------------------------- 49 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$globalVariableName}
CM Answers Anonymous Posting shows several warnings and errors.
FILE: /var/www/html/wp-content/plugins/cm-answers-anonymous-posting/libs/FlashMessage.php ----------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ----------------------------------------------------------------------------------------- 1 | WARNING | File has mixed line endings; this may cause incorrect results ----------------------------------------------------------------------------------------- FILE: /var/www/html/wp-content/plugins/cm-answers-anonymous-posting/views/frontend/css.php ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1 | WARNING | No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/wp-content/plugins/cm-answers-anonymous-posting/views/frontend/email.php -------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE -------------------------------------------------------------------------------------------- 1 | WARNING | File has mixed line endings; this may cause incorrect results -------------------------------------------------------------------------------------------- FILE: /var/www/html/wp-content/plugins/cm-answers-anonymous-posting/cm-answers-anonymous-posting-base.php ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 157 | WARNING | Method name "CMAnswersAnonymousPosting::__showProMessage" is discouraged; PHP has reserved all method names with a double underscore prefix for future use. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/wp-content/plugins/cm-answers-anonymous-posting/package/cminds-pro.php -------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE -------------------------------------------------------------------------------------------------------------------------- 49 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$globalVariableName} -------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/wp-content/plugins/cm-answers-anonymous-posting/vendor/recaptchalib.php ------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 4 ERRORS AFFECTING 3 LINES ------------------------------------------------------------------------------------------------------------------------------------------------------- 218 | ERROR | The constant "MCRYPT_MODE_CBC" is deprecated since PHP 7.1 and removed since PHP 7.2 219 | ERROR | The constant "MCRYPT_RIJNDAEL_128" is deprecated since PHP 7.1 and removed since PHP 7.2 221 | ERROR | Function mcrypt_encrypt() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 221 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead -------------------------------------------------------------------------------------------------------------------------------------------------------
Could you please advise me on the status oh PHP compatibility for these plugins? If they are not yet compatible, is it on your road map? It would be a real pain to try and find a replacement plugin that is compatible due to the number of subsites that would require modification.
Please advise.
Thanks
The page I need help with: [log in to see the link]
- The topic ‘In this plugin PHP 7 compatible?’ is closed to new replies.