Hello,
the function theme_emvideo_youtube_flash is missing.
Therefore I get the following error.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_emvideo_youtube_flash' was given in D:\xampp\htdocs\local_hundekauf_drupal6\includes\theme.inc on line 597.
Can you help?
best regards
Klaus
p.s.I am from Germany and I hope my english is good enough to understand it.
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | youtube.patch | 903 bytes | prbass |
Comments
Comment #1
alex ua commentedThis should be fixed in the latest dev version.
Comment #2
klaus66 commentedHello Alex UA,
now I have the newest dev version. But the error is the same.
When I rename the function "video_cck_youtube_flash" in youtube.inc in "theme_emvideo_youtube_flash" then it works fine.
Best regards
Klaus Mergen
Comment #3
alex ua commentedI went ahead and rolled an alpha1 release, which has the right code (it was there in the dev release, but I don't know why you couldn't get it). Try that one.
Comment #4
klaus66 commentedHello Alex,
thank you for your answer.
Now I have the newest alpha version but the problem is the same.
In theme.inc on line 597 ($output = call_user_func_array($info['function'], $args);) drupal wants the function "theme_emvideo_youtube_flash". But it can't find that function because the function in youtube.inc the name of the themefunction is "video_cck_youtube_flash".
What can I do now?
Best regards
Klaus Mergen
Comment #5
alex ua commentedPlease delete your version and unpack it again. I'm 100% positive that the correct version is in both alpha and dev.
i.e. if you look in cvs, you can see it:
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/emfield/con...
Comment #6
alex ua commentedNevermind. I'm an idiot. It's there now in dev and will be in alpha2.
Comment #7
prbass commentedI'm pretty new to CVS, but I think the Head version is still muddled.
I've just checked it out again - in the contrib folder I have a video_cck folder, but no emvideo folder.
Comment #8
klaus66 commentedHello Alex,
now I have install the newest dev version.
the same problem.
I search with Dreamweaver for the themefunction 'emvideo_youtube_flash', but there isn't such a function in the whole project.
And therefore I get the error again.
Please help me.
best regards
Klaus Mergen
Comment #9
alex ua commentedPlease check the releases page for which version corresponds to which release. For Drupal 6 you should be using DRUPAL-6--1 . HEAD is still the Drupal 5 development version.
Comment #10
prbass commentedKlaus - the correct function is theme_emvideo_youtube_flash on line 240 of youtube.inc
I would roll a patch, but I'm not sure what to patch it against!
@Alex UA - thanks for that - that makes a lot more sense. Got the correct version from the CVS, now, but I think the above still applies.
Comment #11
prbass commentedHere isn't a patch.
I'll create a separate issue / patch for the ampersands.
Thanks Alex.
Comment #12
alex ua commentedThe issue is already fixed, so please don't use this patch (well- it won't work anyway). If you patch the head version it won't work anyway, as that's for Drupal 5.
If you can- please submit a patch with the ampersand fixes only.
Comment #13
klaus66 commentedHello together,
I work with drupal 6 and I have at the moment ' emfield-6.x-1.x-dev.tar.gz' in use. And in this version there is the same problem that I explain in the other comments.
Where is the right themefunction ?
can you explain me why I get this error:
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_emvideo_youtube_flash' was given in D:\xampp\htdocs\local_hundekauf_drupal6\includes\theme.inc on line 597.best regards
Klaus Mergen
Comment #14
prbass commented@Klaus - the tarball doesn't include the latest code from the CVS repository - it is a snapshot that was released before Alex UA fixed youtube.inc.
You can download the latest one from:
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/emfield/con...
However, this still contains an error - you need to change line 240
function emvideo_youtube_flash
function theme_emvideo_youtube_flash ....
and then it should work
@Alex UA - I'm marking this as active again - the latest code in the CVS DRUPAL-6--1 branch is still broken.
See attached patch against $Id: youtube.inc,v 1.1.2.7 2008/08/12 16:03:10 alexua
Comment #15
alex ua commentedThanks- I committed your patch.
Comment #16
klaus66 commentedHello,
thanks for your answers.
Now I have the new revision of youtube.inc and it works fine.
best regards
Klaus Mergen
Comment #17
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.