manoswc Posted October 16, 2014 Share Posted October 16, 2014 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 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. 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
Archived
This topic is now archived and is closed to further replies.