Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2026-02-04 23:33:44
- imazer
- Member
- Registered: 2024-06-19
- Posts: 14
PHP Fun
So I upgraded to 4.90 and thought I’d done due diligence. When login onto my site I get the setup menu, put in the appropriate data (some was already populated), noted that I already had a database setup. Then on to the next window which said I was connected, but rendered this warning:
“It appears the tables in [deleted]_textpattern already exist. If you wish to continue setup, either delete the existing tables, or choose a different table prefix”Um…what? I just told the system I had an existing database on the previous pop-up window. And my existing config.php agrees with all my inputs. Anyone have suggestions?
Thanks!
Offline
Re: PHP Fun
If you upgrade from a previous instance you most certainly do NOT want to go through /setup! That can erase your site and start fresh if you’re not careful. The warnings you encountered are there to protect your data :)
There’s an upgrade.md file in the distro that explains in detail what you should do, but the crux of it is:
- log out of Txp
- take a backup of the DB and filesystem
- transfer most of the new /textpattern directory, /themes (if it doesn’t exist), /rpc (if you use it) plus index.php and css.php. Also upload .htaccess if you haven’t made any modifications to your original (assuming you’re using Apache).
- be careful to exclude the /textpattern/setup directory and that you don’t accidentally overwrite your /textpattern/plugins directory. And that your original config.php remains intact.
- log back into your admin side. The upgrade script will complete.
- profit
Last edited by Bloke (Yesterday 00:17:16)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#3 Yesterday 15:57:35
- imazer
- Member
- Registered: 2024-06-19
- Posts: 14
Re: PHP Fun
Thank you for your quick response, Bloke.
I removed the setup directory and the config.php is there. However, when I now try login in get this:
“config.php is missing or corrupt. To install Textpattern, ensure textpattern/setup/ exists.”
Nonsense.
OK, now that I look at my server files via plesk, I can see my file structure may be borked. I somehow have two instances of Textpattern, one nested inside the other. Along side the “outer” Textpattern directory are other files and directories containing current items, including my config.php. There is a duplicate index.php in the “inner” textpattern directory.
Everything was backed up before the upgrade. I need a clear picture of a finished, proper installation to determine what goes where. I may have to erase all the relevant files/directories and start with a fresh install of Textpattern 4.90, adding saved items as I go along.
Offline
Re: PHP Fun
Sounds like your upload didn’t quite go according to plan. So this is the structure you should see under your site root (often called httpdocs):
.htaccess
css.php
index.php
files/
images/
rpc/ [optional]
textpattern/ [includes config.php]
themes/
That’s about it. You shouldn’t need to start again. Just upload the 4.9.0 files over the top of the ones already there (delete the duplicate nested textpattern directory) being careful to preserve config.php, the textpattern/plugins directory, and to exclude or delete textpattern/setup.
Then log in to your admin side and the upgrade will complete.
Last edited by Bloke (Yesterday 17:07:25)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#5 Yesterday 21:25:12
- imazer
- Member
- Registered: 2024-06-19
- Posts: 14
Re: PHP Fun
Success!
Followed your advice and things cleaned up nicely. Diagnostics was fine.
And the website works as expected — with one exception, my search page fuction failed to populate even terms that should obviously pull up results, so I’ll check the Forms, et. al. about that.
Thank you, thank you! That was nerve-wracking, but fun.
Offline
#6 Yesterday 21:54:15
- imazer
- Member
- Registered: 2024-06-19
- Posts: 14
Re: PHP Fun
Oh, and perhaps I should put this comment elsewhere, but in the Textpattern 4.90 my in-article thumbnail images no longer expand when the pop-up occurs, they stay thumbnail size in the pop-up.
Offline
Re: PHP Fun
Glad you got the site working.
If you could pleaee post the relevant portions of your code for the search and thumbnail rendering here, and we’ll try to figure out what’s going on.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
Pages: 1