unable to embedd a youtube-video

luziusalbin
luziusalbin's picture

Joined: 2011-09-29
Posts: 32
Posted: Mon, 2011-10-03 08:24

hi there,

since an hour i try to add a youtube-video to my gallery... nothing's going!
i fill out the form like this:

[img]http://www.those.ch/little_pix/add1.jpg[/img]

and after i click the "add" (hinzufügen) button - i always get this message:

[img]http://www.those.ch/little_pix/add2.jpg[/img]

can anyone help me? i tryed some php-workarounds, but they werent very effective as you can see.....

THANKS!

 
mrsmasher

Joined: 2007-02-12
Posts: 35
Posted: Mon, 2011-10-03 13:52

I am not finding an embed video module for gallery3 in the downloads list. Its available only gallery2 may be that's the problem

 
luziusalbin
luziusalbin's picture

Joined: 2011-09-29
Posts: 32
Posted: Mon, 2011-10-03 14:03

under http://www.gallerymodules.com/ u can find it under the G3.0- and G3.1-List... and i think it's preinstalled already...?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2011-10-04 13:55

I have never been able to make this module work and the author has not created any documentation for it. It ehre some users that got it to work and I can't create docs to understand how it works if I can't get it to work.
There is a thread where the author started in the forums, but I can't find it now.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
luziusalbin
luziusalbin's picture

Joined: 2011-09-29
Posts: 32
Posted: Tue, 2011-10-04 14:06

thats like i find out about it...

but is it true, that we can't upload ANY movie to the g3? in any way? not even a flash-movie?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2011-10-04 21:32

I can upload movies just fine.
http://www.mediacollege.com/adobe/flash/video/tutorial/example-flv.html
I just can't get the embedded movie module to work.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
luziusalbin
luziusalbin's picture

Joined: 2011-09-29
Posts: 32
Posted: Wed, 2011-10-05 07:24

do you have a special encoder or a maximum filesize set?
my flv is uploading and then nothings there...

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2011-10-05 14:02

In general I use the server add method to add movies.
Try the small examples first so we are on the same page of what 'nothing there' means.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
luziusalbin
luziusalbin's picture

Joined: 2011-09-29
Posts: 32
Posted: Wed, 2011-10-05 14:20

thats this one in the attachement?
i uploaded a 15MB sized flv movie...
but "it's not there" =(

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2011-10-05 18:00

I don't consider 15Megs small.
Download a movie from http://www.mediacollege.com/adobe/flash/video/tutorial/example-flv.html to see if any of those 3 movies work.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
fatal_g
fatal_g's picture

Joined: 2009-01-14
Posts: 88
Posted: Thu, 2011-10-06 02:49

I get the same error too.

Looking at the logs this is the first thing I see:

Quote:
2011-10-05 22:27:59 -04:00 --- error: file_get_contents() [<a href='function.file-get-contents'>function.file-get-contents</a>]: URL file-access is disabled in the server configuration

and it is erroring on parsing the url

|------------------------------------------\
| You never fail unless you stop trying. |>
|------------------------------------------/

 
fatal_g
fatal_g's picture

Joined: 2009-01-14
Posts: 88
Posted: Thu, 2011-10-06 03:23

to resolve my above issue I had to add the following to my ./galleery3/php.ini:

Quote:
allow_url_fopen = On

From what I've read, this may be restrictive on a host by host basis, and therefore unresolvable in some cases.

Now I get:

Quote:
gallery3/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
gallery3/modules/gallery/models/item.php(738): ORM_Core->validate(NULL)
which is trying to run:
[internal function]: Embedded_videos_Controller->create('1091')
which is NOT the url
2011-10-05 23:07:28 -04:00 --- error: Validation errors: Array
(
[slug] => not_url_safe
)
2011-10-05 23:07:28 -04:00 --- error: ErrorException [ 0 ]: Trying to get property of non-object
/gallery3/modules/embed_videos/controllers/embedded_videos.php(140): gallery_error_Core::error_handler('1091')

more to investigate. It seems that even though I provide a URL it is null, or not getting passed in here.

|------------------------------------------\
| You never fail unless you stop trying. |>
|------------------------------------------/

 
luziusalbin
luziusalbin's picture

Joined: 2011-09-29
Posts: 32
Posted: Thu, 2011-10-06 07:15

i tried to integrate now the smalles of the flv-vids...
upload over server-add works, but there is no thumbnail and it cannot be played...

look attachement

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2011-10-06 13:24

I guess the version of ffmpeg is not compatible with the extraction of the frame to generate the thumb.
See if the http://codex.gallery2.org/Gallery3:Modules:videodimensions module will help.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
luziusalbin
luziusalbin's picture

Joined: 2011-09-29
Posts: 32
Posted: Thu, 2011-10-06 13:29

the case is: i don't really have installed ffmpeg......... my hoster doesn't allow this.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2011-10-07 02:23

I guess the video dimensions module should help. Since you don't have ffmpeg then you will have to live with the default movie thumb or manually chanage it on the file system.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
luziusalbin
luziusalbin's picture

Joined: 2011-09-29
Posts: 32
Posted: Fri, 2011-10-07 06:30

theres my problem: i see the ugly thumbnail, but when i click it, i see only the loading screen... never a movie!
not even a swf or flv file will be played there... if i upload it with the server-add, the video-add or directly.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2011-10-07 13:16

This is taking too ling to diagnose one day at a time. PM me (write to author link) login info to an album so I can see the behavior myself.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2011-10-08 05:09

Got your PM,
I was able to add a video, but no thumb was generated, I suspect that you don't have ffmpeg functioning properly.
The video plays fine in the wind theme. I guess the theme you have chosen does now allow videos t play in the popup or there is some configuration of theme preventing it from working.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
luziusalbin
luziusalbin's picture

Joined: 2011-09-29
Posts: 32
Posted: Sat, 2011-10-08 10:39

u were right! the popup-script is the matter... i turned it off and now it's working.
the thumbnails aren't a big problem, but is there maybe a way to change them?

THANKS FOR ALL! amazing support... really!

i let your account for a moment, if i need more support ;)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2011-10-08 17:58
Quote:
is there maybe a way to change them?

