Title: [Plugin: Cool Video Gallery] Some issues
Last modified: August 19, 2016

---

# [Plugin: Cool Video Gallery] Some issues

 *  Resolved [teretax](https://wordpress.org/support/users/teretax/)
 * (@teretax)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-cool-video-gallery-some-issues/)
 * 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/](http://wordpress.org/extend/plugins/cool-video-gallery/)

Viewing 15 replies - 1 through 15 (of 37 total)

1 [2](https://wordpress.org/support/topic/plugin-cool-video-gallery-some-issues/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/plugin-cool-video-gallery-some-issues/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-cool-video-gallery-some-issues/page/2/?output_format=md)

 *  Plugin Author [Praveen Rajan](https://wordpress.org/support/users/praveen-rajan/)
 * (@praveen-rajan)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-cool-video-gallery-some-issues/#post-1877510)
 * Hi,
 * Could please mention your OS platform? Please make sure file write permission
   is provided to file upload path in server. If still you are facing issues please
   do contact me.
 *  Thread Starter [teretax](https://wordpress.org/support/users/teretax/)
 * (@teretax)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-cool-video-gallery-some-issues/#post-1877519)
 * I am running Debian Lenny 32 bit.
 * File write persmission is set to 777, but still no change, some videos don’t 
   have a thumbnail nor can i change them.
 *  [zeroart](https://wordpress.org/support/users/zeroart/)
 * (@zeroart)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-cool-video-gallery-some-issues/#post-1877542)
 * –wordpress 3.0.4–Theme MistyLook–
    Hi Praveen, your plugin(cvg)is really great!
   I have two questions:
 * 1. After install cvg, I set permissions to 777- then I add a gallery and upload
   a mp4 – then I go to *details and want to change the default img.png to my new
   img.jpg (72dpi-smal size), but it doesn´t change !
 * 2. I want to set the gallery in my wp-site, but I dont know how its works… what
   kind of code I´hv to use to embed a gallery to my site ?
    thanks for help & kind
   regards, alex
 *  Plugin Author [Praveen Rajan](https://wordpress.org/support/users/praveen-rajan/)
 * (@praveen-rajan)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-cool-video-gallery-some-issues/#post-1877545)
 * [@teretax](https://wordpress.org/support/users/teretax/)
 * Are you sure you set permission 777 for `\wp-content\plugins\cool-video-gallery\
   lib\` and `\wp-content\plugins\cool-video-gallery\lib\cache` folders also? What
   does your Video Gallery Overview page mentions about FFMPEG? Does it says ‘FFMPEG
   Installed’? It is working fine in my development environment. Please try clearing
   your browser cache too.
 *  Plugin Author [Praveen Rajan](https://wordpress.org/support/users/praveen-rajan/)
 * (@praveen-rajan)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-cool-video-gallery-some-issues/#post-1877546)
 * [@zeroart](https://wordpress.org/support/users/zeroart/)
 * 1. If you see this message after editing preview message `Video preview image
   successfully added` then please try clearing your browser cache.
 * 2. You could call functions `cvgShowCaseWidget(gid)` for showcase effect and `
   cvgSlideShowWidget(gid)` for slideshow in your custom template where gid is your
   gallery id.
 * For more details please see the help in plugin administration page at top.
 * Shortcode is not implemented in this version. Will come up in next release very
   shortly.
 * Thanks
 *  [zeroart](https://wordpress.org/support/users/zeroart/)
 * (@zeroart)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-cool-video-gallery-some-issues/#post-1877549)
 * –wordpress 3.0.4–Theme MistyLook– lib+cache are 777–FFMPEG is installed– [http://su-voessing.de/video](http://su-voessing.de/video)–
   firefox–
 * @ Praveen
    I dont get the message: “_Video preview image succesfully added_” …
   also clear the browser-cache.
 * I cant find my preview-img in the wp-files on my strato-server(search over filezilla)
   only the default-preview-img.png is still there!
 * Questions:
    1. after upload, in witch folder have to be my new preview-img ? 
   2. its possible to edit the new preview-img direct in my video-site ? 3. what
   do you think to set the permissions for admin to 775 or 777 – maybe it works 
   with the upload ( actually is 755)?
 * is this code correct ?
    gallery-details.php
 *     ```
       //Section to upload preview imaage for video
       if(isset($_POST['TB_previewimage_single']) && !empty($_POST['TB_previewimage_single']) && trim($_POST['TB_UploadPreviewImage']) == 'Upload Image' && is_array($_FILES['preview_image'])){
       	if(empty($_FILES['preview_image']['tmp_name'][0]))
       		CvgCore::show_video_error(__('No preview images uploaded'));
       	else
       		CvgCore::upload_preview();
       }
   
       $gid = $_GET['gid'];
       ```
   
 * Thanks
 *  Thread Starter [teretax](https://wordpress.org/support/users/teretax/)
 * (@teretax)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-cool-video-gallery-some-issues/#post-1877551)
 * Both folder are chmodded to 777, plugin tells me, ffmpeg is installed.
 * It works fine for some videos though, but for a few it doesnt work.
 *  [zeroart](https://wordpress.org/support/users/zeroart/)
 * (@zeroart)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-cool-video-gallery-some-issues/#post-1877552)
 * @ teretax
    you wrote, some videos works with cvg ! What did you mean: works= 
   upload+play your video in the cvg-gallery and upload succesfull a personal thumbnail
   for this video or works= shown in your post with the default-thumbnail…?
 * and witch kind of videos works on your website
    flv or/and mp4 did you set the
   videos from your server or from youtube or somwere else ?
 * thanks, alex
 *  Thread Starter [teretax](https://wordpress.org/support/users/teretax/)
 * (@teretax)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-cool-video-gallery-some-issues/#post-1877553)
 * I meant, I could upload them and play them in my post with the automatically 
   generated thumbnail.
 * I am not able to change any of those thumbnails by uploading a new one. Even 
   if there was no thumbnail generated, which happens sometimes.
 * Both kinds , mp4 and flv, work fine with cvg. I just cant change the thumbnail
   by uploading a new one.
 *  Plugin Author [Praveen Rajan](https://wordpress.org/support/users/praveen-rajan/)
 * (@praveen-rajan)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-cool-video-gallery-some-issues/#post-1877554)
 * [@zeroart](https://wordpress.org/support/users/zeroart/)
 * 1. Preview image will be uploaded to folder with gallery name you created inside`/
   wp-content/uploads/video-gallery/` Eg. If gallery name is `CVG` and if the video
   name is `sample.mp4` then the preview image will be uploaded to `/wp-content/
   uploads/video-gallery/CVG/thumbs/thumbs_sample.jpeg` (In case of multisite, it
   will be inside `/wp-content/blogs.dir`). Please try setting permission 777 for`
   uploads` folder recursively.
 * 2. Yes you can edit preview image directly in server. Copy the image to location
   mentioned above similar to example mentioned(following file naming accordingly).
 * Could you specify what message you get after you upload an image through the 
   popup window?
 *  Plugin Author [Praveen Rajan](https://wordpress.org/support/users/praveen-rajan/)
 * (@praveen-rajan)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-cool-video-gallery-some-issues/#post-1877555)
 * [@teretax](https://wordpress.org/support/users/teretax/)
 * Please specify the message you receive after you upload an image through the 
   popup window? I could then get a better idea of your scenario.
 *  [zeroart](https://wordpress.org/support/users/zeroart/)
 * (@zeroart)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-cool-video-gallery-some-issues/#post-1877556)
 * [@praveen](https://wordpress.org/support/users/praveen/)
    **permissions:** /wp-
   content/uploads = the set-permission are 755 – I chmodded to 777 but is doesnt
   work… if I check the permissions after the set is still 755 (the subfolders are
   777)!! video-gallery and all subfolders(also thumbs)are 777
 * **upload-process :**
    the popup-window open, I search my file(harddrive)-open
   the file, the popup registered my file, then I use the button to upload, the 
   popup dissolves, but I get no message like “successful upload” !! I reload the
   Gallery-Details but the default img doesnt change.
 * best alex
 *  Plugin Author [Praveen Rajan](https://wordpress.org/support/users/praveen-rajan/)
 * (@praveen-rajan)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-cool-video-gallery-some-issues/#post-1877557)
 * [@zeroart](https://wordpress.org/support/users/zeroart/)
 * Could you try replacing the functions `upload_preview` and `get_max_size` in `
   plugins/cool-video-gallery/lib/core.php` with the following and try once again.
 * `upload_preview`
    —————
 * [Large code excerpt removed by moderator per [forum rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use [the pastebin](http://wordpress.pastebin.com/) for all large code 
   excerpts. It works better anyway.]
 * `get_max_size`
    —————
 *     ```
       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;
           }
       ```
   
 * Thanks,
    Praveen
 *  Plugin Author [Praveen Rajan](https://wordpress.org/support/users/praveen-rajan/)
 * (@praveen-rajan)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-cool-video-gallery-some-issues/#post-1877558)
 * [@zeroart](https://wordpress.org/support/users/zeroart/) & [@teretax](https://wordpress.org/support/users/teretax/)
 * Kindly note that the file upload path is at location `/wp-content/video-gallery/`
   and not `/wp-content/uploads/video-gallery/`.
 * Thanks
 *  Thread Starter [teretax](https://wordpress.org/support/users/teretax/)
 * (@teretax)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-cool-video-gallery-some-issues/#post-1877559)
 * I don’t get any kind of message, the picture upload overley just disappears after
   I click upload picture.

Viewing 15 replies - 1 through 15 (of 37 total)

1 [2](https://wordpress.org/support/topic/plugin-cool-video-gallery-some-issues/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/plugin-cool-video-gallery-some-issues/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-cool-video-gallery-some-issues/page/2/?output_format=md)

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

 * ![](https://s.w.org/plugins/geopattern-icon/cool-video-gallery_658d3b.svg)
 * [Cool Video Gallery](https://wordpress.org/plugins/cool-video-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cool-video-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cool-video-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/cool-video-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cool-video-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cool-video-gallery/reviews/)

 * 37 replies
 * 7 participants
 * Last reply from: [Praveen Rajan](https://wordpress.org/support/users/praveen-rajan/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-cool-video-gallery-some-issues/page/3/#post-1877619)
 * Status: resolved