Hello

As soon as i enable Entity Translation for File entity, be with whatever options i select, File edititon popups (ctools?) break. Trows at me an error, then the popup goes into a never ending loop.
So it's no longer possible to edit files, as long as Entity Translation module is active.

Same results with or without aggregation/caching enabled.

related to #1213252: Allow media file's fields to be edited in a modal or after upload in the media widget?
should this go here, in file entity or entity translation?

modules:
drupal 7.17
file_entity 7.x-2.0-unstable7
media 7.x-2.0-unstable7
entity_translation 7.x-1.0-beta2

also have these modules:
admin 7.x-2.0-beta3
admin_tools 7.x-1.1
ctools 7.x-1.2
entity 7.x-1.0-rc3
libraries 7.x-2.0
colorbox 7.x-1.4
media_colorbox 7.x-1.0-rc3+0-dev
file_cache 7.x-1.0-beta2

note: the same setup worked just fine with Entity Translation disabled. as soon as Entity Translation is disabled entirely, or not enabled for Files, everything works normally again.

An AJAX HTTP error occurred.
HTTP Result Code: 404
Debugging information follows.
Path: /.../en/media/986/edit/ajax/.../en/media/986/edit/ajax/node/.../field_file_document
StatusText: Not Found
ResponseText: 
Page not found
@import url(...)(...)
Skip to main content
Page not found
The requested page "/.../en/media/986/edit/ajax/.../en/media/986/edit/ajax/node/.../field_file_document" could not be found.  

Comments

ParisLiakos’s picture

Hmm, not sure, i just tried and works..but i have latest dev of file_entity..could you try with it?

lpalgarvio’s picture

replace file entity with today's dev version.
7.x-2.0-unstable7+2-dev (2012-Nov-21)

a bit different ajax error:

Ocorreu um erro HTTP no Ajax.
Código de Resultado HTTP: 404
Segue informação para depuração.
Caminho: /.../pt/media/980/edit/ajax/.../pt/media/980/edit/ajax/node/.../field_image_gallery
Texto de Estado: Not Found
Texto de Resposta: !responsetext

drupal's error log:

media/980/edit/ajax/.../pt/media/980/edit/ajax/node/.../field_image_gallery
Notice: Use of undefined constant FILE_ENTITY_DEFAULT_ALLOWED_EXTENSIONS - assumed 'FILE_ENTITY_DEFAULT_ALLOWED_EXTENSIONS' em media_variable_default() (linha 133 de /.../sites/all/modules/media/includes/media.variables.inc).
lpalgarvio’s picture

same results with dev media, and also same with dev entity_translation

File entity (fieldable files) 7.x-2.0-unstable7+2-dev
Media 7.x-2.0-unstable7+2-dev (2012-Nov-23)
Entity Translation 7.x-1.0-beta1+14-dev (2012-Nov-22)

there's some wysiwyg fields on the node edit, but they never conflicted with media's edit file.

i've disabled file cache, aggregation and caching all together, and the problem persists.

