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.

CommentFileSizeAuthor
#14 youtube.patch903 bytesprbass

Comments

alex ua’s picture

Status: Active » Fixed

This should be fixed in the latest dev version.

klaus66’s picture

Hello 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

alex ua’s picture

I 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.

klaus66’s picture

Hello 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

alex ua’s picture

Please 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...

alex ua’s picture

Nevermind. I'm an idiot. It's there now in dev and will be in alpha2.

prbass’s picture

I'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.

klaus66’s picture

Hello 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

alex ua’s picture

Please 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.

prbass’s picture

Klaus - 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.

prbass’s picture

Here isn't a patch.

I'll create a separate issue / patch for the ampersands.

Thanks Alex.

alex ua’s picture

The 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.

klaus66’s picture

Hello 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

prbass’s picture

Status: Fixed » Active
StatusFileSize
new903 bytes

@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

alex ua’s picture

Status: Active » Fixed

Thanks- I committed your patch.

klaus66’s picture

Hello,

thanks for your answers.

Now I have the new revision of youtube.inc and it works fine.

best regards

Klaus Mergen

Anonymous’s picture

Status: Fixed » Closed (fixed)

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