Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-11-03 13:40:04

Sandwich
Member
Registered: 2005-02-14
Posts: 37

4.0.1 -> 4.0.2 upgrade problem - "config.php is not ok or not found.."

I followed the upgrade instructions provided here and uploaded all the relevant files. As I’m upgrading a live site, I then checked the site, and it was still working fine. So I went to the /textpattern/ directory, but got this error on a blank page: <code>config.php is not ok or not found. If you would like to install, go to {/subdir}/textpattern/setup/</code> (but replace the curly brackets “{}” with square ones “[]”, since square ones make Textile cry..). I checked and the file is indeed still there, and it still has the same contents as before (with 4.0.1). So I opened up the config.php.default file provided with the download and compared the two, and the only difference I noticed was that the new one had the extra connents and the line: $txpcfg[‘dbcharset’] = ‘latin1’;

So I adjusted the new config.php.default with the proper values from the old one, renamed the old file to .bak, and renamed the new one to config.php. Not only did this not work, but it broke the frontpage as well. Restoring the old config file fixed the frontpage, but I still get the above error in the admin section. Any ideas?

Last edited by Sandwich (2005-11-03 13:44:19)

Offline

#2 2005-11-03 13:48:54

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: 4.0.1 -> 4.0.2 upgrade problem - "config.php is not ok or not found.."

Can you show us a directory listing of the files and directories that are inside your /textpattern/ directory?

When you access your atom-feed and open it in a text-editor, what does this line say:
<generator uri=...</generator>

It sounds like you copied the new files in the wrong location (one directory “up”).

Offline

#3 2005-11-03 13:57:14

Sandwich
Member
Registered: 2005-02-14
Posts: 37

Re: 4.0.1 -> 4.0.2 upgrade problem - "config.php is not ok or not found.."

Generator line: <code>&lt;generator uri=“http://textpattern.com/” version=“4.0.1”>Textpattern&lt;/generator>

And here’s SmartFTP’s “raw listing” of the /textpattern/ directory:

<code>type=cdir;modify=20051103131525;UNIX.mode=0755 /web/clients/kokaj/htdocs/textpattern
type=pdir;modify=20050928120459;UNIX.mode=0755 /web/clients/kokaj/htdocs
type=file;size=318;modify=20051103130752;UNIX.mode=0644 .htaccess
type=file;size=26302;modify=20050807113337;UNIX.mode=0644 _update.php
type=file;size=1857;modify=20051026112048;UNIX.mode=0644 article.css
type=file;size=224;modify=20051103131428;UNIX.mode=0644 config.php
type=file;size=638;modify=20051103130746;UNIX.mode=0644 config.php.default
type=file;size=445;modify=20051103130744;UNIX.mode=0644 css.php
type=file;size=5281;modify=20051026104323;UNIX.mode=0644 default.css
type=file;size=2121;modify=20050921105603;UNIX.mode=0644 devotional.css
type=file;size=32281;modify=20050807113341;UNIX.mode=0644 en-gb.php
type=file;size=445;modify=20050914094823;UNIX.mode=0644 forms.css
type=file;size=577;modify=20050928122213;UNIX.mode=0644 globalreset.css
type=dir;modify=20050713135742;UNIX.mode=0755 include
type=file;size=973;modify=20050713135705;UNIX.mode=0644 index.html
type=file;size=845;modify=20051103130752;UNIX.mode=0644 index.php
type=dir;modify=20050807113426;UNIX.mode=0755 lang
type=dir;modify=20050918105932;UNIX.mode=0755 lib
type=file;size=15127;modify=20051103130749;UNIX.mode=0644 license.txt
type=file;size=951;modify=20050831153157;UNIX.mode=0644 nav.css
type=file;size=529;modify=20050829151110;UNIX.mode=0644 pagination.css
type=file;size=4280;modify=20050928132452;UNIX.mode=0644 print.css
type=dir;modify=20050713135841;UNIX.mode=0755 publish
type=file;size=30726;modify=20051103130744;UNIX.mode=0644 publish.php
type=dir;modify=20051103130841;UNIX.mode=0755 setup
type=file;size=29265;modify=20050807113350;UNIX.mode=0644 setup-langs.php
type=file;size=1794;modify=20050831153348;UNIX.mode=0644 subnav.css
type=file;size=5760;modify=20051103130746;UNIX.mode=0644 textpattern.css
type=dir;modify=20051006125355;UNIX.mode=0777 tmp
type=dir;modify=20050713135913;UNIX.mode=0755 txp_img
type=file;size=36553;modify=20050807113355;UNIX.mode=0644 txpsql.php
type=dir;modify=20051103130754;UNIX.mode=0755 update
</code>

Offline

#4 2005-11-03 14:44:46

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: 4.0.1 -> 4.0.2 upgrade problem - "config.php is not ok or not found.."

your textpattern/index.php file is 845 bytes, which is the exact size of the /index.php file (the one in the main dir) of the distribution.
The textpattern/index.php file in the distribution is 2.911 bytes.

So somehow the wrong file(s) ended up in the wrong directory.

Offline

#5 2005-11-03 14:52:33

Sandwich
Member
Registered: 2005-02-14
Posts: 37

Re: 4.0.1 -> 4.0.2 upgrade problem - "config.php is not ok or not found.."

Oh. Uhm… oops? :p

Yeah, that fixed it. Uhm… this was such a dumb problem you can just delete this thread from the server if you want… don’t want to confuse people with REAL problems when they’re searching around… :p

Offline

Board footer

Powered by FluxBB