Posts Tagged drupal

Getting views_slideshow_galleria to work with Drupal

Wow, this was a 4 hour joyride today.  I wanted to setup galleria today, which is this awesome slideshow/gallery script that has a drupal module.  I got views slideshow working in a matter of minutes but as soon as I installed galleria and changed my slideshow type to that it dissapeared off the main page.. The thumbs were coming up fine in the preview area but on the main page where it was to be displayed nothing was showing up, no errors no nothing?  4 hours later I have the solution and the frustrating thing is that I tried it, kind of 2 hours ago but didn’t quite do it right.

Anyways, the main issue with this is with jquery.  You see drupal 6 ships with jquery 1.2.6 and you need 1.3 or higher.  ”That’s what the jquery update module is for” you are no doubt saying to yourself, well that’s what I thought and it turns out we were both wrong on this one.. Hopefully you aren’t running nivo or anythign else that requires jquery update because you are going to have to disable and delete that module.  Secondly you need to go grab jquery 1.3.2 from here: http://jqueryjs.googlecode.com/files/jquery-1.3.2.js and you need to rename it to jquery.js and stick it in drupal’s misc directory.  To be clear: You need to unisntall the jquery update module or else this will not work.. Don’t make the mistake I did and just copy 1.3.2 over and expect something to happen because it won’t

So this alone gave me more results than anything else, unfortunately those results were error messages about missing height and width attributes in the classic themes .css file.  At first it was with the .galleria-stage section missing a height so I had to change it to this:

.galleria-stage {
    position: absolute;
    height: 300px;
    top: 10px;
    bottom: 60px;
    left: 10px;
    right: 10px;
    overflow:hidden;
}

After that was put in then it started bitching about .galleria missing height and width variables so I changed them to this:
.galleria-container {
    position: relative;
    overflow: hidden;
    background: #000;
    width: 400px;
    height: 300px;
}

Much to my complete amazement, after this was done the bloody thing started to work.. Couldn't believe my eyes so hopefully this helps some people out

Tags: , , , , , ,

Drupal Fun: Auto generating playlist thumbnails from videos

Another exciting hurdle crossed in the Drupal world!  I’ve recently installed the Mediafront module to drupal so that I can have dynamic video playlists for specific users based on content being uploaded in their name.  It took a tiny bit of fiddling to get it all setup in views, nothing worth mentioning here that’s not mentioned all of drupal.org, but the real fun came from the need to have the thumbnails that appear in the playlist section of the player be automatically generated.   You see right now the only way to get your video playlist to have thumbs in it is to upload them manually and attach them to the video node they are associated with.  Pffffftttt I say to that!  This manual stuff is for the birds and doing things by hand sure as hell isn’t what I signed up for so we need to make a better way.

Introducing Media Mover!

If you don’t know what Media Mover is then you’re missing out.  This module is probably one of the most badass ones around depending on what you are using drupal for.  In this current situation it’s going to be our saving grace!  So I’m assuming that by this point you have your video content type setup, you are uploading videos just fine and they are showing up equally well in your Mediafront playlist as per your custom view that you’ve created to display them.

What you need to do now is to open up your video content type and manage the fields.  You are going to need to add a new file field with an image widget selected from the drop down list.  Call it thumbnail or something along those lines and add it into the mix.

Now you are going to need to download ffmpeg_wrapper and media mover and install all of the relevant modules.  Oh  I am also assuming that you have image cache enabled and all setup(who doesnt?) After this you need to go into media mover and create a new configuration which is going to automatically extra a thumbnail from our video and then put that in the thumbnail CCK field you would have created as per the instructions at the end of the previous paragraph, aka: Media Mover CCK module: Save data in a CCK field.  Choosing the thumbnail cck field to save it as.  I made the mistake here the first time of attaching my thumb to the node but that doesn’t work, it needs to go into that cck field that you created.

You can completely bypass the ‘complete’ operation of media mover as it’s done everything you need it to do and that’s it!  You should be able to run it and have it pull up any stray files that already haven’t been taken care of… You kmight want to go into display fields and hide the thumbnail field so it doesn’t show up when people go to the node.

Tags: , , , , , ,

Error 101 upload (net::ERR_CONNECTION_RESET) when Uploading large files on Drupal

Wow, now this was one of those problems that really makes you want to put your head through a wall.

Soo, I was uploading a large file to my CMS through drupal and at about 35%(of a 40MB file) I would get booted to an error page with the following message.  I looked high and low and while I found a solution that told me to go into mysql and set the wait_timeout like this: “set wait_timeout = 28800″ (for some reason my host had it set to 45) it was still occurring.

The other thing was to put this: mysqli.reconnect = On in my php.ini file which didn’t work but then I tried this isntead: mysql.reconnect = On and I’m not 100% sure if that was what did it but the last thing I did was I bypassed my router and plugged the cable modem into the laptop directly and guess what?  Bloody file went through..

2 hours later I get my life back

Funny enough now I’v

Tags: , , , , ,

