• w4cdev

    (@w4cdev)


    Notice: Array to string conversion in watchman-site7/class-wms7-core.php on line 407

    `
    // get user cookie.
    $user_cookie = ”;
    foreach ( $_arr_cookie as $key => $value ) {
    $user_cookie = $user_cookie . $key . ‘=’ . $value . ‘ ’;
    }

    The errors are notified due to value defined in alpha, numeric and special characters which is combination that afraid’s us to get the results.

    What is the best enumeration to build this result and get rid of the above php deprecation

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter w4cdev

    (@w4cdev)

    Hope it will also effects the fllowing bunch of code to execute having same issue

    // get user IP.
    $this->user_ip = ( $_forward_for ) ? $_forward_for : $_remote_addr;
    
    // get user info.
    $info_add     = $this->wms7_get_user_ip();
    $user_ip_info = '---Visit page information-------------
    ' .
    'REQUEST_URI = ' . $_request_uri . '
    ' .
    'SERVER_ADDR = ' . $_server_addr . '
    ' .
    'SERVER_NAME = ' . $_server_name . '
    ' .
    'SERVER_SOFTWARE = ' . $_server_software . '
    ' . $info_add . '
    ' . '---Information about the Cookie visitor---
    ' .
    $user_cookie;
    Plugin Author adminkov

    (@adminkov)

    Hello dear w4cdev. Thank you for your comments on the WatchMan-Site7 plugin
    I end up collecting all the errors and bad code snippets of this plugin. And from December 2020 I will start a major rework of the entire plugin. In general, the interface and functionality will remain the same, but I want to thoroughly clean up the code and make it clear, rational, without unnecessary code fragments. I will be grateful if you will inform me about the found errors in the code of this plugin.
    Best regards, adminkov.

    Plugin Author adminkov

    (@adminkov)

    A new version of the WatchMan-Site7 plugin v.4.0.0 has been released
    Try it in action. If there are any mistakes, let me know.
    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Deprecated function Notice: Array to string conversion’ is closed to new replies.