Hi!

I'm not 100% sure of exactly where it breaks, but I've been banging my head all evening on this one and finally got it to work, so I thought I'd share, if it can help someone else. It may belong more in the Media or IMCE module.

Faulty Setup:
Drupal 7.8
Media 7.x-1.0-beta5
Media Gallery 7.x-1.0-beta6
jQuery Update 7.x-2.2
IMCE 7.x-1.4

In Performance : Bandwidth Optimization, "Aggregate JavaScript files" enabled (Home » Administration » Configuration » Development)

Each time I try to upload a picture to a gallery, the media browser looks weird, the upload works ok, i get a message telling me the file was uploaded correctly but all menus and everything else has disappeared.

After hours of running around I noticed that everything using JavaScript was weird.

What worked for me:
- Disable the JQuery Update module
- Disable "Aggregate JavaScript files"
- Flush all caches

I'm not really sure if JQuery Update had anything to do with it, but now it's working and I'm too tired to continue banging on it.

Cheers

Comments

tamsoftware’s picture

Status: Active » Needs review

Forgot to mention: Clean URLS are enabled

Moloc’s picture

Status: Needs review » Fixed

I am not able to reproduce this with the latest drupal core, media, media_gallery and jquery update module.
As it is now working for you, i think we can close this issue.

Note:
There is also another jQuery Update issue. See #1358244: Incompatible with jQuery Update - Lightbox does not show any picture.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Jawni’s picture

Status: Closed (fixed) » Active

Exact same problem here.

Media browser says "file uploaded" but the gallery remains empty in the display.

I don't have jquery update installed, I disable "Aggregate JavaScript files", cleared all caches. Still doesn't work...

Jawni’s picture

Priority: Normal » Major
Moloc’s picture

Priority: Major » Normal

1) What version of media and media_gallery are you using?
2) Do you click on the link "add media" or do you open it in a new Tab/Window? If you open it in a new Tab, then the link is not linked to the media_gallery and the media is not added to the media_gallery.
2.1) Does the upload dialog open in a new site, or in a lightbox?
2.2) Does the upload dialog close itself? Or do you cancel it somehow?
3) Is the image uploaded and accessable? (You can check that using ?q=admin/content/media )
4) Do you use the private or public file system?

EmmyS’s picture

I'm having the same issue; here are my answers:

1) What version of media and media_gallery are you using? - media is 7.x-1.0, media gallery is 7.x-1.0-beta7
2) Do you click on the link "add media" or do you open it in a new Tab/Window? If you open it in a new Tab, then the link is not linked to the media_gallery and the media is not added to the media_gallery. Click on Add Media
2.1) Does the upload dialog open in a new site, or in a lightbox? lightbox overlay
2.2) Does the upload dialog close itself? Or do you cancel it somehow? I'm using Plupload; the uploads dialog closes when finished, but the overlay doesn't go away unless I refresh the page.
3) Is the image uploaded and accessable? (You can check that using ?q=admin/content/media ) That query displays a list of all images, but when I try to click on one, I get this: "The website encountered an error while retrieving http://localhost/drupal7/media/13. It may be down for maintenance or configured incorrectly."
4) Do you use the private or public file system? How can I tell? This is a test database on my local MAMP install.

lsolesen’s picture

Version: 7.x-1.0-beta6 » 7.x-1.0-beta7
Status: Active » Postponed (maintainer needs more info)

@EmmyS Could you please look in your php log to see the exact php error causing the error.

lsolesen’s picture

Status: Postponed (maintainer needs more info) » Fixed

Closing. Inactivity.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.