I've been using the PHP SDK to save files programmatically for well over a year without issue. However, just in the past few days a problem suddenly appeared that is throwing a fatal error. I have updated the SDK with the current dropbox-sdk-php-1.1.6 files, with no change.
The error occurs as I make a call to
$dbxClient->createShareableLink($objFile->fileFolder);
PHP Fatal error: Uncaught exception 'Dropbox\Exception_BadResponseCode' with message 'Unexpected HTTP status 301
' in /~application~/includes/dropbox-sdk/Dropbox/RequestUtil.php:256
Stack trace:
#0 /~application~/includes/dropbox-sdk/Dropbox/Client.php(1034): Dropbox\RequestUtil::unexpectedStatus(Object(Dropbox\HttpResponse))
#1 /~application~/uploadFile.php(124): Dropbox\Client->createShareableLink('//WGASC/Alvarad...')
#2 {main}
thrown in /~application~/includes/dropbox-sdk/Dropbox/RequestUtil.php on line 256
Again - this has been working just fine for months until the last few days (<1 week).
Anyone have an idea of what's going on ... and how to resolve?
Thank you in-advance.
-john