Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Error after upgrade from 404 to 406: config.php is missing or corrupt.
I just made upgrade from 404 to 406. I can connect to admin part without problems (i see all content of web), but on main site, i’m just getting error “config.php is missing or corrupt. To install Textpattern, visit textpattern/setup/”. I can run diagnostic, here you can see it:
Textpattern version: 4.0.6 (r2805)
Last Update: 2008-02-25 09:11:42/2008-02-25 09:11:13
Document root: /usr/local/apache2/htdocs ()
$path_to_site: /DISK2/WWW/maler.cz/www
Textpattern path: /DISK2/WWW/maler.cz/www/textpattern
Permanent link mode: messy
open_basedir: /DISK2/WWW:/DISK3/WWW:/DISK2/TMP
upload_tmp_dir: /DISK2/TMP
Temporary directory path: /DISK2/WWW/maler.cz/www/images
Site URL: www.maler.cz
PHP version: 5.2.4
Register globals: 1
GD Image Library: version bundled (2.0.34 compatible), supported formats: GIF, JPG, PNG
Server Local Time: 2008-02-25 10:42:45
MySQL: 5.0.45-log
Locale: en_US.UTF-8
Server: Apache
Apache version: Apache
PHP Server API: apache2handler
RFC 2616 headers:
Server OS: Linux 2.6.22.6
Active plugins: tcm_fundate-0.1m, ajw_clean_feed-0.2, ajw_comments_feed-0.6, ako_social-0.2m, hak_textile_tags-0.1.1m, asy_stopdude-0.1
Pre-flight check:
————————————
File directory path is not writable: /DISK2/WWW/maler.cz/www/files
The following PHP functions (which may be necessary to run Textpattern) are disabled on your server: leak, pfsockopen, syslog
————————————
i must point out, that my site is running without .htaccess, becase with htaccess, i get errors: Internal Server Error. But version 404 was working under this conditions without problems.
please, help :(.
Offline
Re: Error after upgrade from 404 to 406: config.php is missing or corrupt.
I think you accidentally removed your config.php file during the upgrade.
You can either restore it from a backup (if you have one) or let the setup script help you re-create it (quit the setup once you have the config.php).
Offline
Re: Error after upgrade from 404 to 406: config.php is missing or corrupt.
ruud wrote:
I think you accidentally removed your config.php file during the upgrade.
You can either restore it from a backup (if you have one) or let the setup script help you re-create it (quit the setup once you have the config.php).
I’m not rocket engeneer, but not completly dumb too :). config.php sits there happily – or do you think that otherwise i’ll by able to connect to admin part of my textpattern?
Last edited by MaLer (2008-02-25 10:34:22)
Offline
Re: Error after upgrade from 404 to 406: config.php is missing or corrupt.
Please post the contents of your config.php file (without revealing username/password).
Offline
Re: Error after upgrade from 404 to 406: config.php is missing or corrupt.
ruud wrote:
Please post the contents of your config.php file (without revealing username/password).
<?php
$txpcfg[‘db’] = ‘b2_maler_cz’;
$txpcfg[‘user’] = ‘foo’;
$txpcfg[‘pass’] = ‘boo’;
$txpcfg[‘host’] = ‘mysql’;
$txpcfg[‘txpath’] = ‘/DISK2/WWW/maler.cz/www/textpattern’;
$txpcfg[‘doc_root’] = ‘/DISK2/WWW/maler.cz/www’;
$txpcfg[‘secret_word’] = ‘spinach’;
?>
i’m using textpattern from year 2003 (iirc), last mod of this file was in 2004, so before upgrade to 404.
thanks
Offline
Re: Error after upgrade from 404 to 406: config.php is missing or corrupt.
Add this to your config.php file:
$txpcfg['table_prefix'] = '';
$txpcfg['dbcharset'] = 'latin1'; // if you started using TXP with MySQL 4.0.x or older, otherwise 'utf8';
PS. txpath, doc_root and secret_word are not needed for TXP 4.0.6 (unless you have plugins that rely on it).
Last edited by ruud (2008-02-25 11:51:36)
Offline
Re: Error after upgrade from 404 to 406: config.php is missing or corrupt.
ruud wrote:
Add this to your config.php file:
$txpcfg['table_prefix'] = '';
$txpcfg['dbcharset'] = 'latin1'; // if you started using TXP with MySQL 4.0.x or older, otherwise 'utf8';
PS. txpath, doc_root and secret_word are not needed for TXP 4.0.6 (unless you have plugins that rely on it).
Thanks.
One thing – are you sure about latin1? Is this universal setting or it must be same charset like db realy is? Because:
Charset (default/config): cp1250/
character_set_client: cp1250
character_set_connection: cp1250
character_set_database: cp1250
character_set_filesystem: binary
character_set_results: cp1250
character_set_server: cp1250
character_set_system: utf8
Thanks
Offline
Re: Error after upgrade from 404 to 406: config.php is missing or corrupt.
It’s either utf8 or latin1. When you started using TXP, I’m guessing you installed on MySQL 3.23.x or 4.0 (where TXP stored utf8 content in a latin1 table) instead of MySQL 4.1 or higher where TXP could store utf8 content properly in a utf8 table. You can check the character set of the various tables and text columns in PHPmyAdmin. If it says latin1 there, you should use latin1 in config.php as the dbcharset, otherwise you’ll see corrupted characters.
Offline
Re: Error after upgrade from 404 to 406: config.php is missing or corrupt.
ruud wrote:
It’s either utf8 or latin1. When you started using TXP, I’m guessing you installed on MySQL 3.23.x or 4.0 (where TXP stored utf8 content in a latin1 table) instead of MySQL 4.1 or higher where TXP could store utf8 content properly in a utf8 table. You can check the character set of the various tables and text columns in PHPmyAdmin. If it says latin1 there, you should use latin1 in config.php as the dbcharset, otherwise you’ll see corrupted characters.
So, it was neither UTF8, nor Latin1, but realy CP1250 (because tables/db is in CP1250).
Thank you for your help!
Now i need to squash other bugs, with comments popup :(
Notice: in /DISK2/WWW/maler.cz/www/textpattern/publish/taghandlers.php on line 1770
Warning: unknown_tag in /DISK2/WWW/maler.cz/www/textpattern/publish.php on line 983
Offline