By Marco Ruggiero on Tuesday, 17 November 2015
Posted in Technical Issues
Replies 13
Likes 0
Views 1.6K
Votes 0
I can't post a external video on my site http://www.djmoro.com/site (see attached image)
In ES parameters video are allowed but i have this warning message:

Warning: is_file(): open_basedir restriction in effect. File(/opt/local/bin/ffmpeg) is not within the allowed path(s): (/var/www/vhosts/djmoro.com/:/tmp/) in /var/www/vhosts/djmoro.com/httpdocs/site/libraries/joomla/filesystem/file.php on line 564

Where is the problem?
Hi Marco,

This is actually a php error where your server do not have open_basedir activated and it will return that error when easysocial trying to access your ffmpeg file path. You can refer more about the open_basedir error here, http://stackoverflow.com/questions/1846882/open-basedir-restriction-in-effect-file-is-not-within-the-allowed-paths .

The only way to fix this is by contacting your webhosting service provider and ask them to enable open_basedir on their side.

Hope these help.
·
Wednesday, 18 November 2015 11:27
·
0 Likes
·
0 Votes
·
0 Comments
·
I contacted my host, open_basedir is activated but apparently the library is wrong (/ opt / local / bin / ffmpeg)?
Or is it that you can configure in paramêtres another library?
Can you give me more details on how to solve this problem so I can give them to my host?

A friend, who is also on the same server, also has this problem with ES (yannanderson.com/site)

Thanks
·
Thursday, 19 November 2015 16:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Marco,

Hm. By right it shouldn't call that path if you are not using video upload function. May I know where do you hit the error in your main post?
·
Thursday, 19 November 2015 17:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Backend error (http://www.djmoro.com/site/administrator/index.php?option=com_easysocial&view=settings&layout=form&page=videos) see capture

Warning: is_file(): open_basedir restriction in effect. File(/opt/local/bin/ffmpeg) is not within the allowed path(s): (/var/www/vhosts/djmoro.com/:/tmp/) in /var/www/vhosts/djmoro.com/httpdocs/site/libraries/joomla/filesystem/file.php on line 564

On menu ES/videos i have the error explicated on my first post.

On front end: message after publishing vidéo (external link) "Désolé, mais le contenu est actuellement indisponible ou vous n'avez pas l'autorisations d'y accéder"
translation: Sorry, but the content is currently unavailable or you do not have the permissions to access it

You have tryed to publish a video (Unexpected Moves). -> pending under ES / video with the same error
·
Thursday, 19 November 2015 17:28
·
0 Likes
·
0 Votes
·
0 Comments
·
PS: apparently this error occurred since the last ES version because it worked before
·
Thursday, 19 November 2015 17:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Marco,

I am really sorry for the delay of this reply.

I am not sure why but seems like the issue is only occuring with youtube video link. When I tried to use other video link such as Dailymotion, the video is showing correctly. We will continue to investigate on the issue and will keep you updated once we have found the solution for this.

Thanks for understanding.
·
Thursday, 19 November 2015 18:35
·
0 Likes
·
0 Votes
·
0 Comments
·
News?
·
Friday, 20 November 2015 18:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Marco,

We are still investigating on the issue. We are not entirely sure why the Curl connection is failed to retrieve full content from the youtube link. Perhaps there are some restriction with the youtube link on the server? Can you check your webhosting service provider and ask them is there any security algorithm in place that involve youtube url as well as error log from your server if possible?

Looking forwards to your response.
·
Friday, 20 November 2015 23:39
·
0 Likes
·
0 Votes
·
0 Comments
·
I posed the question to my host:
We have no specific restriction on Youtube, no.
The error log is available in the root of FTP, file "logs", "error_log" file.

....
·
Saturday, 21 November 2015 19:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

I am really sorry for the delay of this reply.

Thanks for the heads up on this issue. We are still investigating on the issue and will get back to you as soon as we can. Thanks for understanding.
·
Monday, 23 November 2015 15:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Marco,

I am really sorry for the delay of this reply.

Seems like you are having the same issue with one of our customer here, http://stackideas.com/forums/issue-with-youtube-videos . I've applied a temporary fix inside your /administrator/components/com_easysocial/includes/crawler/hooks/oembed.php and the youtube video is working correctly now on your site.

Please have a look.
·
Wednesday, 25 November 2015 16:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks, it works good now.

PS: your link http://stackideas.com/forums/issue-with-youtube-videos -> 404 - not found
·
Wednesday, 25 November 2015 16:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Marco,

Ah I am sorry. The thread is private . Nevertheless I will quote back from that thread here.

" I think I finally manage to figure out the exact cause to this issue. Seems like for some reason youtube is blocking the request made from your site since there are too many request made previously. Unfortunately there is no possible way to bypass the block via traditional method that easysocial using currently.

The only workaround so far is we need to use youtube API way in order to get the content from youtube. I've experimenting this on your site by using my own API key inside your /administrator/components/com_easysocial/includes/crawler/hooks/oembed.php and the youtube link is now working correctly on your site. "

I will discuss with our developers regarding on the proper fix to this issue hopefully in the next release of easysocial.
·
Wednesday, 25 November 2015 16:52
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post