• Resolved dz0ny

    (@dz0ny)


    "type": "ErrorException",
    "stacktrace": {
        "frames": [
            {
                "context_line": "      $obj = json_decode($res['body']);",
                "filename": "/var/www/domain.com/public_html/wp-content/plugins/pretty-link/pro/app/models/PlpUtils.php",
                "lineno": 135
            }
        ]
    },
    "module": "/var/www/domain.com/public_html/wp-content/plugins/pretty-link/pro/app/models/PlpUtils.php:135"
    

    Should be something like:

    
    $res = wp_remote_get($url);
    if (is_wp_error($res)){
        return 'Unknown';
    }
    $obj = json_decode($res['body']);
    
    • This topic was modified 7 years, 1 month ago by dz0ny.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Missing response check in plugin’ is closed to new replies.