Yes, you will have to manually change them on the file system using the same size of the existing thumb.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
fatal_g
fatal_g's picture

Joined: 2009-01-14
Posts: 88
Posted: Wed, 2011-10-12 06:02

I'm confused?

Did you find a way to embed a youtube video? That was the original question wasn't it?

|------------------------------------------\
| You never fail unless you stop trying. |>
|------------------------------------------/

 
luziusalbin
luziusalbin's picture

Joined: 2011-09-29
Posts: 32
Posted: Wed, 2011-10-12 06:12

i'm sorry... the original question is not solved. just the method to upload
a movie, because this was another point that not worked in my g3.

but i still surf the whole internet to find a php-solution for a embedding-code, that works with this gallery........... still nonthing found!

 
mrsmasher

Joined: 2007-02-12
Posts: 35
Posted: Wed, 2011-10-12 15:26

luz, I tried after u said the module was there, for u at least that error msg appeared for me nothing happens. It just sits over the embed video option.

 
fatal_g
fatal_g's picture

Joined: 2009-01-14
Posts: 88
Posted: Thu, 2011-10-13 04:42

Me too. Which probably means your hosts default has this setting on already.

If I try it now, it just sits there (like you described). BUT, with logging turned on you (at least I,) get the second error I posted.

|------------------------------------------\
| You never fail unless you stop trying. |>
|------------------------------------------/

 
luziusalbin
luziusalbin's picture

Joined: 2011-09-29
Posts: 32
Posted: Thu, 2011-10-13 08:30

so i think we have the same problems... something in the script denies to forward and integrate the embedded youtube-link...
i'm not a php-master, so i don't have any ides, how to change the script to keep it work correctly

 
fatal_g
fatal_g's picture

Joined: 2009-01-14
Posts: 88
Posted: Tue, 2011-10-18 02:37

We need a g3 developer or their little black book on how to accept a URL for the ORM. From what I saw in the logs, it sees the URL, and rejects it for "safety" reasons?

Im not certain this is in itself a function of PHP, I think it is a function of the G3 base

|------------------------------------------\
| You never fail unless you stop trying. |>
|------------------------------------------/

 
luziusalbin
luziusalbin's picture

Joined: 2011-09-29
Posts: 32
Posted: Tue, 2011-10-18 06:09

this sounds complicated, but maybe we can get "floridave" back on this thread, to help us find out. he's a gallery-team-member!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2011-10-18 13:36

I have never got the 'embed video' module to work.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
luziusalbin
luziusalbin's picture

Joined: 2011-09-29
Posts: 32
Posted: Tue, 2011-10-18 13:45

strange, because here is a sort of tutorial how u can make it work correctly.
php-editing needed...

http://gallery.menalto.com/node/97614

or istn't this a working solution?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2011-10-19 01:09

http://gallery.menalto.com/node/97614#comment-352695
Not for me.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
fatal_g
fatal_g's picture

