Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-09-06 13:25:34

falk
New Member
Registered: 2006-09-06
Posts: 9

[de-de] Fehlermeldung: "config.php is not ok or not found."

Hallo zusammen,

ich hab die installation von textpattern durchgeführt, config.php.default angepasst usw.
beim aufrufen der seite erscheint dann die fehlermeldung:

“config.php is not ok or not found. If you would like to install, go to [/subdir]/textpattern/setup/”

auf den admin-bereich kann ich problemlos zugreifen.
die lösungsvorschläge zu dem fehler aus div. foren sind leider ohne wirkung geblieben.

ich hab das ganze lokal laufen (mac os x, xampp, textpattern 4.0.3)
der pfad zu textpattern lautet:

/applications/xampp/htdocs/txp

oder im browser halt:
localhost/txp/

ich wäre echt dankbar wenn jemandem was dazu einfällt. mir kommt das alles äußerst komisch vor.

schönen tag noch
falk

Offline

#2 2006-09-06 21:22:18

Skubidu
Archived Plugin Author
Registered: 2004-10-23
Posts: 611
Website

Re: [de-de] Fehlermeldung: "config.php is not ok or not found."

Heißt die Datei immer noch config.php.default? Richtig wäre config.php.

Offline

#3 2006-09-07 08:00:26

falk
New Member
Registered: 2006-09-06
Posts: 9

Re: [de-de] Fehlermeldung: "config.php is not ok or not found."

Ne ne, heißt schon config.php

Offline

#4 2006-09-07 09:21:58

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

Re: [de-de] Fehlermeldung: "config.php is not ok or not found."

falk wrote:

“config.php is not ok or not found. If you would like to install, go to [/subdir]/textpattern/setup/”
auf den admin-bereich kann ich problemlos zugreifen.

Merkwürdig, das dürfte eigentlich nicht passieren können. Du schreibst:

localhost/txp/
mappt auf
/applications/xampp/htdocs/txp

Wie ist den der volle (dateisystem-)Pfad zu deiner config.php und wo greifst du (welche url) auf den admin-bereich zu?

Offline

#5 2006-09-07 12:43:44

falk
New Member
Registered: 2006-09-06
Posts: 9

Re: [de-de] Fehlermeldung: "config.php is not ok or not found."

Hallo Sencer,
den admin bereich hab ich hier:

http://localhost/txp/textpattern/index.php

der pfad zur config.php lautet:

/applications/xampp/htdocs/txp/textpattern/config.php

… merkwürdig trifft die sache ganz gut.

bis dann, falk

Offline

#6 2006-09-07 13:39:48

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

Re: [de-de] Fehlermeldung: "config.php is not ok or not found."

Enthält deine config.php eine Zeile für “txpath”?

Der Code in index.php sieht wie folgt aus:

