YouTube Clone for Elgg v2.0

  • @Tom,

    If I don't configure my cron like this:

    /usr/bin/wget --spider --output-document=/dev/null http://yourelggsite.com /cron/minute>/dev/null 2>&1

    and Instead I configure it like this:

    /usr/bin/curl http://yourelggsite.com /cron/minute>/dev/null 2>&1

    What would be the difference?

  • @Rohit Gupta Rohit Gupta , cron-lynx.sh, wget command, and curl-curl.sh scripts are three of your best candidates for GNU and Linux systems when calling cron.php. All work the same way and you are free to choose which one works best for you. If your website has high traffic, you will want to cron more often.

    For example, –spider makes wget behave as a web spider or google spider that crawls your website at a given interval.

  • The error message by css.php has been fixed. However, I am having issues uploading it on Elgg community.

    http://www.twizanex.com/plugins/30202/releases/2.1

  • afachri , Which version of the YouTube Clone for Elgg are you using? Are you able to upload a 1 to 5 minutes mp4 video without any error?

    Also can you check your file memory limit and see what your elgg allows to upload to the file data folder.

  • Tom@Thomasondiba

    Hi Tom i used iam not seeing any youtube style website what is the url i need to access to view youtube style website

  • when i click on videos its just plays videos no redirecting to youtube style format website, whats missing?

  • I tried to access the url given in snapshot pdf similar way here is below error seen
     
    Fatal Error.
    Call to undefined method IzapVideos::updateVideoViews()
     
    Log at time 1540108822 may have more data.
     
    Error Object
    (
    [message:protected] => Call to undefined method IzapVideos::updateVideoViews()
    [string:Error:private] => Error: Call to undefined method IzapVideos::updateVideoViews() in /var/www/mod/video/views/default/resources/video/video/play.php:26
  • @Tom thank you for replay. i am install elgg versi 2.3.8 in cpanel with softaculous and plugin youtube clone 2.0.

    yes process upload success 100% and directly to page "This page isn’t working".

    i was setting php upload ON and memory limit 128M.

    can this problem be caused by cron job settings?

    sorry my languange English is not good. sorry if it is difficult for you

  • Hi Tom have Error message  am showing pic  on     Http:// 45.77.91.102/video/all but no video  have ffmpeg ok  video converts.

    Tried Izap by iliony okay   AND no you Tube theme like yours this is version 2.3 with Elgg 2.3 version 

    Can   you help please dave

     

    Fatal Error.

    Call to a member function getIconURL() on boolean

    Error Object
    (
    [message:protected] => Call to a member function getIconURL() on boolean
    [string:Error:private] => Error: Call to a member function getIconURL() on boolean in /var/www/html/elgg/mod/video/views/default/resources/video/video/css/css.php:122
    Stack trace:
    #0 /var/www/html/elgg/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php(370): include()
    #1 /var/www/html/elgg/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php(306): Elgg\ViewsService->renderViewFile('resources/video...', Array, 'default', true)
    #2 /var/www/html/elgg/vendor/elgg/elgg/engine/lib/views.php(514): Elgg\ViewsService->renderView('resources/video...', Array)
    #3 /var/www/html/elgg/mod/video/views/default/resources/video/video/play.php(354): elgg_view_resource('video/video/css...', Array)
    #4 /var/www/html/elgg/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php(370): include('/var/www/html/e...')
    #5 /var/www/html/elgg/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php(306): Elgg\ViewsService->renderViewFile('resources/video...', Array, 'default', true)
    #6 /var/www/html/elgg/vendor/elgg/elgg/engine/lib/views.php(514): Elgg\ViewsService->renderView('resources/video...', Array)
    #7 /var/www/html/elgg/mod/video/start.php(73): elgg_view_resource('video/video/pla...', Array)
    #8 [internal function]: video_page_handler(Array, 'video')
    #9 /var/www/html/elgg/vendor/elgg/elgg/engine/classes/Elgg/Router.php(100): call_user_func('video_page_hand...', Array, 'video')
    #10 /var/www/html/elgg/vendor/elgg/elgg/engine/classes/Elgg/Application.php(436): Elgg\Router->route(Object(Elgg\Http\Request))
    #11 /var/www/html/elgg/vendor/elgg/elgg/engine/classes/Elgg/Application.php(384): Elgg\Application->run()
    #12 /var/www/html/elgg/index.php(8): Elgg\Application::index()
    #13 {main}
    [code:protected] => 0
    [file:protected] => /var/www/html/elgg/mod/video/views/default/resources/video/video/css/css.php
    [line:protected] => 122
    [trace:Error:private] => Array
    (
    [0] => Array
    (
    [file] => /var/www/html/elgg/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php
    [line] => 370
    [function] => include
    )

    [1] => Array
    (
    [file] => /var/www/html/elgg/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php
    [line] => 306
    [function] => renderViewFile
    [class] => Elgg\ViewsService
    [type] => ->
    [args] => Array
    (
    [0] => resources/video/video/css/css
    [1] => Array
    (
    )

    [2] => default
    [3] => 1
    )

    )

    [2] => Array
    (
    [file] => /var/www/html/elgg/vendor/elgg/elgg/engine/lib/views.php
    [line] => 514
    [function] => renderView
    [class] => Elgg\ViewsService
    [type] => ->
    [args] => Array
    (
    [0] => resources/video/video/css/css
    [1] => Array
    (
    )

    )

    )

    [3] => Array
    (
    [file] => /var/www/html/elgg/mod/video/views/default/resources/video/video/play.php
    [line] => 354
    [function] => elgg_view_resource
    [args] => Array
    (
    [0] => video/video/css/css
    [1] => Array
    (
    )

    )

    )

    [4] => Array
    (
    [file] => /var/www/html/elgg/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php
    [line] => 370
    [args] => Array
    (
    [0] => /var/www/html/elgg/mod/video/views/default/resources/video/video/play.php
    )

    [function] => include
    )

    [5] => Array
    (
    [file] => /var/www/html/elgg/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php
    [line] => 306
    [function] => renderViewFile
    [class] => Elgg\ViewsService
    [type] => ->
    [args] => Array
    (
    [0] => resources/video/video/play
    [1] => Array
    (
    [poster] => 
    [controls] => controls
    [width] => 100%
    [preload] => metadata
    [guid] => 77
    )

    [2] => default
    [3] => 1
    )

    )

    [6] => Array
    (
    [file] => /var/www/html/elgg/vendor/elgg/elgg/engine/lib/views.php
    [line] => 514
    [function] => renderView
    [class] => Elgg\ViewsService
    [type] => ->
    [args] => Array
    (
    [0] => resources/video/video/play
    [1] => Array
    (
    [guid] => 77
    )

    )

    )

    [7] => Array
    (
    [file] => /var/www/html/elgg/mod/video/start.php
    [line] => 73
    [function] => elgg_view_resource
    [args] => Array
    (
    [0] => video/video/play
    [1] => Array
    (
    [guid] => 77
    )

    )

    )

    [8] => Array
    (
    [function] => video_page_handler
    [args] => Array
    (
    [0] => Array
    (
    [0] => view
    [1] => 77
    [2] => picture-world
    )

    [1] => video
    )

    )

    [9] => Array
    (
    [file] => /var/www/html/elgg/vendor/elgg/elgg/engine/classes/Elgg/Router.php
    [line] => 100
    [function] => call_user_func
    [args] => Array
    (
    [0] => video_page_handler
    [1] => Array
    (
    [0] => view
    [1] => 77
    [2] => picture-world
    )

    [2] => video
    )

    )

    [10] => Array
    (
    [file] => /var/www/html/elgg/vendor/elgg/elgg/engine/classes/Elgg/Application.php
    [line] => 436
    [function] => route
    [class] => Elgg\Router
    [type] => ->
    [args] => Array
    (
    [0] => Elgg\Http\Request Object
    (
    [attributes] => Symfony\Component\HttpFoundation\ParameterBag Object
    (
    [parameters:protected] => Array
    (
    )

    )

    [request] => Symfony\Component\HttpFoundation\ParameterBag Object
    (
    [parameters:protected] => Array
    (
    )

    )

    [query] => Symfony\Component\HttpFoundation\ParameterBag Object
    (
    [parameters:protected] => Array
    (
    [__elgg_uri] => /video/view/77/picture-world
    )

    )

    [server] => Symfony\Component\HttpFoundation\ServerBag Object
    (
    [parameters:protected] => Array
    (
    [REDIRECT_STATUS] => 200
    [HTTP_HOST] => 45.77.91.102
    [HTTP_CONNECTION] => keep-alive
    [HTTP_CACHE_CONTROL] => max-age=0
    [HTTP_UPGRADE_INSECURE_REQUESTS] => 1
    [HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36
    [HTTP_DNT] => 1
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
    [HTTP_REFERER] => http://45.77.91.102/elgg/video/owner/root
    [HTTP_ACCEPT_ENCODING] => gzip, deflate
    [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.9
    [HTTP_COOKIE] => Elgg=rr3be8pnrkt3ip1baqgor27jd0
    [PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    [SERVER_SIGNATURE] => <address>Apache/2.4.29 (Ubuntu) Server at 45.77.91.102 Port 80</address>

    [SERVER_SOFTWARE] => Apache/2.4.29 (Ubuntu)
    [SERVER_NAME] => 45.77.91.102
    [SERVER_ADDR] => 45.77.91.102
    [SERVER_PORT] => 80
    [REMOTE_ADDR] => 81.139.249.45
    [DOCUMENT_ROOT] => /var/www/html
    [REQUEST_SCHEME] => http
    [CONTEXT_PREFIX] => 
    [CONTEXT_DOCUMENT_ROOT] => /var/www/html
    [SERVER_ADMIN] => webmaster@localhost
    [SCRIPT_FILENAME] => /var/www/html/elgg/index.php
    [REMOTE_PORT] => 52967
    [REDIRECT_URL] => /elgg/video/view/77/picture-world
    [REDIRECT_QUERY_STRING] => __elgg_uri=video/view/77/picture-world
    [GATEWAY_INTERFACE] => CGI/1.1
    [SERVER_PROTOCOL] => HTTP/1.1
    [REQUEST_METHOD] => GET
    [QUERY_STRING] => __elgg_uri=video/view/77/picture-world
    [REQUEST_URI] => /elgg/video/view/77/picture-world
    [SCRIPT_NAME] => /elgg/index.php
    [PHP_SELF] => /elgg/index.php
    [REQUEST_TIME_FLOAT] => 1552339975.4
    [REQUEST_TIME] => 1552339975
    )

    )

    [files] => Symfony\Component\HttpFoundation\FileBag Object
    (
    [parameters:protected] => Array
    (
    )

    )

    [cookies] => Symfony\Component\HttpFoundation\ParameterBag Object
    (
    [parameters:protected] => Array
    (
    [Elgg] => rr3be8pnrkt3ip1baqgor27jd0
    )

    )

    [headers] => Symfony\Component\HttpFoundation\HeaderBag Object
    (
    [headers:protected] => Array
    (
    [host] => Array
    (
    [0] => 45.77.91.102
    )

    [connection] => Array
    (
    [0] => keep-alive
    )

    [cache-control] => Array
    (
    [0] => max-age=0
    )

    [upgrade-insecure-requests] => Array
    (
    [0] => 1
    )

    [user-agent] => Array
    (
    [0] => Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36
    )

    [dnt] => Array
    (
    [0] => 1
    )

    [accept] => Array
    (
    [0] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
    )

    [referer] => Array
    (
    [0] => http://45.77.91.102/elgg/video/owner/root
    )

    [accept-encoding] => Array
    (
    [0] => gzip, deflate
    )

    [accept-language] => Array
    (
    [0] => en-US,en;q=0.9
    )

    [cookie] => Array
    (
    [0] => Elgg=rr3be8pnrkt3ip1baqgor27jd0
    )

    )

    [cacheControl:protected] => Array
    (
    [max-age] => 0
    )

    )

    [content:protected] => 
    [languages:protected] => 
    [charsets:protected] => 
    [encodings:protected] => 
    [acceptableContentTypes:protected] => 
    [pathInfo:protected] => 
    [requestUri:protected] => /elgg/video/view/77/picture-world
    [baseUrl:protected] => 
    [basePath:protected] => 
    [method:protected] => 
    [format:protected] => 
    [session:protected] => 
    [locale:protected] => 
    [defaultLocale:protected] => en
    )

    )

    )

    [11] => Array
    (
    [file] => /var/www/html/elgg/vendor/elgg/elgg/engine/classes/Elgg/Application.php
    [line] => 384
    [function] => run
    [class] => Elgg\Application
    [type] => ->
    [args] => Array
    (
    )

    )

    [12] => Array
    (
    [file] => /var/www/html/elgg/index.php
    [line] => 8
    [function] => index
    [class] => Elgg\Application
    [type] => ::
    [args] => Array
    (
    )

    )

    )

    [previous:Error:private] => 
    )

  • @Dave Brennan, The error is causes by function getIconURL() which is returning Zero or No result. I had fixed this issue but Elgg community plugin upload page was only uploading an empty file. I finally uploaded it here http://www.twizanex.com/plugins/30202/releases/2.1 for those who might want to take care of the error message. Try it out and also follow the setup process in the downloaded folder. Let me know how it goes.

    My schedule is tight lately. However, I will updated rest to work with the latest version like 3.X versions.

Tom

Call me the Guy who CLEANS ELGG FROM OUTSIDE ( ͡° ͜ʖ ͡° ) I am Elgg enthusiast, Entrepreneur, Blogger, and Thinker. Just A Developer and loves the Web

Stats

  • Category: Media
  • License: GNU General Public License (GPL) version 2
  • Updated: 2018-5-12
  • Downloads: 2724
  • Recommendations: 3

Other Projects

View Tom's plugins