Closed (fixed)
Project:
Media Field
Version:
4.7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
1 Feb 2007 at 11:27 UTC
Updated:
22 Feb 2007 at 09:12 UTC
Using latest version of CCK, Drupal 4.7.6, version 1.4 of mediafield.
Uploaded video fine - appeared in list. Submitted node. Received following error:
Fatal error: Call to undefined function: _field_file_load() in /var/www/modules/mediafield/videofield.module on line 346
Regards
Patrick
Comments
Comment #1
Patrick Nelson commentedFurther to this, I realised that this might have something to do with not uploading the getid3 library (this module needs documentation - will be happy to write install.txt but cannot submit patches). I uploaded the library to misc/lib, so my drupal install looks like this now:
But I still get the message getid3 lib not found when I first upload or update the video file. Am I putting the library in the right place, i.e., in the misc directory in the drupal root.
For that matter, when you first add a videofield to a CCK content type, you are asked for the directories where the file is to be uploaded. Is this in relation to the root directory too? Or does it relate to the directory recorded in admin/settings?
Regards
Patrick
Comment #2
ardas commentedGreetings,
1. _field_file_load() function is declared in multimediafile.inc which is a common file for both audiofield.module and videofield.module. It should be put in the same folder with these modules. For now, I suggest to put both modules and INC file in the same dir. Please, check that multimediafile.inc is there.
2. getid3 lib is attached by including this file 'misc/lib/getid3/getid3/getid3.php'. Please check that you unpacked getid3 lib correctly.
3. Each field instance can have its own directory which will be used for files to store in. It is assumed this directory is somewhere within 'files' directory (which can be set on admin/settings page).
Comment #3
Patrick Nelson commentedARDAS,
I still can't get this to work and am still receiving the same error message. getid3 is in the proper location now:
The file for storing the video is correctly set up under /files and multimediafile.inc is in the same directory as the two module files.
Regards
Patrick
Comment #4
ardas commentedYes, there was a defect.
Please, update 5.0 release and try it. We fixed several major defects and added several features.
Comment #5
Patrick Nelson commentedThanks ARDAS, but I'm using Drupal 4.7.6, not Drupal 5. I've checked cvs and I can't see any new versions for 4.7.
Comment #6
ardas commentedFor now, we support only 5.0 version. This is because media field is very young and we spent all time porting the basic version to Drupal 5.0 and did all fixes/improvements for 5.0. I'm not sure we have time to supprt 4.7 branch, but I hope we will do at least main fixes this week.
I will be happy if you backport current HEAD version for 4.7 and provide a patch.
Comment #7
joachim commentedI'm getting the same error with Drupal 5.1 and audiofield 5.x-1.0:
Fatal error: Call to undefined function: _field_file_load() in /home/seasider/public_html/drupal5/sites/all/modules/mediafield/audiofield.module on line 316
I've put getid3 in the right place -- misc/lib/getid3/getid3/getid3.php (though BTW, the readme file could give this explicitly to show where to put it, as having two getid3 folders embedded is confusing and I for one wondered if I'd done it properly)
multimediafile.inc is in the modules/mediafield folder.
Comment #8
heng commentedi had the same problem. i "fixed" it (meaning the error does not show anymore and the node is shown except for the player)
i just copy and pasted this from line 43 in audiofield.module
require_once(drupal_get_path('module', 'audiofield') .'/multimediafile.inc');so my function lokks like this
Comment #9
Patrick Nelson commentedThis is still an outstanding bug under the 4.7 version. Can we have a separate thread for the 5.x version please, so this remains outstanding for 4.7?
Comment #10
ardas commentedI have no such problem in 5.0
May be you should update CCK for 5.0, I don't know the reason of the defect in 5.0 but I still can't reproduce it locally.
As for 4.7, we are not going to support this module for 4.7, but we'll be reviewing and apllying patches for those who want to use it in 4.7.
Drupal grows to quickly and we are out of time:(
Comment #11
ardas commentedI did fix for all revisions which must solve the existing problem. Please read this thread http://drupal.org/node/121018.
Thank you all for your help with this problem.
Please download the latest 4.7 release and try it.
Comment #12
ardas commentedThanks Heng for provided patch! I've applied it.
Comment #13
ardas commented