include './textpattern/config.php';
if (!isset($txpcfg['txpath']) ) {
header('Status: 503 Service Unavailable'); header('HTTP/1.0 503 Service Unavailable');
exit('config.php is not ok or not found. If you would like to install, go to [/subdir]/textpattern/setup/');

Ansonsten poste doch mal konkret deine config.php (passwörter ggf. xxxxen).

Offline

#7 2006-09-08 07:43:31

falk
New Member
Registered: 2006-09-06
Posts: 9

Re: [de-de] Fehlermeldung: "config.php is not ok or not found."

guten tach, erst mal vielen dank für eure hilfe

die index.php im verzeichnis /txp sieht so aus:

<?php
/*
$HeadURL: http://svn.textpattern.com/development/4.0/index.php $
$LastChangedRevision: 804 $
*/

// Make sure we display all errors that occur during initialization error_reporting(E_ALL); @ini_set(“display_errors”,“1”);

if (@ini_get(‘register_globals’)) foreach ( $_REQUEST as $name => $value ) unset($$name); define(“txpinterface”, “public”);

// Use buffering to ensure bogus whitespace in config.php is ignored ob_start(NULL, 2048); $here = dirname(FILE); include ‘./textpattern/config.php’; ob_end_clean();

if (!isset($txpcfg[‘txpath’]) ) { header(‘Status: 503 Service Unavailable’); header(‘HTTP/1.0 503 Service Unavailable’); exit(‘config.php is not ok or not found. If you would like to install, go to [/subdir]/textpattern/setup/’); }

include $txpcfg[‘txpath’].’/publish.php’; textpattern();
?>

Offline

#8 2006-09-08 07:47:04

falk
New Member
Registered: 2006-09-06
Posts: 9

Re: [de-de] Fehlermeldung: "config.php is not ok or not found."

die index.php im verzeichnis /txp/textpattern sieht so aus:

<?php

/* This is Textpattern

Copyright 2005 by Dean Allen www.textpattern.com All rights reserved

Use of this software indicates acceptance of the Textpattern license agreement

$HeadURL: http://svn.textpattern.com/development/4.0/textpattern/index.php $
$LastChangedRevision: 1172 $

*/ if (@ini_get(‘register_globals’)) foreach ( $_REQUEST as $name => $value ) unset($$name);

define(“txpath”, dirname(FILE)); define(“txpinterface”, “admin”);

$thisversion = ’4.0.3’; $txp_using_svn = false; // set false for releases

ob_start(NULL, 2048); if (!@include ‘./config.php’) { ob_end_clean(); include txpath.’/setup/index.php’; exit(); } else ob_end_clean();

header(“Content-type: text/html; charset=utf-8”); if (isset($_POST[‘preview’])) { include txpath.’/publish.php’; textpattern(); exit; }

error_reporting(E_ALL); @ini_set(“display_errors”,“1”);

include_once txpath.’/lib/constants.php’; include txpath.’/lib/txplib_db.php’; include txpath.’/lib/txplib_forms.php’; include txpath.’/lib/txplib_html.php’; include txpath.’/lib/txplib_misc.php’; include txpath.’/lib/admin_config.php’;

$microstart = getmicrotime();

if ($connected && safe_query(“describe `”.PFX.“textpattern`”)) {

$dbversion = safe_field(‘val’,‘txp_prefs’,“name = ‘version’”);

$prefs = get_prefs(); extract($prefs);

if (empty($siteurl)) $siteurl = $_SERVER[‘HTTP_HOST’] . rtrim(dirname(dirname($_SERVER[‘SCRIPT_NAME’])), ‘/’); if (empty($path_to_site)) updateSitePath(dirname(dirname(FILE)));

define(“LANG”,$language); //i18n: define(“LANG”,“en-gb”); define(‘txp_version’, $thisversion); define(“hu”,‘http://’.$siteurl.’/’); // v1.0 experimental relative url global define(“rhu”,preg_replace(“/http:\/\/.+(\/.*)\/?$/U”,”$1”,hu));

if (!empty($locale)) setlocale(LC_ALL, $locale); $textarray = load_lang(LANG);

include txpath.’/include/txp_auth.php’; doAuth();

$event = (gps(‘event’) ? gps(‘event’) : ‘article’); $step = gps(‘step’);

if (!$dbversion or ($dbversion != $thisversion) or $txp_using_svn) { define(‘TXP_UPDATE’, 1); include txpath.’/update/_update.php’; }

if (!empty($admin_side_plugins) and gps(‘event’) != ‘plugin’) load_plugins(1);

include txpath.’/lib/txplib_head.php’;

// ugly hack, for the people that don’t update their admin_config.php // Get rid of this when we completely remove admin_config and move privs to db if ($event == ‘list’) require_privs(‘article’); else require_privs($event);

callback_event($event, $step, 1);

$inc = txpath . ‘/include/txp_’.$event.’.php’; if (is_readable($inc)) include($inc);

callback_event($event, $step, 0);

$microdiff = (getmicrotime() – $microstart); echo n.comment(gTxt(‘runtime’).’: ‘.substr($microdiff,0,6));

end_page();

} else { txp_die(‘DB-Connect was succesful, but the textpattern-table was not found.’, ’503 Service Unavailable’); }
?>

Offline

#9 2006-09-08 07:48:02

falk
New Member
Registered: 2006-09-06
Posts: 9

Re: [de-de] Fehlermeldung: "config.php is not ok or not found."

und die config.php sieht folgendermaßen aus:

<?php

/** * mysql database */ $txpcfg[‘db’] = ‘txp’;

/** * database login name */ $txpcfg[‘user’] = ‘root’;

/** * database password */ $txpcfg[‘pass’] = ‘’;

/** * database host */

$txpcfg[‘host’] = ‘localhost’;

/** * table prefix (Use ONLY if you require multiple installs in one db) */

$txpcfg[‘table_prefix’] = ‘’;

/** * full server path to textpattern dir (no slash at end) */

$txpcfg[‘txpath’] = ‘/Applications/xampp/htdocs/txp/textpattern’;

/** * DB Connetion Charset, only for MySQL4.1 and up. Must be equal to the Table-Charset. */

$txpcfg[‘dbcharset’] = ‘utf8’;

?>

Offline

#10 2006-09-08 09:49:52

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

Re: [de-de] Fehlermeldung: "config.php is not ok or not found."

Ich verstehe nicht ganz, warum du die config.php Datei durchs editieren der default-Datei angelegt hast, und nicht per copy und paste, die Version aus dem setup-prozeß genommen hast.

Du hast einmal beim Pfad eingroßes “A” in Applications (in der config), und weiter oben schreibst, du der Pfad sei mit einem kleinen “a” applications. Das könnte die Ursache sein.

Ansonsten poste bitte auch nochmal die Infos von deiner Diagnose-Seite aus Textpattern.

Last edited by Sencer (2006-09-08 09:50:08)

Offline

#11 2006-09-09 09:38:01

falk
New Member
Registered: 2006-09-06
Posts: 9

Re: [de-de] Fehlermeldung: "config.php is not ok or not found."

Hallo!
ich hatte die config auch schon mit copy+paste angelegt, ging auch nicht.
groß/kleinschreibung hab ich auch alles mögliche ausprobiert, ohne erfolg.

hier ist mal die diagnose aus txp:

txp_version: 4.0.3 (r1188)
last_update: 2006-09-07 12:40:06/2005-12-26 17:49:56
document_root: /Applications/xampp/htdocs
$path_to_site: /Applications/xampp/htdocs/txp
txp_path: /Applications/xampp/htdocs/txp/textpattern
permlink_mode: section_id_title
tempdir: /private/var/tmp
web_domain: localhost/txp
php_version: 4.4.1
register_globals: 1
server_time: 2006-09-09 11:33:22
MySQL: 5.0.15
locale: de_DE.UTF-8
server: Apache/2.0.55 (Unix) PHP/4.4.1 DAV/2 mod_ssl/2.0.55 OpenSSL/0.9.8a mod_perl/2.0.2 Perl/v5.8.7
apache_version: Apache/2.0.55 (Unix) PHP/4.4.1 DAV/2 mod_ssl/2.0.55 OpenSSL/0.9.8a mod_perl/2.0.2 Perl/v5.8.7
php_sapi_mode: apache2handler
os_version: Darwin 7.9.0

htaccess_contents:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.*) index.php </IfModule>

