Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[de-de] Probleme mit txp:php - mal wieder...
Ich habe ein kleines Problem mit der Einbindung von PHP.
Folgendes Szenario:
TXP 4.0.5 im Test-Modus. Updates seit g1.17 (kein Scherz). PHP überall erlaubt (= 3x ja).
< txp:php >include ‘http://www.roxomatic.de/counter.php’;< /txp:php >
funktioniert bestens
< txp:php >include ‘/www/htdocs/w000999/counter.php’;< /txp:php >
crasht, im Testmodus mit der (mehrfachen) Meldung
tag_error <txp:output_form form=“2_header” /> -> Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user: ‘wwwrun@localhost’ (Using password: NO) on line 11
tag_error <txp:output_form form=“2_header” /> -> Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established on line 11
tag_error <txp:output_form form=“2_header” /> -> Textpattern Notice: Baustein nicht gefunden: 2_header on line 1360
Im Debug-Modus entsprechend
tag_error <txp:output_form form=“2_header” /> -> Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user: ‘wwwrun@localhost’ (Using password: NO) on line 11
textpattern/lib/txplib_misc.php:11 mysql_real_escape_string()
textpattern/lib/txplib_misc.php:54 doarray()
textpattern/lib/txplib_misc.php:1358 doslash()
textpattern/lib/txplib_misc.php:1376 fetch_form()
textpattern/publish/taghandlers.php:243 parse_form()
textpattern/publish.php:963 output_form()
processtags()
textpattern/publish.php:922 preg_replace_callback()
textpattern/publish.php:456 parse()
index.php:39 textpattern()
(FYI: das Design besteht modular aus mehreren Forms)
Gleiches Ergebnis bei Einbau in Seitenvorlage und indirekt (erst als Form, dann in die Seitenvorlage).
Nun ist klar und heißt es u.a. hier, das soll man besser nicht per http machen. Diagnose s.u. Irgendwelche Ideen?
Danke im voraus.
Die Diagnose sagt
Textpattern-Version: 4.0.5 (r2466)
Letzte Aktualisierung: 2007-11-03 11:02:13/2007-11-03 11:01:43
Document Root: /www/htdocs/w000999/ (/www/htdocs/w006ece4)
$path_to_site: /www/htdocs/w000999
Textpattern-Pfad: /www/htdocs/w000999/textpattern
Schema der URLs: id_title
open_basedir: /www/htdocs/w000999/:/tmp:/usr/bin:/www/htdocs/w000999:/bin:/usr/local/bin:/usr/share/php
Temporäres Verzeichnis: /tmp
Seiten-URL: www.roxomatic.de
PHP-Version: 4.4.7
GD-Graphikbibliothek: bundled (2.0.28 compatible); Unterstützte Grafikformate: GIF, JPG, PNG.
Lokale Serverzeit: 2008-01-22 22:04:32
MySQL: 4.0.25-Max-log
Regionale Einstellungen: de_DE.UTF-8
Server: Apache
Apache-Version: Apache
PHP Server API: apache2handler
RFC-2616-Header:
Betriebssystem des Servers: Linux 2.6.17.8-nmm1
Aktive Plugins: dca_mailto_form-0.1m, fha_time_diff-0.23, tru_tags-3.0, rpg_trackbackurl-0.2m, rpg_trackbackrdf-0.2m, glx_if-0.6.4m, mem_akismet-0.1, upm_img_popper-1.3.5, upm_category_title-0.4.5, rss_admin_db_manager-4.3, mrw_spamkeywords_urlcount-0.1m, txp_icio_us-1.4m, gaw_if_comment_preview-0.1, upm_image-0.6, mdn_count-1.4, ajw_total_comments-0.1.1m, klp_word_count-0.2, rss_admin_show_adv_opts-0.3, ajw_notepad_public-0.1, wet_opensearch-0.1, the_video-0.7, ako_nav-1.0, rss_auto_excerpt-0.4.1, stm_image_uploader-0.3
Voruntersuchung:
————————————
Einige Textpattern-Dateien wurden modifiziert:
/include/txp_article.php
Einige PHP-Funktionen sind deaktiviert.: escapeshellcmd, proc_nice, ini_restore
————————————
Inhalt der .htaccess-Datei:
————————————
Options +Multiviews
AddDefaultCharset UTF-8
AddType application/x-httpd-php .html .htm .php
DirectoryIndex index.html index.php
php_value register_globals 0
Options +FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php
</IfModule>
Offline