full module list:
Drupal core 7.17
Address Field 7.x-1.0-beta3
AddThis 7.x-4.0-alpha1
Admin 7.x-2.0-beta3
Admin Tools 7.x-1.1
Administer Users by Role 7.x-1.0-beta1
Administration theme 7.x-1.0
Administration Views 7.x-1.0
Better Exposed Filters 7.x-3.0-beta3
Block Cache Alter 7.x-1.0
Cache Actions 7.x-2.0-alpha5
Calendar 7.x-3.4
Chaos tool suite (ctools) 7.x-1.2
Colorbox 7.x-1.4
Countries 7.x-2.1
Custom Search 7.x-1.11
Data 7.x-1.0-alpha3
Date 7.x-2.6
Diff 7.x-3.2
DraggableViews 7.x-2.0
Email Field 7.x-1.2
Entity API 7.x-1.0-rc3
Entity reference 7.x-1.0
Entity Translation 7.x-1.0-beta1+14-dev (2012-Nov-22) // 7.x-1.0-beta2 (2012-Nov-21)
Entity view modes 7.x-1.0-beta3
Fast Permissions Administration 7.x-2.2
Faster Permissions 7.x-1.2
Features 7.x-1.0
Field collection 7.x-1.0-beta4
Field Collection Table 7.x-1.0-beta1
Field group 7.x-1.1
Field Permissions 7.x-1.0-beta2
File entity (fieldable files) 7.x-2.0-unstable7+2-dev (2012-Nov-21) // 7.x-2.0-unstable7 (2012-Nov-18)
Flag 7.x-2.0
Flag Weights 7.x-1.0
Geofield 7.x-1.1
geoPHP 7.x-1.7
Global Redirect 7.x-1.5
HTML Mail 7.x-2.65
Internationalization 7.x-1.7
Language field 7.x-1.0
Libraries API 7.x-2.0
Link 7.x-1.0
Localization update 7.x-1.0-beta3
Mail System 7.x-2.34
Manual Crop 7.x-1.4
Media 7.x-2.0-unstable7+2-dev (2012-Nov-23) // 7.x-2.0-unstable7 (2012-Nov-18)
Media Colorbox 7.x-1.0-rc3+0-dev (2012-Ago-22)
Menu Admin per Menu 7.x-1.0
Menu block 7.x-2.3
Menu path autocomplete 7.x-1.1
Menu Trail By Path 7.x-2.0
Menu Views 7.x-2.0-rc2
Meta tags 7.x-1.0-beta4
Module Filter 7.x-1.7
Mollom 7.x-2.3
Name Field 7.x-1.7
Node menu permissions 7.x-1.0
Node permissions grid 7.x-1.0
Panelizer 7.x-3.0-rc1
Panels 7.x-3.3
Panels Hash Cache 7.x-1.0-alpha1
Pathauto 7.x-1.2
Phone 7.x-1.x-dev (2012-Mar-02)
References dialog 7.x-1.0-alpha4
Revisioning 7.x-1.4
Role Delegation 7.x-1.1
Rules 7.x-2.2
Schema 7.x-1.0-beta4
Strongarm 7.x-2.0
Taxonomy access fix 7.x-1.1
Token 7.x-1.4
Translation helpers 7.x-1.0
Translation table 7.x-1.0-beta1
Transliteration 7.x-3.1
Variable 7.x-2.1
Views 7.x-3.5
Views Accordion 7.x-1.0-rc2
Views Bulk Operations (VBO) 7.x-3.0
Views content cache 7.x-3.0-alpha1
Views Infinite Scroll 7.x-1.1
Views Slideshow 7.x-3.0
Webform 7.x-3.18
Wysiwyg 7.x-2.2
WYSIWYG Filter 7.x-1.6-rc2
Wysiwyg Linebreaks 7.x-1.4

frank ralf’s picture

I get the same error message with Media 7.x-2.0-unstable7 but don't have Entity Translation installed. Will try again with the current dev version.

 Notice: Use of undefined constant FILE_ENTITY_DEFAULT_ALLOWED_EXTENSIONS 
 - assumed 'FILE_ENTITY_DEFAULT_ALLOWED_EXTENSIONS' in media_variable_default() 
 (line 133 of ...\sites\all\modules\contrib\media\includes\media.variables.inc).

EDIT:
No more warnings with today's dev version 7.x-2.x-dev (2013-Jan-06).

dave reid’s picture

Status: Active » Postponed (maintainer needs more info)

I think we've already fixed any random issues that might have popped up here. Can anyone confirm this is still an active issue?

willyk’s picture

I've tested the above modules/install with the latest x-2.0-alpha1 version of the Media module as well as File Entity and Entity Translation modules without the above issue arising, so I'd say this isn't an active issue any longer unless others disagree.

devin carlson’s picture

Status: Postponed (maintainer needs more info) » Fixed

I also haven't had any issues with translating files using the latest release of Media, File entity and Entity Translation.

Status: Fixed » Closed (fixed)

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