• Resolved dzarelli

    (@dzarelli)


    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]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author CreativeMindsSolutions

    (@creativemindssolutions)

    We will check this and release a new version.

    Thread Starter dzarelli

    (@dzarelli)

    Thank you! Do you think you will release this new version prior to the end of life for PHP 5x? That would be December 31st. Please advise. Thanks again.

    Plugin Author CreativeMindsSolutions

    (@creativemindssolutions)

    Yes

    Thread Starter dzarelli

    (@dzarelli)

    Could you please advise me on the status of PHP 7.2 compatibility? I see you stated in our previous conversation that you will release a new version before 12/31/2018, but I do not see where a new version was released in over 1 month. We are using CM Answers Pro as well as CM Answers Anonymous Posting. It is active on a number of our blog sites and we are getting ready to upgrade PHP from 5.6 to 7.2. I need to know how this will impact the plugin before we proceed. Otherwise we’ll have to delete the plugin and find another solution. Please advise on the compatibility of your plugin with PHP 7.2.

    Thread Starter dzarelli

    (@dzarelli)

    Specifically, these are the errors we are seeing when performing a PHP7.2 compatibility check.

    CM Answers Anonymous Posting
    FILE: /data/wordpress/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 | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
    221 | ERROR | Function mcrypt_encrypt() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead

    Please advise. Thank you.

    Plugin Author CreativeMindsSolutions

    (@creativemindssolutions)

    Please open support tickets as this is a pro version issues. You can send your in here https://www.cminds.com/wordpress-plugin-customer-support-ticket/

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘In this plugin PHP 7 compatible?’ is closed to new replies.