#php_value register_globals 0

————————————

Charset (default/config): latin1/utf8
character_set_client: utf8
character_set_connection: utf8
character_set_database: latin1
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /Applications/xampp/xamppfiles/share/mysql/charsets/
18 Tables: txp_category: 1 client is using or hasn’t closed the table properly, txp_css: 1 client is using or hasn’t closed the table properly, txp_discuss: 1 client is using or hasn’t closed the table properly, txp_form: 1 client is using or hasn’t closed the table properly, txp_image: 1 client is using or hasn’t closed the table properly, txp_link: 1 client is using or hasn’t closed the table properly, txp_page: 1 client is using or hasn’t closed the table properly, txp_prefs: 1 client is using or hasn’t closed the table properly, txp_priv: 1 client is using or hasn’t closed the table properly, txp_section: 1 client is using or hasn’t closed the table properly

php_extensions: zip, yp, xml, wddx, tokenizer/0.1, sysvshm, sysvsem, standard/4.4.1, sqlite/1.0.3, sockets, shmop, session, posix, pcre, overload, mysql, mssql, mhash, mcrypt, mbstring, ldap, imap, gettext, gd, ftp, filepro, exif/1.4 $Id: exif.c,v 1.118.2.37.2.3 2005/10/10 06:07:16 helly Exp $, domxml/20020815, dbx, dbase, dba, curl, ctype, calendar, bz2, bcmath, zlib/1.1, openssl, apache2handler, ming, eAccelerator/0.9.3

apache_modules: core, mod_ssl, prefork, http_core, mod_so, mod_perl, mod_access, mod_auth, mod_auth_anon, mod_auth_dbm, mod_auth_digest, mod_file_cache, mod_echo, mod_charset_lite, mod_cache, mod_disk_cache, mod_mem_cache, mod_example, mod_case_filter, mod_case_filter_in, mod_ext_filter, mod_include, mod_deflate, mod_log_config, mod_env, mod_mime_magic, mod_cern_meta, mod_expires, mod_headers, mod_usertrack, mod_unique_id, mod_setenvif, mod_proxy, proxy_connect, proxy_ftp, proxy_http, mod_bucketeer, mod_mime, mod_dav, mod_status, mod_autoindex, mod_asis, mod_info, mod_suexec, mod_cgi, mod_cgid, mod_dav_fs, mod_vhost_alias, mod_negotiation, mod_dir, mod_imap, mod_actions, mod_speling, mod_userdir, mod_alias, mod_rewrite, sapi_apache2

