• Hi, we’re preparing to update to PHP 7, and I’m running preliminary checks of our code using the PHP Compatibility Checker plugin. Toolset Types is throwing a number of warnings and four errors when tested with PHP 7.2. I know some of the warnings are probably false positives and that your devs have been working to be sure this plugin works with PHP 7.x.

    Please share this info with your devs. The info is for version 2.2.22 on WordPress 4.9.5.

    FILE: [path redacted]/wp-content/plugins/types/application/controllers/asset/manager.php
    ———————————————————————–
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    ———————————————————————–
    44 | WARNING | Method name “Types_Asset_Manager::__initialize_styles” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    49 | WARNING | Method name “Types_Asset_Manager::__initialize_scripts” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    ———————————————————————–

    FILE: [path redacted]/wp-content/plugins/types/vendor/toolset/toolset-common/classes/validation-cakephp.php
    ———————————————————————–
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    ———————————————————————–
    1098 | WARNING | Method name “Wpcf_Cake_Validation::__populateIp” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1129 | WARNING | Method name “Wpcf_Cake_Validation::__reset” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    ———————————————————————–

    FILE: [path redacted]/wp-content/plugins/types/vendor/toolset/toolset-common/inc/toolset.assets.manager.class.php
    ———————————————————————–
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    ———————————————————————–
    372 | WARNING | Method name “Toolset_Assets_Manager::__initialize_styles” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    530 | WARNING | Method name “Toolset_Assets_Manager::__initialize_scripts” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    ———————————————————————–

    FILE: [path redacted]/wp-content/plugins/types/vendor/toolset/toolset-common/lib/cakephp.validation.class.php
    ———————————————————————–
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    ———————————————————————–
    1096 | WARNING | Method name “Toolset_CakePHP_Validation::__populateIp” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1127 | WARNING | Method name “Toolset_CakePHP_Validation::__reset” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    ———————————————————————–

    FILE: [path redacted]/wp-content/plugins/types/vendor/toolset/toolset-common/lib/Twig/Compiler.php
    ———————————————————————–
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ———————————————————————–
    216 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2
    ———————————————————————–

    FILE: [path redacted]/wp-content/plugins/types/vendor/toolset/toolset-common/lib/Twig/Lexer.php
    ———————————————————————–
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ———————————————————————–
    80 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2
    ———————————————————————–

    FILE: [path redacted]/wp-content/plugins/types/vendor/toolset/toolset-common/toolset-forms/js/recaptcha-php-1.11/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
    ———————————————————————–

    FILE: [path redacted]/wp-content/plugins/types/vendor/toolset/toolset-common/toolset-forms/lib/CakePHP-Validation.php
    ———————————————————————–
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    ———————————————————————–
    1168 | WARNING | Method name “WPToolset_Cake_Validation::__populateIp” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1199 | WARNING | Method name “WPToolset_Cake_Validation::__reset” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    ———————————————————————–

    FILE: [path redacted]/wp-content/plugins/types/vendor/toolset/toolset-common/user-editors/editor/templates/inline-ct-overlay.tpl.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: [path redacted]/wp-content/plugins/types/vendor/toolset/toolset-common/user-editors/editor/templates/inline-ct-saving-overlay.tpl.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: [path redacted]/wp-content/plugins/types/vendor/toolset/types/embedded/admin.php
    ———————————————————————–
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ———————————————————————–
    391 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    ———————————————————————–

    FILE: [path redacted]/wp-content/plugins/types/vendor/toolset/types/embedded/classes/field.php
    ———————————————————————–
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ———————————————————————–
    758 | WARNING | Method name “WPCF_Field::__get_slug_no_prefix” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    ———————————————————————–

    FILE: [path redacted]/wp-content/plugins/types/vendor/toolset/types/embedded/classes/loader.php
    ———————————————————————–
    FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
    ———————————————————————–
    120 | WARNING | Method name “WPCF_Loader::__registerScripts” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    173 | WARNING | Method name “WPCF_Loader::__registerStyles” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    321 | WARNING | Method name “WPCF_Loader::__toolset” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    ———————————————————————–

    FILE: [path redacted]/wp-content/plugins/types/vendor/toolset/types/embedded/classes/relationship/form-child.php
    ———————————————————————–
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ———————————————————————–
    674 | WARNING | Method name “WPCF_Relationship_Child_Form::__filter_meta_form” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    ———————————————————————–

    FILE: [path redacted]/wp-content/plugins/types/vendor/toolset/types/embedded/classes/validation-cakephp.php
    ———————————————————————–
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    ———————————————————————–
    1100 | WARNING | Method name “Wpcf_Cake_Validation::__populateIp” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1131 | WARNING | Method name “Wpcf_Cake_Validation::__reset” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    ———————————————————————–

    FILE: [path redacted]/wp-content/plugins/types/vendor/toolset/types/embedded/includes/fields/date/functions.php
    ———————————————————————–
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ———————————————————————–
    457 | WARNING | Function name “__wpcf_fields_date_check_leftover” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    ———————————————————————–

    FILE: [path redacted]/wp-content/plugins/types/vendor/toolset/types/embedded/includes/fields/map.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: [path redacted]/wp-content/plugins/types/vendor/toolset/types/embedded/includes/fields/time.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: [path redacted]/wp-content/plugins/types/vendor/toolset/types/embedded/includes/fields/twitter.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: [path redacted]/wp-content/plugins/types/vendor/toolset/types/embedded/resources/index.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: [path redacted]/wp-content/plugins/types/vendor/toolset/types/embedded/usermeta-init.php
    ———————————————————————–
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ———————————————————————–
    188 | WARNING | Function name “__wpcf_usermeta_test” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    ———————————————————————–

    FILE: [path redacted]/wp-content/plugins/types/vendor/toolset/types/embedded/views/image.php
    ———————————————————————–
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    ———————————————————————–
    124 | WARNING | Method name “Types_Image_View::__resizeImg” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    764 | WARNING | Method name “Types_Cache::__getCacheKey” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    ———————————————————————–

    FILE: [path redacted]/wp-content/plugins/types/vendor/toolset/types/includes/fields/map.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: [path redacted]/wp-content/plugins/types/vendor/toolset/types/includes/fields/time.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: [path redacted]/wp-content/plugins/types/vendor/toolset/types/resources/index.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: [path redacted]/wp-content/plugins/types/vendor/twig/twig/lib/Twig/Compiler.php
    ———————————————————————–
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ———————————————————————–
    218 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2
    ———————————————————————–

    FILE: [path redacted]/wp-content/plugins/types/vendor/twig/twig/lib/Twig/Lexer.php
    ———————————————————————–
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    ———————————————————————–
    87 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2
    91 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2
    ———————————————————————–

Viewing 5 replies - 1 through 5 (of 5 total)
  • Anonymous User 14808221

    (@anonymized-14808221)

    I have passed the information on to the developers.

    I just cherry-picked a few warnings you list and agree with all of them, I even see that our sister Plugin WPML already took action in regard, hence it cannot be long until Types applies for example the deprecated mbstring.func_overload solutions.

    I will update this ticket once I have more details from the developers.

    Anonymous User 14808221

    (@anonymized-14808221)

    The Developers were aware of this and working hard to solve every single of those issues.

    I am not able to give you an ETA though.

    Thread Starter model13

    (@model13)

    Thank you for your prompt attention and response! Will you let the developers know that when they do resolve all the issues, it would be helpful to site administrators if they include that detail in the update’s release notes? We appreciate the help in getting ready for 7.x.

    Anonymous User 14808221

    (@anonymized-14808221)

    They will add this to the changelog, I will try to not forget this ticket and update it as well.

    Thread Starter model13

    (@model13)

    Thanks again!

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

The topic ‘PHP 7 Compatibility Warnings/Errors’ is closed to new replies.