Joined: 2009-01-14
Posts: 88
Posted: Wed, 2011-10-19 04:37

I'm befuddled....
It just worked.

I have not disabled anything. I am logged in as "admin", I went to "add-->embed video", in the url are I pasted exactly what you see on the new line below:
http://www.youtube.com/watch?v=UMv2nrZahD8&feature=player_embedded

clicked add, the button greyed out, and moments later it completed and was there.

I added this under a root album that had other albums in it but as a new item by itself.

I know I fixed the "allow_url_fopen = On " as posted above, and I have debug=4 in the config file, but I do not have any debugging active at the moment at all, and it just "worked".

Pretty cool I gotta say!

|------------------------------------------\
| You never fail unless you stop trying. |>
|------------------------------------------/

 
luziusalbin
luziusalbin's picture

Joined: 2011-09-29
Posts: 32
Posted: Wed, 2011-10-19 05:36

now this is an interesting idea...
i never tried out with the "&feature=player_embedded" command.

HOW and WHERE did u change the "allow_url_fopen = On" and "debug=4"...?
i don't where i can find that - it's not in the advanced-prefs in the admin-menu... or is it?

thanks for the input, i think we can find a solution... I HOPE SO!

 
luziusalbin
luziusalbin's picture

Joined: 2011-09-29
Posts: 32
Posted: Wed, 2011-10-19 09:20

here u have the failure-code after i hit the ADD button... it looks like this:

Quote:
<form action="/pix3/index.php/embedded_videos/create/2" method="post" id="g-add-embed-form">
<input type="hidden" name="csrf" value=removed for public display />
<fieldset>
<legend>Add embedded video to XXXX</legend>
<ul>
<li>
<label for="title" >Title</label>
<input type="text" name="title" value="1" class="textbox" />
</li>
<li class="g-error">
<label for="video_url" >Video URL</label>
<input type="text" name="video_url" value="http://www.youtube.com/watch?v=XXXXXXXXXXXX" class="textbox" />
<p class="g-message g-error">
Invalid URL
</p>
</li>
<li>
<label for="description" >Beschreibung</label>
<textarea name="description" rows="" cols="" class="textarea" >1</textarea>
</li>
<li>
<label for="slug" >Internet Adresse</label>
<input type="text" name="slug" value="http://www.youtube.com/embed/" class="textbox" />
</li>
</ul>
</fieldset>
<fieldset>
<legend></legend>
<ul>
<li>
<input type="submit" value="Hinzufügen" class="submit" />
</li>
</ul>
</fieldset>
</form>

--> i replaced the video- and title-names to "XXXXXX"...

 
fatal_g
fatal_g's picture

Joined: 2009-01-14
Posts: 88
Posted: Thu, 2011-10-20 02:43

My post above is where I set the allow_url_fopen...

fatal_g wrote:
to resolve my above issue I had to add the following to my ./galleery3/php.ini:

Quote:
allow_url_fopen = On

From what I've read, this may be restrictive on a host by host basis, and therefore unresolvable in some cases.

Now I get:

Quote:
gallery3/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
gallery3/modules/gallery/models/item.php(738): ORM_Core->validate(NULL)
which is trying to run:
[internal function]: Embedded_videos_Controller->create('1091')
which is NOT the url
2011-10-05 23:07:28 -04:00 --- error: Validation errors: Array
(
[slug] => not_url_safe
)
2011-10-05 23:07:28 -04:00 --- error: ErrorException [ 0 ]: Trying to get property of non-object
/gallery3/modules/embed_videos/controllers/embedded_videos.php(140): gallery_error_Core::error_handler('1091')

more to investigate. It seems that even though I provide a URL it is null, or not getting passed in here.

|------------------------------------------\
| You never fail unless you stop trying. |>
|------------------------------------------/

Anyhow, as for adding the video, I pasted the link just as you see it and left the title, description, and website areas blank. I can say I had already logged out of the gallery and again, I logged in as "admin" but for whatever reason it worked. No code edits and all of my desired modules are enabled. Nothing changed, besides:
1.) I logged out and logged in as "Admin"
2.) I used the full url instead of the shorter one, BUT I just tried "http://www.youtube.com/watch?v=Q5im0Ssyyus" and it worked too.

So perhaps it has somthing to do with logging out and back in?

|------------------------------------------\
| You never fail unless you stop trying. |>
|------------------------------------------/

 
luziusalbin
luziusalbin's picture

Joined: 2011-09-29
Posts: 32
Posted: Thu, 2011-10-20 06:50

