• Resolved tvk5300

    (@tvk5300)


    My provider has upgraded the PHP version from 5.6 to 7.2 and on almost all pages I get this warning:

    Warning: session_set_save_handler(): Cannot change save handler when session is active in /customers/7/4/e/doskobeveren.be/httpd.www/wp-content/plugins/wp-session-manager/vendor/ericmann/sessionz/php/Manager.php on line 133

    I installed the plugin “PHP Compatibility Checker” and I get these warnings and errors:

    Name: Easy FancyBox

    FILE: /customers/7/4/e/doskobeveren.be/httpd.www/wp-content/plugins/easy-fancybox/inc/translation-strings.php
    ————————————————————————————————————-
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ————————————————————————————————————-
    1 | WARNING | File has mixed line endings; this may cause incorrect results
    ————————————————————————————————————-

    Name: Menubar

    FILE: /customers/7/4/e/doskobeveren.be/httpd.www/wp-content/plugins/menubar/wpm-admin.php
    —————————————————————————————————————–
    FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
    —————————————————————————————————————–
    245 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$var}
    336 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$features}
    367 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$features}
    —————————————————————————————————————–

    Name: Responsive Child

    FILE: /customers/7/4/e/doskobeveren.be/httpd.www/wp-content/themes/responsivepro-child/page-pronoregister.php
    —————————————————————————————————————-
    FOUND 2 ERRORS AFFECTING 1 LINE
    —————————————————————————————————————-
    311 | ERROR | Extension ‘ereg’ is deprecated since PHP 5.3 and removed since PHP 7.0; Use pcre instead
    311 | ERROR | Function eregi() is deprecated since PHP 5.3 and removed since PHP 7.0; Use preg_match() instead
    —————————————————————————————————————-

    FILE: /customers/7/4/e/doskobeveren.be/httpd.www/wp-content/themes/responsivepro-child/class-phpmailer.php
    ————————————————————————————————————-
    FOUND 4 ERRORS AND 3 WARNINGS AFFECTING 7 LINES
    ————————————————————————————————————-
    669 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2
    674 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4
    1357 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4
    2526 | ERROR | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0
    2531 | ERROR | INI directive ‘magic_quotes_runtime’ is deprecated since PHP 5.3 and removed since PHP 5.4
    2538 | ERROR | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0
    2540 | ERROR | INI directive ‘magic_quotes_runtime’ is deprecated since PHP 5.3 and removed since PHP 5.4
    ————————————————————————————————————-

    FILE: /customers/7/4/e/doskobeveren.be/httpd.www/wp-content/themes/responsivepro-child/page-pronozoeklogin.php
    —————————————————————————————————————
    FOUND 2 ERRORS AFFECTING 1 LINE
    —————————————————————————————————————
    24 | ERROR | Extension ‘ereg’ is deprecated since PHP 5.3 and removed since PHP 7.0; Use pcre instead
    24 | ERROR | Function eregi() is deprecated since PHP 5.3 and removed since PHP 7.0; Use preg_match() instead
    —————————————————————————————————————

    Name: SlideDeck 3 Personal

    FILE: /customers/7/4/e/doskobeveren.be/httpd.www/wp-content/plugins/slidedeck-responsivepro/lenses/classic/lens.php
    ——————————————————————————————————————-
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ——————————————————————————————————————-
    1 | WARNING | File has mixed line endings; this may cause incorrect results
    ——————————————————————————————————————-

    FILE: /customers/7/4/e/doskobeveren.be/httpd.www/wp-content/plugins/slidedeck-responsivepro/lib/widget.php
    ———————————————————————————————————-
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ———————————————————————————————————-
    43 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    ———————————————————————————————————-

    Name: WP Session Manager

    FILE: /customers/7/4/e/doskobeveren.be/httpd.www/wp-content/plugins/wp-session-manager/vendor/paragonie/random_compat/lib/byte_safe_strings.php
    ———————————————————————————————————————————————–
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    ———————————————————————————————————————————————–
    32 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2
    86 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2
    ———————————————————————————————————————————————–

    FILE: /customers/7/4/e/doskobeveren.be/httpd.www/wp-content/plugins/wp-session-manager/vendor/paragonie/random_compat/lib/random_bytes_mcrypt.php
    ——————————————————————————————————————————————————
    FOUND 3 ERRORS AFFECTING 1 LINE
    ——————————————————————————————————————————————————
    58 | ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
    58 | ERROR | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or OpenSSL instead
    58 | ERROR | The constant “MCRYPT_DEV_URANDOM” is deprecated since PHP 7.1 and removed since PHP 7.2
    ——————————————————————————————————————————————————

    Can someone help me to solve these problems? Thanks.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator t-p

    (@t-p)

    Since these warning are from plugins, try:
    – If you have access to your Dashboard’s Plugins page, try deactivating ALL (yes all) plugins temporarily to see if this resolves the problem (plugin functions can interfere). If this works, re-activate them individually (one-by-one) to find the problematic plugin(s).
    – If you don’t have access to your Dashboard’s Plugins page, try manually resetting your plugins (no Dashboard access required). Here is another tutorial: https://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/ – If that resolves the issue, reactivate each one individually until you find the cause. Also remember to deactivate any plugins in the mu-plugins folder (if you have created such folder). The easiest way is to rename that folder to mu-plugins-old.

    Thread Starter tvk5300

    (@tvk5300)

    Thanks very much t-p, it seems I had 2 plugins who caused the problem:
    WP Editor and WP Session Manager.

    I uninstalled WP Editor because I think I do not necessarily need it.
    WP Session Manager is now deactivated but I have some pages that are only accessible with username and password and now when login in to such a page, I get this:

    Warning: Cannot modify header information – headers already sent by (output started at /customers/7/4/e/doskobeveren.be/httpd.www/wp-content/plugins/wp-session-manager/vendor/ericmann/sessionz/php/Manager.php:133) in /customers/7/4/e/doskobeveren.be/httpd.www/wp-content/plugins/phpexec.php(61) : eval()’d code on line 78

    and on each page:

    Warning: session_set_save_handler(): Cannot change save handler when session is active in /customers/7/4/e/doskobeveren.be/httpd.www/wp-content/plugins/wp-session-manager/vendor/ericmann/sessionz/php/Manager.php on line 133

    But I can not login to my WordPress Dashboard either.

    In Chrome: I get “BLOCKED” and in Firefox: Warning: session_set_save_handler(): Cannot change save handler when session is active in /customers/7/4/e/doskobeveren.be/httpd.www/wp-content/plugins/wp-session-manager/vendor/ericmann/sessionz/php/Manager.php on line 133 Warning: Cannot modify header information – headers already sent by (output started at /customers/7/4/e/doskobeveren.be/httpd.www/wp-content/plugins/wp-session-manager/vendor/ericmann/sessionz/php/Manager.php:133) in /customers/7/4/e/doskobeveren.be/httpd.www/wp-includes/pluggable.php on line 1219

    Moderator t-p

    (@t-p)

    That warning is coming from wp-session-manager. Try deleting it.

    Thread Starter tvk5300

    (@tvk5300)

    I deleted the plugin by FTP, I have access to the Dashboard.

    But can I reinstall the same plugin or do I have to look for another alternative, because I can not reach the pages that are only accessible with username and password?

    Thanks!

    Moderator t-p

    (@t-p)

    Report the issue to at the plugins dedicated forum, and ask the plugin developers.

    Thread Starter tvk5300

    (@tvk5300)

    Thanks for the help.

    Moderator t-p

    (@t-p)

    You are welcome ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PHP upgrade from 5.6 to 7.2’ is closed to new replies.