Closed (fixed)
Project:
AudioField
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2012 at 20:38 UTC
Updated:
12 Sep 2016 at 14:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pcoloma commentedI have the same issue, but because I have fiddle with different modules (Media), removed the fields from the content type and added it back in, I'm not sure if the fault belongs to the module. Anyway as a temporary fix, because I don't have use/and support for the progress bar. I just commented the line 467 in the code.
Hope this helps.
Comment #2
marloncastrillo commentedthanks pcoloma, but I may be a little slow and still don't get how to fix this. So I went to the file and a see this in line 467:
459 // Essentially we use the managed_file type, extended with some enhancements.
460 $element_info = element_info('managed_file');
461 $element += array(
462 '#type' => 'managed_file',
463 '#upload_location' => file_field_widget_uri($field, $instance),
464 '#upload_validators' => file_field_widget_upload_validators($field, $instance),
465 '#value_callback' => 'file_field_widget_value',
466 '#process' => array_merge($element_info['#process'], array('file_field_widget_process')),
467 '#progress_indicator' => $instance['widget']['settings']['progress_indicator'],
468 // Allows this field to return an array instead of a single value.
469 '#extended' => TRUE,
470 );
Honestly I don't understand a coma of this. I kinda have an idea but I am not a programmer so I don't know what's going on. I think what its doing on line 467 is creating an instance of [widget][settings] and searching for [progress_indicator] and since it can't find it then displays the error. But I can't fix it.
I tried removing the Audio field type from the content type and adding it again but is giving the same error.
Comment #3
marloncastrillo commentedI tried doing what #1 told me again and the error is not showing any more. I upload a file and still not showing (at least for now) This is exactly what I did in case someone else have the same problem:
1 Click content type
2 Manage Field for my custom content type
3 I went to the audio field and change the Widget type from Audio Upload to File, click save
4 I save the content type
5 Open the content type again
6 Change the widget type from File to Audio upload, click save
7 Saved the content type
After that the error is not showing anymore. Now I don't know what the problem is exactly. I went to the same file on line 467 to see if there was something different and is the exact the thing, so I don't know what got change but the error is not showing any more.
Hope this helps someone else with the same problem
Comment #4
jesse_kwac commentedI can confirm #3 works. This first happened when I upgraded the Widgets module to version 7.x-1.0-beta5.
Comment #5
snevins commentedRather than commenting out a line from the file module - a core module - I found that un-commenting line 48 ('progress_indicator' => 'throbber',) in audio.field.inc also resolves the problem and avoids messing up other modules like image that use the file module.
You'll need to clear your cache to see the change. To do that go to admin/config/development/performance and click on the "clear all caches" button.
Comment #6
heresh commentedI do what snevins said and the error gone away
Thanksssssssssssss!
Comment #7
marloncastrillo commentedThanks snevins, so far I haven't get the same error, but if it happen again, I'll try your solution.
Comment #8
multpix commenteduncomment line 48 in audio.field.inc
'progress_indicator' => 'throbber',
worked for me)
Thanks
Comment #9
wOOge commentedStill a problem — #3 does help, but the error returns when you open the content type and re-save it without changing the widget type.
Note: Using the dev version: 7.x-1.x-dev (2011-Apr-18) — seems to fix the problem.
Comment #10
music_life_love commentedThank you so much #3 :)
Comment #11
kap316 commentedCheers #3 Appreciated!
Comment #12
deadtech@gmail.com commented#3 worked for me so far...
Comment #13
Anonymous (not verified) commentedHere's a patch that simply un-comments the progress_indicator line from audio.field.inc.
Comment #14
bentedder commentedThanks, worked for me!
Comment #15
mkadin commentedAgreed. Uncommenting this line clears up the problem. RTBC.
Comment #16
gagarine commented#13 working for me.
Comment #17
gagarine commentedThis is still a problem with the new version?
Comment #18
sprite commentedI can report that as of 2014/09/11 the problem reported here still exists.
I created a new clean Drupal 7.31 install on a XAMPP local machine web server.
I then installed audiofield 7.x-1.0-beta4 via the modules page.
I then create a custom content type and added a field to it for uploading mp3 files.
When I tried to create a node of this type, with the audiofield in it, the following warning appears:
Notice: Undefined index: progress_indicator in file_field_widget_form() (line 480 of C:\__sites\www.test.lcl\modules\file\file.field.inc).It is odd that the developers of this module haven't taken notice of the problem over the course of years.
It is odd that the developers of this module don't appear to have commented here about this problem over the course of years.
Comment #19
ws.agency commentedFixed with latest applied patch
Comment #20
ws.agency commented