• Resolved anonymized-151099

    (@anonymized-151099)


    This should be fixed: ‘Notice: Constant WP_DEBUG already defined in C:\xampp\htdocs\test\wordpress\wp-content\plugins\inline-google-spreadsheet-viewer\inline-gdocs-viewer.php on line 16’

    At least check if it is already defined…

    …but even after removing that line there is an error that causes a silent fail.

    line 44/45:
    $resp = wp_remote_get($url);
    if (is_wp_error($resp)) { return false; } // bail on error

    The error thrown is:
    SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

    This can be fixed by changing line 44 to:
    $resp = wp_remote_get($url,array(‘sslverify’=>false));

    Then this appears:
    Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\test\wordpress\wp-content\plugins\inline-google-spreadsheet-viewer\inline-gdocs-viewer.php on line 77
    Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\test\wordpress\wp-content\plugins\inline-google-spreadsheet-viewer\inline-gdocs-viewer.php on line 89

    Ah… got it…
    Seems the public function ‘str_getcsv’ doesn’t work properly with the line-endings, throwing all rows into on… so simply use the fallback method you wrote and everything works fine.

    So this:
    $r = (function_exists(‘str_getcsv’)) ? str_getcsv($resp[‘body’]) : $this->str_getcsv($resp[‘body’]);
    should be:
    $r = $this->str_getcsv($resp[‘body’]);

Viewing 1 replies (of 1 total)
  • Plugin Author Meitar

    (@meitar)

    Version 0.3.1 addresses these problems, except the SSL certificate verification, which is actually an important security feature. When you get an SSL error like that, it’s trying to tell you there’s something unusual about your connection to Google. I’m not going to disable security checks on this plugin, some people use it for business reasons that need them.

    Thanks for your post.

Viewing 1 replies (of 1 total)

The topic ‘doesn't work in 3.6.1’ is closed to new replies.