Drupal Nightmare #1: Imagecache not generating thumbs

Holy good god almight this was a nightmare, the biggest problem i’ve had with drupal to date, a 13 hour marathon just to figure this beast out.. ugh..

So if you’re having troubles with Imagecache not properly generating thumbnails for you, it keeps on referring to directories like files/imagecache/presetName/ that dont’ exist then you might be going through what I went through.. Firstly you’re going to want to read through all the million support issue tickets on this over at drupal.org because this seems to be the most common drupal problem yet, going back 3 years or so and there are 1 million reasons for it to happen apparently and 2 million possible solutions.  Well this is one solution that I didn’t see anywhere and is another fine example of the rarity of the problems I craft up over here.

Here’s my final post on one of the issue posts:

Alright!!! Problem solved over here!!

It turned out that my nginx configuration was taking images and movies and having them bypass apache and go through nginx. This caused them to ignore all .htaccess rules including the ones set out in drupals root dir which caused imagecache to royally mess up.

I’ve never seen anyone mention nginx in relation to this issue so hopefully this answers some questions for those of you who are stumped.

Incase you are doign this yourself, go into your nginx.conf file, find your domain in question and see if there’s a line like this:

location ~* ^.+.(jpg|gif|ico|css|js|png|flv|wmv|mpg)$ {

If there is you need to take out anything you are going to be making thumbnails with imagecache for, png, jpg and gif should probably do it but take out the whole section if you really want

Restart nginx and you’re off to the races.. After 13 hours of deadends I can’t believe this nightmare is over

Tags: , , ,

Problems with Drupal Video Module

Well we just started uploading videos to a new Drupal installation and I was greeted by lovely 200 error messages that went something like this:

200 Stream not found, NetStream.Play.StreamNotFound, clip:

I started doing a little investigating and noticed that when I went to my video admin transcoder setting page I was greeted by a blank white page, which means of course that there are php errors being logged somewhere :)   Checking into that domain’s error logs popped up a bunch of this:

PHP Fatal error:  Declaration of video_ffmpeg_wrapper::convert_video() must be compatible with that of transcoder_interface::convert_video()

 

I first realized that ffmpeg wasn’t installed, neither was flvtools2 so I quickly went and installed those, well quickly in relation to how long it takes to install ffmpeg, but the problem still persisted..  I ended up fixing this by unloading the Video module, uninstalling it, deleting the Video directory in /modules/ , grabbing the latest version and reinstalling it.

Works now, happy dance time!

Tags: , , , , ,

Which WYSIWYG editor is right for your drupal site?

Well I just spent the past 2 hours testing every single editor in Drupal as it’s been about a year since I last went through them all and for whatever reason I can’t remember I wasn’t happy with Ckeditor / Fckeditor.

Well let you save you some time and tell you to just use CKeditor.  Actually Ck / Fck have merged so there is only Ckeditor now and it looks like it turned out for the better.  I posted about some bugs in Fckeditor a while back and so far I am seeing none in the new merged version.  This editor does everything you’re going to need and more, it looks great and best of all it’s the only one that actually Works 100%.  The rest either had limited functionality, or required me to edit .js files in order to enable more buttons or had varying degree’s of bugs in them that caused them to not work properly.

So, head over to http://ckeditor.com/download and be damn happy that the one editor that does work the best with Drupal happens to be one of the all around best editors out there.

Tags: , , , , ,

Drupal and Me: Chapter 8 – Large File uploads causing Server connection to Reset

Well this was a jolly good problem that took 4 hours to fix.

I’ve implemented the Audio Module this week to allow our Sound team to upload soundtrack, foley and effects work just the same as the 2D and 3D guys upload their work.  Unfortunately when I went to upload a 40MB .ogg file the connection to the server was reset pretty much exactly after 60 seconds.  So, easy enough I figured I’d just have to go into my php.ini file and change the max upload sizes, max connection times and all of that fun stuff.  Well I went through and changed every conceivable directive in there that had anything to do with connection times and upload sizes.  Nada!  I created .htaccess files in the /drupal dir with php_values to the same effect.. Nada!  I went to one of my wordpress blogs and tried to upload the same file and guess what?  SAme thing happened, re-assuring me that this wasn’t a drupal only problem.  So I tried increasing the Timeout value in apache, nada.  Got onto IRC on #php and no one had a clue.  Hours and hours of googling led to ZERO solutions.  It wasn’t until I decided to try this in Opera instead of Firefox that I was able to get a glimmer of understanding as to what was going on.  Just to once again re-iterate how much better of a browser Opera is than firefox, how exponentially better in every conceivable way except for compatability, Opera is compared to firefox, it took me 30 seconds to figure out and solve this problem once I had opera loading the pages.  Instead of just sending me a nebulous Server Connection Reset error after 60 seconds like FF did, Opera immediately spat out a 413 Error ‘Entity too large’.  Why Firefox didn’t touch on client_max_body_size 300M;

