doesn't work in 3.6.1
-
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 errorThe error thrown is:
SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failedThis 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 89Ah… 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’]);
The topic ‘doesn't work in 3.6.1’ is closed to new replies.