All you drupal people out there you probably got the security email stating for everyone to upgrade to a newer version of drupal 5.2 I believe.
This will be my first update. Is there anything tricky I should know about doing this? Any tips on what to look out for or common update problems one might come across? I want to try to make this a smooth update.
Thanks







UPGRADE.txt
Read the UPGRADE.txt file before you upgrade. Do everything it says. And, make a backup of both your files area and database. Those are 2 of the sets outlined. Do every step.... some are there just in case something goes terribly wrong.
Matt Farina
Geeks and God Co-Host
www.mattfarina.com
Have you upgraded yet?
Have you upgraded yet? Everything go ok?
So far I have downloaded my database and the entire site. Im just going to re-read everything slowly before I do anything else.
yes
Geeks and God has been upgraded to drupal 5.2 10 minutes before this comment.
What was released for drupal 5.2 was known to be good. It has been running in production for some time.
It should be ready to rock.
Matt Farina
Geeks and God Co-Host
www.mattfarina.com
i should add
I should add that when a release (like drupal 5.1 or 5.2) comes out it has already been tested for stability. When it's a development in testing copy it will be called a beta or RC (Release Candidate).
Drupal 5.2 is stable and just a standard update.
Matt Farina
Geeks and God Co-Host
www.mattfarina.com
yousa besa the man
Thats my Jar Jar Binks impersonation.......(sound of crickets being heard in the background)....I know that was lame. Al-righty then.
Thanks for the info. Ill try upgrading in the next day or so when Im not so sleep deprived and adding lame comments like the Jar Jar thing. :)
Panic and then relief!
Well I took the plunge and followed this advice to upgrade from 5.1 to 5.2. When I got to step 10 in the UPGRADE.txt I could not run the update.php so I went ahead and edited the file, which then worked. However, when I tried to do anything else after that, I could not get anywhere to return the site to "Online." Panic set in!
Googling around, I found somewhere to try going to http://sitename.com/?q=user which did nothing. Up to now I had been working in Firefox. Not knowing what to do, I tried opening this using IE and then I was able to login and set the site back online.
I found a post somewhere on the net that said when upgrading Drupal, you need to clear the cookies in your browser. I didn't have a chance to verify this, but I wanted to point this out to avoid needless anxiety to others.
Matt or Bob, could you comment on the right way to get past this bump?
Anyway, things seem to be going well so far with 5.2 on our site.
Oh, one more thing... When it says to disable contributed modules before updating, does that include basic things like "Views"? I took the cautious route and disabled any module not in the Core list just to be safe and it worked.
Stuff like this always happens to me
Glad you got it up. I always have problems like this. Looking forward to some comments on it from Matt or Rob.
users and modules
When you upgrade it's always easier to do it as the super user (uid 1). That user can run the upgrade.php file without editing and that user can manage any of the settings on the site.
When you upgrade drupal you don't typically need to clear your browser cookies. In fact, normally that would be a bad idea. The cookie stores the info on you for you to be logged in. And, during the entire process you want to be logged in (preferably with uid 1) so you can do things like run the upgrade.php script or bring the site out of maintenance mode when the upgrade is done.
Where UPGRADE.txt says to disable all contributed modules they literally mean all of them. This is there due to compatibility and is most important when jumping major versions, like from 5.x to 6.x. A module from drupal 5.x will not be compatible with 6.x. So, you need to disable them, upgrade them, and enable them. If you upgrade drupal with them installed there will be errors. It's a good idea upgrade the contributed modules after you have the core upgraded.
When you are upgrading minor versions, like 5.1 to 5.2, this isn't quite as important but still a good idea. The API does not change (typically) for minor upgrades. It's just bug fixes. So contributed modules should work on both versions meaning the disabling is not an issue.
But, read the release notes. There was a time that I can think of where something changed, for security reasons. And, be careful. Following the process should leave you as error free as possible. If you leave the contrib modules on there may be errors... and I know that freaks some out. This could be due to a bug in a contrib module. Or, if you are running a contrib module in development. Note, these errors are very rare but they can happen. In any case, the safest route is to disable them and re-enable them when you are done.
Matt Farina
Geeks and God Co-Host
www.mattfarina.com
I'm 99% sure I was logged in
I'm 99% sure I was logged in as user/1 (super-user) because that is the only account that would have the permission to put the system offline into maintenance mode. I assume that others use Firefox to do this without problem, no?
Could this have something to do with the step of deleting the entire drupal directory and sub-directories before un-taring the new version and restoring the sites and files directories?
Anyway, I'm happy because this morning the site is still running fine after the upgrade!
admin
Actually, anyone with the permission to "administer site configuration" should be able to put the site into maintenance mode.
If you are kicked out/logged out after running the upgrade.php step you should be able to immediately log back in. The site should be back and just needs to have settings changed and put online.
Matt Farina
Geeks and God Co-Host
www.mattfarina.com
Drupal 5.2 update.php and admin user
I just updated three sites to Drupal 5.2. I was logged in as user 1 before starting, yet all three gave me the "access denied" message when I tried to run update.php. The good news is that in each case I was able to go to /user and log in, then was able to run the updates without any trouble.
Micah
Updated to 5.2 now tinymce
Updated to 5.2 now tinymce insnt working. I have it enabled and everything but it doesnt show up. Any ideas?
a few ideas
A few ideas:
If you are using a version of the module from before Jun 18th update to the newest version.
Turn off the tinymce module and turn it back on.
Make sure javascript is turned on and working. Do the other javascript effects work?
Shift refresh to clear the browser cache.
Delete all rows in all of the cache tables. Leave the tables and don't mess with the columns.
Completely uninstall the tinymce module (remove all of the tables) and reinstall it.
Matt Farina
Geeks and God Co-Host
www.mattfarina.com
This part confuses me
On the drupal TinyMCE page, It states" ... Users must download and copy the TinyMCE folder into the module directory (or copy the TinyMCE files into the module's includes folder for the 5.2 users) as part of the installation process."
Were using 5.2 now, but there is no includes folder within the Tinmce module. Im just placing the tinymce file from moxiecode into the drupal tinymce folder and uploading that. Is that not the right way?
does it???
When you copied the tinymce folder from moxiecode into the tinymce module folder did it work? If not, I would try making an includes folder and putting the files in there. Please, let me know how it works out.
Matt Farina
Geeks and God Co-Host
www.mattfarina.com
Im assuming it did.
I had an error when I didnt have it there I received an error. I tested it out also by adding a folder called includes and put in there. When I did this and when to the TinyMCE configuration i received this error.
Could not find the TinyMCE engine installed at sites/all/modules/tinymce/includes/tinymce/tinymce/. Please download TinyMCE, uncompress it and copy the folder into sites/all/modules/tinymce/includes/tinymce
Im assuming this method doesnt work.
what did you put where?
I guess I am still not seeing what files you put where. You have told me the error you got. But, where are the files and what exactly did you put where? Was it exactly what you downloaded from moxicode? Was is the decompressed file in it's exact form or just part of it?
What browser are you in and is this site a sub directory. See http://drupal.org/node/141141 for what I mean.
In the logs at admin/logs/watchdog are there any errors that help?
Matt Farina
Geeks and God Co-Host
www.mattfarina.com
I downloaded tinymce,
I downloaded tinymce, unzipped it, downloaded the moxicode tinymce dragged that into the tinymce module and uploaded that as a whole in the sites modules directory. There is nothing in the logs that show any errors related other than I noticed we had a few missing links which I now corrected.
When creating a page it shows the body just a plain whit box, no editor at all on it. Looking at previous postings that had html in to them you can see all the html formating such as the and such.
I use Camino when ever im posting because the tinymce works with that. My friend who helps with the site wasnt able to get the tinymce to show up at all.No the site isnt in a sub directory. Its at www.bteministries.org
white box
This sounds like the javascript files aren't loading. So, are they being called from the page? The actual tinymce files?
Does firebug kick out any files for the javascript?
I created and account mfarina on your site. I can't test anything out right now but if i could create a piece of content where tinymce should display I can tell you a lot more.
Matt Farina
Geeks and God Co-Host
www.mattfarina.com
your admin
I gave you admin privileges so you can create a post if you want and see. I dont understand it much.
I appreciate it.
Not responding
I tried the steps you stated. I cleared all the cache items in the database, I removed completely the module and also ran the uninstall. Just doesnt show up.
Javascript question. Are you referring turning on javascript for my browser? Thats on. Or is there a option in drupal to enable or disable javascript? I tried to search drupal for this but the site is down at the moment.
This is how it is with me. Kinda pathetic in a way. The easiest of upgrades always have little problems with me. lol
in browser
I meant, did you have javascript turned on in your browser? Did you try it in more than one different browser?
Also, take a look at the output page. Is the javascript in the page? Is tinymce getting loaded and just not working?
To help with this try using firebug with firefox to see if there are any javascript errors stopping it from loading.
Matt Farina
Geeks and God Co-Host
www.mattfarina.com
Javascript is turned on the
Javascript is turned on the browser. I have tried it in IE7, Camino, Firefox and safari.
In firebug here is whats showing up in the javascript section when I select copy function.
function (data) {
if (window.execScript) {
window.execScript(data);
} else if (jQuery.browser.safari) {
window.setTimeout(data, 0);
} else {
eval.call(window, data);
}
}
included files?
Is it linking to any included file? To the javascript in the tinymce module directory.
Matt Farina
Geeks and God Co-Host
www.mattfarina.com
lol..you got me.
Im reading your post. No matter how long I look at it, I dont know what your talking about.lol. Your talking a different language to me right now. :)
Cant get it to work
I tried the steps you wrote about. I removed the module all together than ran the uninstall option as well. I went into the datab
More issues since upgrade
I also have some more problems. When a user goes to http://www.bteministries.org/e... page, they see nothing but the title. I as admin when logged in it shows up fine. But doesnt for everyone else. All the permissions seem fine and I cant see a reason why it wouldnt show up. At one time we had access control lite installed. Since removed it. Looking at the database I found some instances of acl in there. such as acl_node etc.. I deleted those. Still didnt help. There are also in the database list shows access and access log. I didnt delete those because Im unsure if thats something I need or if it could be possibly part of acl.
Whats my next step?
This one seems to work now
We uploaded a new version of the audio module. It didnt seem to do anything to correct the problem. Had lunch and came back and it works. I dont know what the deal was, unless Matt you did something.
Its baaaacck
The problem with content not showing up but to admin is back again. We have our pages done using taxonomy terms and creating the pages using views. This one for example.
It will not show all the studies. I being logged in as admin can see more. For instance the top study you may see on the page, If I were to open that to edit it, do no changes but click the save button, then that study will no longer be visible to anyone other than admin. I dont know why that is.
If I create a new view and in editing that view in the access column I leave all roles unchecked, which should mean anyone can access it. I save it and then look at the page. It shows the content I selected using taxonomy terms just fine when Im in admin, but again anonymous users all it shows on the page is the page title and a rss icon. Even though I have it set without any user restrictions.
Heres an example: This page shows some content I created that displays just fine as admin. When I log out I get nothing but the title. This is even though I have no access restrictions for any of the user roles enabled.
it's permissions
This sounds like it's a permissions issue. It may not be anything to do with views but the individual node permissions.
Do this....
Head over your database for your sites install. Browse the table "node_access". If there is more than one row there is a problem. The one row should have values of:
nid = 0
gid = 0
realm = all
grant_view = 1
grant_update = 0
grant_delete = 0
If this is not the case backup your database then delete all the rows in this table. Then, create one row with these values.
If you only have one row with these values let me know.
Matt Farina
Geeks and God Co-Host
www.mattfarina.com
I have 30 rows
Heres what mine looks like. I have 30 rows there are all different numbers in there. There should only be one? The nids are all different numbers. What do those numbers mean? For grant view you have number 1. Does 1 = yes?
you have access controls on
Thanks to the access you granted me I see that you don't have any access control modules running. But, the access controls from the module I disabled are still in place.
What you see are permissions on reading and writing for different nodes. If you follow my instructions above that will revert your node_access table back to the default and as if there were no permissions modules touching it.
If you don't have any access control modules installed you could also create a new note, set the input filter to php and paste this into the body:
<?phpnode_access_rebuild();
?>
Then preview the node. Don't submit it. This will rebuild your node access based on the installed access control modules.
Your issue is that permissions are screwed up. This or my previous post can help fix it depending on what you have messed up.
Matt Farina
Geeks and God Co-Host
www.mattfarina.com
Your Rock!
Many thanks for figuring that out. Yeah, we at one time had the access control module installed but since removed it, or so we thought. I went ahead and deleted all rows except one and changed the nid to 0. That should work then. What a frustration that was. We since re-did the upgrade to 5.2 thinking it just went bad.
Many thanks for figuring that one out.
Now we have other issues again. This is just a bad week. lol.
The upgrade removed all our views so we have to re-create those. The audio module isnt showing up for us. It just shows the name of the study but no player. It looks like it doesnt see the file. We may have to re-import all the audio again Im thinking and start from scratch. We have our site offline but matt since you have admin you should be able to see what Im talking about by looking at this link for example.
Let me know if you think
Let me know if you think re-doing all the audio studies again is the only way around it. If there is another way, that would save me some serious amount of time. It looks like thats the only issue we have left....gulp....I hope.
upgrade
Make sure you have the newest versions of all you modules. Use the Update Status module if you need it (http://drupal.org/project/upda...). This is the module that will do it in drupal 6.
I have found some cases where modules that weren't the newest versions didn't work with each other right.
As for re-importing everything... don't do that. If all the information is there learn to make it right. That's usually a lot less work.... and you learn how the system works.
Matt Farina
Geeks and God Co-Host
www.mattfarina.com
We have the latest version
We have the latest version of al the modules. Last night we grabbed them all and installed them. Where would would go to make the audio player locate the audio files?
getid3
when you updated the audio module did you make sure to put getid3 in there before you turned it on?
From the looks of it the getid3 library isn't present. That means it can't see the file type and sampling rate of the audio which is needed for the flash player.
It also means that, there will be issues with the meta data.
Does this help?
Matt Farina
Geeks and God Co-Host
www.mattfarina.com
Yes, that does help thank
Yes, that does help thank you. I have the getid3 working now and turned off the audio module then turned it back on again. In the audio settings Im getting this error:
warning: call_user_func_array(): First argumented is expected to be a valid callback, 'audio_admin_settings' was given in /vservers/bteminis/htdocs/includes/form.inc on line 217.
I looked at that file on line 217 it reads.
$form = call_user_func_array(isset($callback) ? $callback : $form_id, $args);
I dont know what any of that means.
something is messed up
Something is messed up. To edit an audio node you have to have the audio module installed. That could be causing the error. There are a lot of errors that will come up if the audio module isn't installed.
Somehow the files associated with the audio nodes are gone. Did you, at any point, uninstall the audio modules database?
Matt Farina
Geeks and God Co-Host
www.mattfarina.com
I dont think I deleted
I dont think I deleted anything related to the audio module in the database. But who knows. If there is a way to mess it up Im usually pretty good at finding it. :)
I guess I will just start re-importing all the audio.
backup
This is where a backup would have come in handy ;-)
Matt Farina
Geeks and God Co-Host
www.mattfarina.com
Heres what I think happened.
Heres what I think happened. Before I upgraded I removed the modules. In the modules settings I clicked the uninstall tab and checked off to uninstall all parts of the module. Does this delete it from the database?
If so, then yep. I deleted it. So I take it I should have not done that step huh.
I have everything back online now and working I think. Thanks again Matt.
You have really helped me out. If you want a couple of our Greek Courses either for you guys or if you want to give them to someone else just send me an email with your mailing info and Ill be sure you get them no charge for you whatsoever. Just pick a couple from the site and let me know. Least we can do for your help. Im not sure if the cd will work on macs. It might because basically its just a pdf with embedded audio.
Thanks again Matt you guys here at G&G are awesome!
it does delete
Uninstalling does delete from the database. It removes the tables associated with that module. In fact, on the uninstall screen it says "The uninstall process removes all data related to a module."
Thanks for the offer on the Greek courses. I'll chat with Rob and get with you privately about that.
Matt Farina
Geeks and God Co-Host
www.mattfarina.com
dooohhh
I figured that was the case. I stared at that screen for a second thinking....should I?....I just did it. Dang it. Oh well. I learned from that one huh :)
Yeah, Just let me know about the course. You have my email.
steenking backups...
We don't need no steenking backups!
Ok, I lie. This is one time where I really make sure I have backups. And since most of my backups are rsync over ssh, I usually run the backup and then make a tarball of the backup on the target machine, so I can get things back if I don't notice a problem right away.
I actually have two test systems (because I'm migrating from one to another... sort of.) I apply all updates to those before touching a production system. But gee, you gotta actually test those. I updated all of my modules first before updating Drupal core, and missed the fact that the current version of the Image module breaks the Image Assist module until I'd already done it on a production site. Fortunately, I'd only used img_assist in one node, and it wasn't that important, but lesson learned about actually testing stuff. (And to think, we're in a major migration project at work, and we're always bugging our end users to test, test, test...)
Anyway, thanks for the heads up on glitches with the audio module. One site I have yet to update uses this, and it would not be good to break it. I just checked my test site that has the audio module and I get "Error Opening File" from the player, although the download links still work. (What was I saying about testing?)
I don't have time to investigate this right now, but I will be looking at this before updating the live site, so I'll post back any useful info that I find.
Micah
no problem with audio module
I like the way you upgrade and test. That's my philosophy. Backs and test servers. In the end they can save your rear end.
The audio module doesn't seem to have any glitches. This seems to have been due to an uninstalled table and forgetting to re-setup getid3 after the upgrade. Those oopses that can bite us in the rear.
Matt Farina
Geeks and God Co-Host
www.mattfarina.com
Bite it did
Im just glad there wasnt a whole lot of content to redo. Ill know now for next time. I did have a copy of the database which I downloaded the night before. But did I think about that at the time....of course not. I can be such a dweeb sometimes :)
I did use the audio import
I did use the audio import and tried importing a test file to see if the player does work. It works just fine doing it that way. Just not sure what steps I should take to get the other postings audio to show up
Thanks
I was having the access denied blues for anyone who wasn't logged in to the site. And this solution solved it. I can't believe it, I searched the drupal forums and nothing there seemed to work. Thanks Matt! Once again, G&G saves the day!
~Phil