• Resolved Lance Cleveland

    (@charlestonsw)


    [03-May-2013 14:38:36] WordPress database error Duplicate column name ‘sortorder’ for query ALTER TABLE wp_cvg_videos ADD sortorder BIGINT( 20 ) NOT NULL DEFAULT ‘0’ AFTER description made by activate_plugin, do_action(‘activate_cool-video-gallery/cool-video-gallery.php’), call_user_func_array, CoolVideoGallery->cvg_install, CoolVideoGallery->_cvg_activate
    [03-May-2013 14:39:47] PHP Warning: simplexml_load_file(http://gdata.youtube.com/feeds/api/videos/http://youtu.be/nhwOv5F6fMs): failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request
    in /var/www/html/wp-content/plugins/cool-video-gallery/lib/youtube.php on line 109
    [03-May-2013 14:39:47] PHP Warning: simplexml_load_file(): I/O warning : failed to load external entity “http://gdata.youtube.com/feeds/api/videos/http://youtu.be/nhwOv5F6fMs” in /var/www/html/wp-content/plugins/cool-video-gallery/lib/youtube.php on line 109
    [03-May-2013 14:39:47] PHP Fatal error: Call to a member function children() on a non-object in /var/www/html/wp-content/plugins/cool-video-gallery/lib/youtube.php on line 38

    http://ww.wp.xz.cn/extend/plugins/cool-video-gallery/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Lance Cleveland

    (@charlestonsw)

    This error goes away if you only enter the video ID (as instructed).

    A graceful exit would be better:

    1) Catch the message and don’t crash before letting PHP reach the fatal error state.

    2) Use regex and strip off the full URL before the video ID, auto-fixing the entry for the user.

    Either of those would be helpful. Let me know if you’d like assistance in coding that piece.

    Thus far this looks like a very useful plugin. About to give it a try on my live site now that tests on my staging site are done.

    Plugin Author Praveen Rajan

    (@praveen-rajan)

    Thanks for the suggestions. Will look into these.

    I got the same error

    Warning: simplexml_load_file(http://gdata.youtube.com/feeds/api/videos/b7rGEb3iBBE) [function.simplexml-load-file]: failed to open stream: HTTP request failed! HTTP/1.0 403 Access denied. in /home/zedacc/public_html/fscad/wp-content/plugins/cool-video-gallery/lib/youtube.php on line 109

    Following are my server settings:

    Operating System : Linux (64 Bit)
    Server : Apache
    MySQL Version : 5.5.23-55
    PHP Version : 5.2.17
    PHP Max Upload Size : 64MB
    FFMPEG : Not Installed
    [Note: Preview images for uploaded videos will not be created automatically using FFMPEG. Manually upload preview images for videos.]
    PHP extension SimpleXML : Enabled
    PHP setting allow_url_fopen : Enabled

    So its not server problem, its works find in local machine but it gives error on my live server

    I am also entring the video ID not the URL e.g. i have entered (b7rGEb3iBBE) without bracket

    It seems youtube is not authorizing the CVG request, can you guide me

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error Adding YouTube Videos’ is closed to new replies.