this at all, ever is beyond me but it was a simple matter of going into  my nginx.conf file and “setting client_max_body_size” to 300M and the problem was solved.

Sooo, if you are experiencing a Connection reset error while trying to upload files and you just happen to be running Nginx go and check out your nginx.conf file and make sure client_max_body_size is set nice and high.

Tags: , , , , , , , , , ,

Drupal, me and myself: Chapter 8 – WYSIWYG?

Or is it?  because for a long time trying to install a few editors for posts and content I saw nothing!  My first foray was with FCKeditor, which was rough around the edges and ended up having a major major bug in it.  Ugh, so annoying.  When you went to edit a post it would briefly bring up the contents on the original post and then replaced it with the html code in its entirety of the front page.  Not sure why and it really only surfaced today, so perhaps something else I did caused this to happen but either way out it went.

I’ve also been forced to remove /misc/jquery.form.js entirely which limited some of the editor modules I could use.  However I found out the secret with getting a good working WYSIWYG editor in drupal and that is to NOT use the editor modules at all.  Instead go out and get the WYSIWYG API and follow the instructions carefully.  It makes a huge huge difference because I tried CKeditor next and guess what?  It was a complete mess, wouldn’t load anything, just crapped out.  I would say this is because of my muching around with the jquery stuff, however when I use the WYSIWYG API and then go grab the CKeditor files from: http://ckeditor.com/ , load it into my /sites/all/libraries/ directory and have the API load it up it works like a charm.  Not only does it work like a charm but this editor is saawweeett.. Definitely recommend CKeditor for you and all of your friends.

So I went in and deleted all of the other editor modules and now I have a perfectly functional editor for all my stuff and my drupal install is shaping up nicely.   I know, I know I said I would get to the SVN but the inability to edit posts properly grabbed my attention here.. So now I’ll pitter patter and get at er!

One last thing, I was having trouble with putting images into posts and then upon previewing them not having them show up.  Turns out that if you don’t have full html set as your input type then this doesn’t work, so I just had to go in and set full html as my default input format.

Tags: , , , , , , , ,

Drupal myself and I – Chapter 7: Obvious but Overlooked

The first Obvious yet overlooked thing I just got around to setting up with a module called ‘Comment Notify’

Comment notify is a great little module that I didn’t even think about over the past week and a half of drupal setup but it is such a common sense one that I wonder how it was overlooked.  Especially when considering the way the forum’s are setup.  This module was actually quick and painless to setup.   You just head over to http://drupal.org/project/comment_notify download it, install it and then the configuration is pretty straight forward if you follow the directions.  But without your users will not be able to subscribe to forum threads and with it everyone can be auto-subscribed to their own comments which is great to keep the team communication going full bore.  Something that is so important when you are organizing people around the world

The second Obvious but Overlooked aspect of my setup was the fact that as an admin my view is going to be different than my teams view.  For some things this is a no brainer like admin menu’s and configuration screens, however when I am outside of the administration area of Drupal I just assumed that everyone would be seeing what I am seeing.  Not so much.  After writing a big long instructional article on cataloging submissions and organising assets I had one of my team members inform me that half of the links and buttons I referenced in the article didn’t exist for him.  So I created a quick dummy account, granted it the same perms as the other users and lo’ and behold I had 1/2 of the menu’s than with my admin account.  I just had to go through the roles and permissions setup for the users and grant them all access to the modules that they needed to use but definitely something to check after you spend a week going nuts and setting up a flurry of features.  Double chck that your users have access to them :)

Tags: , , , , , , , , ,

Myself Drupal and Me – Chapter 6.5 and 7: Jquery UI &Recent images

So the 1/2 a chapter is accounted for because of a little upgrade that needed to happen on jquery UI.   You should do this regardless of if you’ve encountered any bugs but I started to receive errors telling me that ui.core.js is missing.  In which case you’ll need to install the latest version of jquery.ui and following these instructions: http://drupal.org/node/376325

Now the next thing on the agenda was that I wanted my team to be able to log in and have a portion of the sidebar dedicated to showing the last 10 images uploaded by anyone else on the team.  I fooled around with a module called featured content, but that went no where.  Next was a module called Views Showcase, which was supposed to show this cool ass showcase highlighting the latest items on a node.  That also didn’t work as the instructions were 3 years old and the views module has changed too much since then.

Now, I’m not sure if I installed a module that made this appear, but suddenly when I went into the blocks config I noticed a ‘latest images’ option there which I promptly configured and dragged into the sidebar.  Viola!  Just like that I now have the latest images on my front page.  Huzza!

PS:  There are two things that you want to make sure of here.  First is that you didn’t install the jquery update module which gets drupal to grab and use the latest version of jqueury.  Even if yo uremove /misc/jquery.js completely this module will override it and you’ll still be stuck with this html error.

The second thing is that you can also look to the /misc/jquery.form.js for a solution.  If it is still going on head over to : http://jquery.malsup.com/form/#download and download the latest version to your server.  Might help

Tags: , , , , ,

Page optimized by WP Minify WordPress Plugin