ok, i tried this "allow_url_fopen = On" and nothing changed.

i think my problem is a different to yours. because i don't get an error like you.
i think i have a form-problem, because the failure-message is displayed IN the same
window as the form is to fill out the youtube-links etc... and that what you have
here is a real php-failure-message...

after changing the allow_url_fopen i still got this answer:

Quote:
<p class="g-message g-error">
Invalid URL
</p>

and the rest of the html-code i get there is just the form, written in html, isn't it?
that means, something is going wrong even before the gallery gets my youtube-link...

 
fatal_g
fatal_g's picture

Joined: 2009-01-14
Posts: 88
Posted: Fri, 2011-10-21 02:35

look @ your var/log in g3

|------------------------------------------\
| You never fail unless you stop trying. |>
|------------------------------------------/

 
luziusalbin
luziusalbin's picture

Joined: 2011-09-29
Posts: 32
Posted: Fri, 2011-10-21 06:11

i've attached the log, maybe u can find something... for me it's to f***** complicated... =D

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2011-10-21 13:25
Quote:
2011-10-20 08:43:30 +02:00 --- error: Can't find script file: gallery.form.js

I looked though some themes and can't find that file either.
Some themes have:
<?= $theme->script("jquery.form.js") ?> in page.html.php
Perhaps your theme is missing a file or has a typo?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
luziusalbin
luziusalbin's picture

Joined: 2011-09-29
Posts: 32
Posted: Fri, 2011-10-21 14:11

can anyone look in your gallery3/lib-folder and upload the file: "gallery.form.js" ...?
this file is effective missing on my server!

maybe i can get it work with this!

 
mervyngroves

Joined: 2008-08-03
Posts: 92
Posted: Fri, 2011-10-21 15:53

Here is a copy from a 3.01 beta folder.

 
fatal_g
fatal_g's picture

Joined: 2009-01-14
Posts: 88
Posted: Sat, 2011-10-22 06:13

I dont have it either.

|------------------------------------------\
| You never fail unless you stop trying. |>
|------------------------------------------/

 
fatal_g
fatal_g's picture

Joined: 2009-01-14
Posts: 88
Posted: Sat, 2011-10-22 06:16

this is the part that stands out in your log to me:

Quote:
2011-10-20 08:59:34 +02:00 --- error: File not found: form/add/embedded_videos/18837
2011-10-20 08:59:43 +02:00 --- error: File not found: form/add/embedded_videos/18837
2011-10-20 09:50:15 +02:00 --- error: Kohana_Exception [ 403 ]: @todo FORBIDDEN
/home/thosech/public_html/pix3/modules/gallery/helpers/access.php [ 202 ]

|------------------------------------------\
| You never fail unless you stop trying. |>
|------------------------------------------/

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2011-10-23 04:05
mervyngroves wrote:
Here is a copy from a 3.01 beta folder.

So it looks to me like the OP is using a older version?

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
luziusalbin
luziusalbin's picture

Joined: 2011-09-29
Posts: 32
Posted: Sun, 2011-10-23 16:16

this isn't working, same failure-text... damnit! =/

 
luziusalbin
luziusalbin's picture

Joined: 2011-09-29
Posts: 32
Posted: Thu, 2011-11-17 06:58

hey there... a month's passed... something new here? :)
my youtube-integrator isn't working. tryied some things to change the php codes - argh, nothing!

 
luziusalbin
luziusalbin's picture

Joined: 2011-09-29
Posts: 32
Posted: Mon, 2012-02-20 14:32

hi again, nothing happened here?
the new version is out and it's still not really working...?

 
lordgog

Joined: 2005-12-20
Posts: 1
Posted: Tue, 2012-04-24 02:12

same thing here.. No one seems to be listening

 
Alejandro-SB

Joined: 2011-04-14
Posts: 12
Posted: Mon, 2012-06-11 15:30

I'm on my final exams right now, so I can't work on it, but expect a new module with this working by the end of July.
I need it so I'm gonna do it myself.

 
luziusalbin
luziusalbin's picture

Joined: 2011-09-29
Posts: 32
Posted: Mon, 2012-06-11 15:34

GREAT news! please post it here, if u hav any solution to download or edit! GREAT-GREAT-GREAT!!! =)

 
Alejandro-SB

Joined: 2011-04-14
Posts: 12
Posted: Mon, 2012-06-11 23:47

Just for testing I've installed XAMPP and gallery on localhost, and guess what... it works out the box! Just XAMPP, gallery and embed module.
So I'm starting to think this is something related to the server or some stupid Apache configuration.
Any idea is welcome...