Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Upgrading from 4.0.3 to 4.0.4
Upgraded 5 sites this afternoon, don’t you just love the small code base ;)
In the process of upgrading, I decided to write down my steps, as I went from site to site I tweaked the list somewhat.
Upgrading the server:
- First I made a snapshot of my templates with the mcw_templates plugin while running 4.0.3.
- Via FTP, I copied the /textpattern directory to the root of my web space overwriting the old directory.
- Via FTP, I copied over index.php to the root, I left .htaccess alone since it hadn’t changed from 4.0.3 and I’ve made changes to it on certain domains.
- Via FTP, removed the /textpattern/setup directory.
Administration steps:
- Entered the new admin area, so the update process can occur.
- Updated my language of choice, this is a must.
- Refreshed my browser, F5 will do, this way the new admin CSS is applied.
- Went to Preferences > Advanced and changed Send “Last-Modified” header? to No – this preference is working now and I prefer the old behavior, especially if you’re tweaking your site a lot.
Template tweaks:
- My new head section – txp:page_title now displays the section name, there are new links for RSS and Atom auto discovery and a new CSS tag.
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<txp:if_section name="">
<title><txp:page_title />: <txp:site_slogan /></title>
<txp:else />
<title><txp:page_title /></title>
</txp:if_section>
<txp:feed_link flavor="atom" format="link" label="Atom" />
<txp:feed_link flavor="rss" format="link" label="RSS" />
<txp:css format="link" />
</head>
Muchas gracias to all involved in Textpattern 4.0.4, have a cerveza on me :)
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
Re: Upgrading from 4.0.3 to 4.0.4
Hullo! Thanks for posting this. The tedious albeit desultory explanation over the txp manual gave me a headache. I have three dumb questions though:
1. Do I have to change the contents of the new config.php?
2. Do I have to delete anything else after the overwrite? (If ever some some of them would be practically useless with the new upgrade.)
3. I got this warning from my diagnostics: some_php_functions_disabled: shell_exec, passthrough, exec, system.
What should I do?o_0
thank you TXP!:DD I lovey yoouu!:D
Last edited by wordgasm (2006-10-20 10:24:41)
Offline
Re: Upgrading from 4.0.3 to 4.0.4
The essential actions are described on the download-page.
Do I have to change the contents of the new config.php?
No.
Do I have to delete anything else after the overwrite?
No. In some updates it’s possible that some files are no longer necessary or moved to different places, but there is no harm if the old ones stay in their old place as well.
Only the setup directory should be deleted.
I got this warning from my diagnostics: some_php_functions_disabled: shell_exec, passthrough, exec, system. What should I do?
You don’t have to do anything. That message is ment to help troubleshooting when problems do arise. Background: PHP has the ability to disallow any arbritrary function. Some hosters make use of this with the goal to increase security; for example if they do not want to update their PHP installation when a certain PHP function has a security-related bug, so they disable it. Sometimes a function that Textpattern needs could be disabled (happened a couple times in the past). So this information is meant to help when you are troubleshooting. Think of it as a Notice, not a Warning.
Offline
Re: Upgrading from 4.0.3 to 4.0.4
Though I can see how it might be confusing, I add a twist on to Bert’s fine directions that has made upgrading pretty straightforward for me.
After unzipping the Txp package, I rename the “textpattern” folder to “textpattern-new” on my hard drive. I place my current copy of config.php in there, copied from my existing install of Textpattern.
Upload the directory “textpattern-new” to your site. Upload index.php (and .htaccess, if necessary). Rename your current “textpattern” directory to “textpattern-old” then rename your uploaded “textpattern-new” directory to “textpattern”
Login and let the update run. Delete the setup folder from your textpattern directory. Done.
To me, it seems like the quickest way to update a live site, with just a couple of seconds of potential foobar time while you’re renaming the two directories, as opposed to XX seconds of potential foobar time as the two versions of Txp “co-exist” while being incrementally overwritten. Also, in the worst case, your old Txp directory is there waiting to be renamed in case you have to revert.
TextPattern user since 04/04/04
Offline
#5 2006-10-20 19:46:05
- NyteOwl
- Member
- From: Nova Scotia, Canada
- Registered: 2005-09-24
- Posts: 539
Re: Upgrading from 4.0.3 to 4.0.4
@reid: That was exactly what I was going to do as I had done a bit of hacking to some of the Txp files that may or may not be needed in the new version :)
Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;
Offline
Re: Upgrading from 4.0.3 to 4.0.4
@sencer: thank you. so I just leave the notice like that then?
@reid: that’s the first thing I did. Thing is, if you upload the “textpattern-new” it won’t replace “textpattern-old”. So after deleting textpattern-old and renaming textpattern-new with “textpattern”, I had a fresh new textpattern database with nothing in it — no articles, photos, and everything, all gone. It’s nearly the same instructions as those in the txp manual.
Last edited by wordgasm (2006-10-21 00:07:18)
Offline
Re: Upgrading from 4.0.3 to 4.0.4
wordgasm wrote:
@reid: that’s the first thing I did. Thing is, if you upload the “textpattern-new” it won’t replace “textpattern-old”. So after deleting textpattern-old and renaming textpattern-new with “textpattern”, I had a fresh new textpattern database with nothing in it — no articles, photos, and everything, all gone. It’s nearly the same instructions as those in the txp manual.
If you copy your old config.php from your working Textpattern install into your “textpattern-new” folder, that file will point it to the very same database, using the very same username and password. That’s essentially what is in that file. If your “textpattern-new” ends up pointing to a new blank database, then you’re not using your original config.php from your working install.
I’ve upgraded more than one site this way in the past couple of days, with no lost data.
TextPattern user since 04/04/04
Offline
Re: Upgrading from 4.0.3 to 4.0.4
ok, so that was it. haha. they should highlight that part in the txp manual. thanks!
Offline
Re: Upgrading from 4.0.3 to 4.0.4
I just upgraded following Reid’s advice. It worked a charm. The whole process took 3 minutes and downtime for the site was about 20 seconds… Max! Many thanks.
Last edited by fostsi_1 (2007-05-16 20:17:46)
Change has a considerable psychological impact on the human mind. To the fearful it is threatening because it means that things may get worse. To the hopeful it is encouraging because things may get better. To the confident it is inspiring because the challenge exists to make things better. – King Whitney Jr.
Offline
Pages: 1