Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Troubleshooting
  3. » PHP Fun

#1 Yesterday 23:33:44

imazer
Member
Registered: 2024-06-19
Posts: 11

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

#2 Yesterday 23:53:49

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,440
Website GitHub

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:

  1. log out of Txp
  2. take a backup of the DB and filesystem
  3. 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).
    1. 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.
  4. log back into your admin side. The upgrade script will complete.
  5. profit

Last edited by Bloke (Today 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

  1. Index
  2. » Troubleshooting
  3. » PHP Fun

Board footer

Powered by FluxBB