Craft 2.6 Asset Upload 500 Error (on Heroku with Amazon S3) I just upgraded a fully functional Craft website to Craft 2.6. The site is hosted on Heroku with assets uploading to S3. So all of that has been working really well for about 10 months. Now I can't upload any more assets. When I choose a file from my computer, the upload hangs.

I get a console error:

Failed to load resource: the server responded with a status of 500 (Internal Server Error)

https://www.example.com/index.php?p=admin/actions/assets/uploadFile Failed to load resource: the server responded with a status of 500 (Internal Server Error)


Here is the response body of the 500 error:

&lt;h1&gt;PHP Error [500]&lt;/h1&gt;
&lt;p&gt;Trying to get property of non-object (/app/craft/app/services/AssetsService.php:707)&lt;/p&gt;
&lt;pre&gt;#0 /app/craft/app/etc/errors/ErrorHandler.php(184): Craft\ErrorHandler-&gt;handleError()
#1 /app/craft/app/framework/base/CErrorHandler.php(133): Craft\ErrorHandler-&gt;handleError()
#2 /app/craft/app/framework/base/CApplication.php(834): Craft\ErrorHandler-&gt;handle()
#3 /app/craft/app/etc/web/WebApp.php(688): Craft\WebApp-&gt;handleError()
#4 /app/craft/app/services/AssetsService.php(707): Craft\WebApp-&gt;handleError()
#5 /app/craft/app/controllers/AssetsController.php(52): Craft\AssetsService-&gt;uploadFile()
#6 /app/craft/app/framework/web/actions/CInlineAction.php(49): Craft\AssetsController-&gt;actionUploadFile()
#7 /app/craft/app/framework/web/CController.php(308): CInlineAction-&gt;runWithParams()
#8 /app/craft/app/framework/web/CController.php(286): Craft\AssetsController-&gt;runAction()
#9 /app/craft/app/framework/web/CController.php(265): Craft\AssetsController-&gt;runActionWithFilters()
#10 /app/craft/app/framework/web/CWebApplication.php(282): Craft\AssetsController-&gt;run()
#11 /app/craft/app/etc/web/WebApp.php(818): Craft\WebApp-&gt;runController()
#12 /app/craft/app/etc/web/WebApp.php(288): Craft\WebApp-&gt;_processActionRequest()
#13 /app/craft/app/framework/base/CApplication.php(185): Craft\WebApp-&gt;processRequest()
#14 /app/craft/app/index.php(62): Craft\WebApp-&gt;run()
#15 /app/public/index.php(19): require_once()
&lt;/pre&gt;


Any ideas? This happens when I try to upload an asset directly in the Assets section of Craft as well as uploading a new image to an Entry.

Thanks.
My answer to my own question: after exhausting all avenues I ended up having to abandon Heroku for this Craft site. I moved the Craft site over to a DV server at Media Temple, moved over the database, and everything is working fine.