manoswc Posted October 16, 2014 Share Posted October 16, 2014 (edited) In drive.php public function insert($postBody, $optParams = array()) { $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Drive_DriveFile"); } In resource.php public function call($name, $arguments, $expected_class = null) { if (! isset($this->methods[$name])) { throw new Google_Exception( "Unknown function: " . "{$this->serviceName}->{$this->resourceName}->{$name}()" ); } firstpro.php Edited October 16, 2014 by manoswc Quote Link to comment https://forums.phpfreaks.com/topic/291789-i-couldnt-clear-this-issue-can-anyone-help-me-fatal-error-uncaught-exception-google_exception-with-message-unknown-functio-n-insert/ Share on other sites More sharing options...
maxxd Posted October 16, 2014 Share Posted October 16, 2014 Given your hand-coded error message, I'd venture a guess that neither resource.serviceName nor resource.resourceName are set, and resource::insert() doesn't exist in the $methods array. Also, in the future please use the code tags (< > in the toolbar) when posting code as it does make it easier to read. Yours wasn't bad, but it's a good habit to get in to. Quote Link to comment https://forums.phpfreaks.com/topic/291789-i-couldnt-clear-this-issue-can-anyone-help-me-fatal-error-uncaught-exception-google_exception-with-message-unknown-functio-n-insert/#findComment-1493930 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.