/include/txp_category.php: r1154 (dffd7979531373149c74e3eedfbb50e2)
/include/txp_plugin.php: r1167 (c2c7d7fc1e4918c79cd3658c62e4fbda)
/include/txp_auth.php: r1166 (3e2eaca7b151e14561125ab68e722203)
/include/txp_form.php: r947 (c0e4393328985742bd81cda61d10d5ed)
/include/txp_section.php: r1154 (d85c1ce405fccd9dac364c8ef4eb72eb)
/include/txp_tag.php: r1134 (3e2dfbd6fdccf0693c147ba22a9705e7)
/include/txp_list.php: r1042 (e85d2de1c63b41f0e5bdcf268e3c487b)
/include/txp_page.php: r876 (e22dc37b465b87757722732a225b25f3)
/include/txp_discuss.php: r1170 (1e56e08cc95c255783410076db12529f)
/include/txp_prefs.php: r1170 (c806be1b1f238e75a5ff6b7cf8432d17)
/include/txp_log.php: r906 (68c4f32b70ce41a349f197b6bba6c200)
/include/txp_preview.php: r628 (a16f84b6610fc66db0bce51e25b7af34)
/include/txp_image.php: r1168 (e8ec79ff9b3a21c356ee23da7973b1f0)
/include/txp_article.php: r1170 (88689d7469d16c13d51bd4adff03ebd7)
/include/txp_css.php: r922 (0c596d9968052b89581d1ca65a77c5de)
/include/txp_admin.php: r1074 (7e87ff0e29101593fb170b1a2de9fd59)
/include/txp_link.php: r1154 (7c0c55ff6580793dff0626f169e64ad6)
/include/txp_diag.php: r1154 (5d66b90f7e7720dd0e3526ca1b24cf89)
/lib/admin_config.php: r877 (9aea12193cc76eea1964eb0383ec6513)
/lib/txplib_misc.php: r1170 (7000a1b27aa40c90978211e6cff358ec)
/lib/taglib.php: r628 (493878f922262157601c26a999a1c478)
/lib/txplib_head.php: r1183 (fb85b66b4e379476935233f844844bef)
/lib/classTextile.php: r1141 (b066c2bfa94a26ae3d70b245dcf81369)
/lib/txplib_html.php: r1166 (bd11de6e6daa3391eab75a46db55ae36)
/lib/txplib_db.php: r1170 (5a2c3a1e328cd343a067cbb8fd25cd79)
/lib/IXRClass.php: r765 (2efb0fb05b55c634072b0bae9af38bdd)
/lib/txplib_forms.php: r950 (74da2c67abe4786c353ea416c13656eb)
/publish/taghandlers.php: r1188 (4e8eaeb0543d8fde09d6e423af4253b9)
/publish/atom.php: r1117 (14c1aa23c708898d7723b3d6b9c89050)
/publish/log.php: r864 (c3d16d3dfe375819a19fcd62398e4b86)
/publish/comment.php: r1187 (d55dde574418d2eaf6a394d703056d9a)
/publish/search.php: r884 (80f942f1dc301857c2fa9dcb16aa1246)
/publish/rss.php: r1099 (ce0d82b9435d8f1de01c8e2b6c585f93)
/publish.php: r1186 (d5c20bf2298e87969575f9e622bf2797)
/index.php: unknown (2c008844e60699457b21cb7b64641f30)
/css.php: r944 (df1c754417bdfb4e97a2c83ae5b454ee)

schönes wochenende herrschaften.
Falk

Offline

#12 2006-09-09 12:17:43

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

Re: [de-de] Fehlermeldung: "config.php is not ok or not found."

Hast du ggf. ein PHP-error-log in das du reinschauen kannst?

Ansonsten lösche in der Hauptverzichnis-index.php mal die beiden Zeilen die mit ob_ anfangen
und ersetze:
include './textpattern/config.php';

mit diesen 4 Zeilen:

var_dump(is_file('./textpattern/config.php'));
$test = include './textpattern/config.php';
var_dump($test);
var_dump($txpcfg);

Das sollte uns beim weiteren debuggen helfen. Anschließend einfach mal den öffentlichen Bereich aufrufen.

Offline

Board footer

Powered by FluxBB