demianturner / sgl-docs-tickets-migration-test

0 stars 0 forks source link

Error when uploading file in media manager #1754

Open demianturner opened 11 years ago

demianturner commented 11 years ago

Happens when trying to upload any file.

I tracked the error to MediaUploaderMgr.php by changing lines 68 and 70 in modules/media/www/js/Media2/Upload.js to;

                success: alert('got here'),//_self.uploadCallback,
                error: function(r, status, e) {
                console.log(r);

I will try and attach the response text, which you will see seems to simply be the main content for the site, i.e. NOT a json encoded response

demianturner commented 11 years ago

[shaunmza] adding the following code in the 'display' method is a hack but it works then,

echo json_encode($output->oResponse); die();