Some error reporting would be great
-
Thanks for the awesome plugin!
Is there a Github location through which I could possibly contribute?
I’m not clear on what exactly my Google API ID is, and the plugin shortcode seems to die quietly rather than returning a useful error message.
I have added the following lines to
modules/reviews.php
at about line 58.// Output some useful error message if result fails if (array_key_exists('error_message', $data)) { return 'Google API returned an error message: <br>' . "\n Error Message: " . $data['error_message'] . '<br>Try this URL in a browser and see what result you get: <a href="' . $curl_url . '">' . $curl_url . '</a>'; }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Some error reporting would be great’ is closed to new replies.