Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#37 2011-03-27 22:33:02

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,270
Website GitHub

Re: Feedback for the Textpattern 4.4.0 release

maverick wrote:

Notice: Undefined offset: 1 in /path to textpattern/textpattern/lib/txplib_misc.php(653) : eval()’d code on line 94

That error’s not showing on my install. A plugin problem, perhaps? (line 653 is where plugin code is eval’d).

If you track it down, please let us know. Or if it’s not a plugin, throw us a bit more info about your setup so we can try and replicate.

EDIT: and if it’s one of my plugins I apologise in advance :-)

Last edited by Bloke (2011-03-27 22:34:08)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#38 2011-03-27 22:51:13

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: Feedback for the Textpattern 4.4.0 release

Bloke wrote:

RE: upgrade instructions; point taken. I’m sure someone can improve on them further.

Thanks Stef. And as Ruud mentioned before you could lose this bit:

Then copy your existing config.php from the /textpattern/ folder in the folder you created in step 2 to the corresponding folder on your server.

Offline

#39 2011-03-27 22:57:10

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: Feedback for the Textpattern 4.4.0 release

Bloke wrote:

Upgrade instructions tweaked slightly. Is that better? Any further improvements that can be made?

To me the upgrade instructions look good. But may I mention that a short block for CLI users could help. Using the terminal is much faster and safer than the FTP transmission. Something like:

(Logout from Textpattern admin)
cd <website root>
cp -r * txp-bak // I assume you have the user rights to read&write the hidden .-files like .htacccess
mysqldump // sorry I don’t know the exact command as I use DB Backup as a 1st step, check “man mysqldump”
wget http://path/to/download/textpattern-nnn.zip
unzip textpattern-nnn.zip
cd textpattern-nnn
cp -r * ../<website root> // Only files with the same name will be overwritten
(Proceed with step 4)

In my case everything is fine that way.


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#40 2011-03-27 23:04:41

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: Feedback for the Textpattern 4.4.0 release

Bloke wrote:

EDIT: and if it’s one of my plugins I apologise in advance :-)

LOL — how did you guess? — no apology necessary.

It’s smd_prognostics.

Both v0.16 and v0.17 yield the same error.

I’ll post in the appropriate thread.

Thanks
Mike

Last edited by maverick (2011-03-27 23:10:21)

Offline

#41 2011-03-27 23:40:41

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: Feedback for the Textpattern 4.4.0 release

gomedia wrote:

I’d shift the “You must make a copy of your config.php file as a minimum” to before “Duplicate the Existing Txp File Tree” – so it’s more in your face. However even this might be giving the user a false sense of security.

I probably shouldn’t admit this, and don’t recommend it, but being an old-school user, I still follow the original instructions.

Dean wrote:

To move from one version of Txp to the next, simply replace everything in your /textpattern/ directory EXCEPT config.php

Offline

#42 2011-03-28 07:32:10

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: Feedback for the Textpattern 4.4.0 release

My mistake regarding config.php was not because of upgrade instructions but because of my unfamiliarity with ftp software. With Filezilla I could copy the Textpattern folder from my computer to server and it would leave any renamed files alone, such as configold.php. With Coda I have to use Merge to do this.

Although the new detailed instructions are necessary, I still basically use Dean’s original instructions too :-)


BB6 Band My band
Gud One My blog

Offline

#43 2011-03-28 07:40:27

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: Feedback for the Textpattern 4.4.0 release

Dean wrote:

To move from one version of Txp to the next, simply replace everything in your /textpattern/ directory EXCEPT config.php

Well, this simple and elegant sentence is basically how I understand & practice the TXP upgrade process till today (see above).
And reality is that esp. this self confident sentence encouraged me a lot to always make the upgrade ASAP and not to postpone it until ‘later’.

Maybe this simply replace order should be engraved as a golden motto above all the complicated upgrade write up. Thanks Michael for the reminder :)


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#44 2011-03-28 14:48:02

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Feedback for the Textpattern 4.4.0 release

i haven’t upgraded/installed with anything other than svn in years. Always works.

Offline

#45 2011-03-28 14:53:23

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

Re: Feedback for the Textpattern 4.4.0 release

I always upgrade from the command line:

wget http://textpattern.com/file_download/XX/textpattern-4.X.X.tar.gz
tar -zxvf textpattern-4.X.X.tar.gz
cp -r textpattern-4.X.X/* ~/my/document/root

Since I generally have custom .htaccess directives, I manually copy .htaccess changes. The cp -r command only overwrites files that are present in the distribution, so it never touches my conflig file, images, files, or custom admin themes.

Offline

#46 2011-03-28 16:19:22

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Feedback for the Textpattern 4.4.0 release

What I do to upgrade to TXP 4.4 is:

[first backup database and /textpattern directory]
wget 'http://textpattern.com/file_download/66/textpattern-4.4.0.tar.gz&'
mv 'http://textpattern.com/file_download/66/textpattern-4.4.0.tar.gz&' 'http://textpattern.com/file_download/66/textpattern-4.4.0.tar.gz' // Can someone get rid of the trailing &?
tar -zxvf textpattern-4.4.0.tar.gz
cd textpattern-4.4.0
rm -rf rpc   // I don't want to use RPC
rm -rf sites // I don't want to use multi-site capability
rm -rf textpattern/setup // because this is an upgrade, not a new install
rm HISTORY.txt README.txt  // I like to hide which TXP version I use.
rm images/*  // I don't want 1.gif and 2.gif to overwrite my own images (I've reused those image ids)
mv files/.htaccess-dist files/.htaccess // Avoid direct access to uploaded files.
cp -r * /path/to/document/root/.
cp .htaccess /path/to/document/root/.  // I did not modify the .htaccess, I can safely overwrite it with a new one.

Offline

#47 2011-03-28 17:20:26

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Feedback for the Textpattern 4.4.0 release

^^ hemi, ignore the /dev/urandom warning. You should get it only once.

Offline

#48 2011-03-28 18:30:10

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Feedback for the Textpattern 4.4.0 release

Should be fixed in r3517.

Offline

Board footer

Powered by FluxBB