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: 12

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,441
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

#3 Today 15:57:35

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

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

#4 Today 17:05:24

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

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 (Today 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

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

Board footer

Powered by FluxBB