• Resolved teretax

    (@teretax)


    Hi,

    Right now I am testing the plugin to the core.

    At first, for some videos I uploaded the preview image is created but its size is 0 bytes. Or no Image is created and I get the standard preview image.

    Another issue is I can’t change the preview image by uploading another one, It just does not change nor upload to the server.

    ffmpeg and php5-ffmpeg support is installed and enabled.

    http://wordpress.org/extend/plugins/cool-video-gallery/

Viewing 15 replies - 16 through 30 (of 37 total)
  • Plugin Author Praveen Rajan

    (@praveen-rajan)

    @teretax

    Please replace get_max_size and upload_preview in plugins/cool-video-gallery/lib/core.php with the code below and let me know if it works.

    function get_max_size() {
    
        	$upload_size_unit =  wp_max_upload_size();
     		$sizes = array( 'KB' );
    		for ( $u = -1; $upload_size_unit > 1024 && $u < count( $sizes ) - 1; $u++ )
    			$upload_size_unit /= 1024;
    		if ( $u < 0 ) {
    			$upload_size_unit = 0;
    			$u = 0;
    		} else {
    			$upload_size_unit = (int) $upload_size_unit;
    		}
    		return $upload_size_unit;
        }

    http://wordpress.pastebin.com/vUbWLKrs

    Thanks

    Thread Starter teretax

    (@teretax)

    I replaced the mentioned functions, still no change.

    Can’t change the previe image nor add a preview image if no image exists.

    Plugin Author Praveen Rajan

    (@praveen-rajan)

    @teretax & @zeroart

    Please find the new release of plugin and see if the issue is fixed. Let me know about it.

    Thanks

    Thread Starter teretax

    (@teretax)

    i upgraded to the new release, but still no changes.

    Same errors as before, cant upload picture and some videos still have no thumbnail nor can i change/add thumbanils.

    Plugin Author Praveen Rajan

    (@praveen-rajan)

    @teretax

    I’ve tested the same in my development environment and it works perfectly.

    Please try these steps too.
    1. Upload a video wp-content/uploads/video-gallery/<your gallery name>/sample.mp4 using FTP.
    2. In gallery details page use the option Scan gallery folder. The new video will be added to the gallery list then.
    3. Uploaded an image file through FTP `wp-content/uploads/video-gallery/<your gallery name>/thumbs/thumbs_sample.jpeg’.

    Now check if the preview image is showing up or is it showing just the link Click to Watch Video ?

    @ Praveen
    I upgraded to the new release too
    –replace get_max_size with the new code
    –can´t replace the “upload_function” code, because you don´t wrote the new ones in this posts
    –my current function_upload code reads:

    <br />
    function upload_preview() {</p>
    <p>		// Videos must be an array<br />
    		$imageslist = array();</p>
    <p>		// get selected gallery<br />
    		$videoID = (int) $_POST['TB_previewimage_single'];</p>
    <p>		if ($videoID == 0) {<br />
    			CvgCore::show_video_error(__('Error uploading preview image!'));<br />
    			return;<br />
    		}<br />

    try to set a new gallery with a previe img – but still the same default img.
    I resize my preview-img smaler= with=100px and I upload via FTP the preview-file in the thumbs, but nothing changed!

    whats up with the “thumbgen.php” maybe there have to be a new code…??!!

    when I try to upload the preview-img, I saw in the popup that you wrote “…only jpeg images allowed” – if I save an img, my file read: “example.jpg” not “example.jpeg” !

    maybe tis is wrong… what do you think ?
    best alex

    @ Praveen
    now it works with the instructions from “Lemaire”

    maybe you modifiy the code for upload-preview img – and datas with extensions like “jpg” are allowed too, because in the db is jpeg and jpg not the same !
    What do you think ?
    best alex

    I have a completely different issue, but thought it might be OK in the “some issues” thread. When I upload a video using the CVG interface and put the gallery on my main WP page, the audio plays but I see nothing but a black screen. I have tried different player skins to no effect. Any ideas?

    Thanks,
    Beth (WordPress novice, so forgive me if it’s something obvious)

    Plugin Author Praveen Rajan

    (@praveen-rajan)

    @zeroart

    I’m looking forward into those issues. Will let you know as soon as they are fixed.

    Thanks
    Praveen

    Plugin Author Praveen Rajan

    (@praveen-rajan)

    @bethmeyer – novice are always welcome coz i used to be novice once 😉

    That seems to be a new issue. Could you give me your website link with the sample video so that i can take a look at the issue you mentioned here.

    Thanks for looking into this, Praveen!

    The blog in question is actually my son’s for which I am doing the tech support –
    http://www.ericraymeyer.net

    I left the gallery up on a sidebar for troubleshooting purposes.

    Thanks,
    Beth

    Plugin Author Praveen Rajan

    (@praveen-rajan)

    @beth

    I’m disappointed to say that the video doesn’t play for me either. I’ve checked it my test environment. The player I’m using for this plugin is JW Player. The video doesn’t even play in the player provided by JW Player. Could you try the same video by converting it into flv and let me know if works or not.

    Thanks
    Praveen

    Plugin Author Praveen Rajan

    (@praveen-rajan)

    Hi Beth,

    I’ve done a little research in your issue.

    http://www.longtailvideo.com/support/forums/addons/working-with-modules/17784/no-video-only-audio-with-mp4-video-file

    Please try converting the mp4 file into flv and then try it out.

    Thanks
    Praveen

    Hi all!

    Love this plugin but i have a small problem.

    Warning: exec() has been disabled for security reasons in /home/xxx/domains/conlin.se/public_html/wp-content/plugins/cool-video-gallery/lib/core.php on line 766

    How do i fix this?

    Regards Conny

    Plugin Author Praveen Rajan

    (@praveen-rajan)

    Hi Conny,

    Thanks for the remark. exec() is a PHP-specific function that your web host might have disabled with PHP safe mode.
    http://www.php.net/manual/en/features.safe-mode.functions.php

    Please contact your web host admin.
    To disable PHP warnings you could add the snippet
    ini_set('display_errors', 0); to your application code.

    Help me out with rating if you like my plugin.

    Thanks,
    Praveen

Viewing 15 replies - 16 through 30 (of 37 total)

The topic ‘[Plugin: Cool Video Gallery] Some issues’ is closed to new replies.