Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-04-28 16:54:22

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,316

Debugging mode: blank page!

This leaves me completely clueless: I’m getting blank pages in debugging mode (no source code).
In testing mode I get "Tag error: <txp:chh_if_data> -> Textpattern Warning: tag does not exist", though chh_if_data is installed, is active, and the use of plugins is checked in the prefs.
Can somebody please give me a kind hint on how to solve this? I’ll gladly provide any necessary information! Thanks in advance!

EDIT
Seems to be caused by Zend. Turning it off did the trick. (MAMP -> Preferences -> PHP)

Last edited by uli (2008-05-05 19:54:59)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#2 2008-04-28 17:18:57

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Debugging mode: blank page!

Does disabling all plugins help?

Can you post your full diagnostics?

Offline

#3 2008-04-28 17:25:51

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,316

Re: Debugging mode: blank page!

ruud wrote:

Does disabling all plugins help?

Not at all.

Textpattern version: 4.0.6 (r2805)
Last Update: 2008-04-19 23:42:47/2008-01-27 17:59:12
Document root: /Users/Uli/Sites
$path_to_site: /Users/Uli/Sites/txpdemo.dev
Textpattern path: /Users/Uli/Sites/txpdemo.dev/textpattern
Permanent link mode: title_only
upload_tmp_dir: /Applications/MAMP/tmp/php
Temporary directory path: /Users/Uli/Sites/txpdemo.dev/textpattern/tmp
Site URL: localhost/txpdemo.dev
PHP version: 5.2.5
GD Image Library: version bundled (2.0.34 compatible), supported formats: GIF, JPG, PNG
Server Local Time: 2008-04-28 19:23:47
MySQL: 5.0.41
Locale: en_US.UTF-8
Server: Apache/2.0.59 (Unix) PHP/5.2.5 DAV/2
Apache version: Apache/2.0.59 (Unix) PHP/5.2.5 DAV/2
PHP Server API: apache2handler
RFC 2616 headers: 
Server OS: Darwin 8.8.1
Active plugins: rss_article_edit-0.1, lam_accordion_section-0.1m, rss_admin_show_adv_opts-0.1, chh_if_data-0.10, cnk_section_tree-0.3m, bas_img_sel08-0.8m

.htaccess file contents: 
------------------------
#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes

<IfModule mod_rewrite.c>
	RewriteEngine On
	#RewriteBase /relative/web/path/

	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_filesystem: binary
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /Applications/MAMP/Library/share/mysql/charsets/
17 Tables: OK

PHP extensions: libxml, xsl/0.1, xmlwriter/0.1, dom/20031129, xmlreader/0.1, xml, tokenizer/0.1, session, pcre, SimpleXML/0.1, SPL/0.2, PDO/1.0.4dev, sockets, soap, SQLite/2.0-dev, standard/5.2.5, Reflection/0.1, posix, pdo_sqlite/1.0.1, mysqli/0.1, mysql/1.0, mbstring, ldap, json/1.2.1, iconv, hash/1.0, gd, ftp, filter/0.11.0, exif/1.4 $Id: exif.c,v 1.173.2.5.2.20 2007/06/10 20:12:45 iliaa Exp $, dbase, date/5.2.5, curl, ctype, calendar, bz2, bcmath, zlib/1.1, openssl, apache2handler, imap, yaz/1.0.12, mcrypt, gettext, pgsql, pdo_pgsql/1.0.2, pdo_mysql/1.0.2, Zend Optimizer

Apache modules: core, prefork, http_core, mod_so, 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_setenvif, mod_proxy, proxy_connect, proxy_ftp, proxy_http, mod_bucketeer, mod_mime, mod_dav, mod_status, mod_autoindex, mod_asis, mod_info, 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, mod_php5

pretext_data: array (
  'id' => '',
  's' => '',
  'c' => '',
  'q' => '',
  'pg' => '',
  'p' => '',
  'month' => '',
  'author' => '',
  'request_uri' => '/txpdemo.dev/d2c4326bdb048067e19218ea5f33c7be/?txpcleantest=1',
  'qs' => 'txpcleantest=1',
  'subpath' => '\\/txpdemo\\.dev\\/',
  'req' => '/d2c4326bdb048067e19218ea5f33c7be/?txpcleantest=1',
)

/../index.php: r2774 (66519e6f500fa0e59fa27567e97d3675)
/css.php: r2772 (4807cbc15661213f2b4d0fd26c7179ff)
/include/txp_admin.php: r2729 (0c2b3cf59ff433c943bcc293a526651a)
/include/txp_article.php: r2680 (49a7155d831f843bcf3e8de306dfe7f1)
/include/txp_auth.php: r2728 (c472bfbe49a71fd35e89000c8a18de08)
/include/txp_category.php: r2243 (0ed99b6f44b5d221bdf35674240141ab)
/include/txp_css.php: r2730 (7974aa87728b39d3afaba5a3b18cf6b5)
/include/txp_diag.php: r2791 (aeb96445180b68c31821e237b6150332)
/include/txp_discuss.php: r2774 (852a8a4d4307358e161e0501124b7247)
/include/txp_file.php: r2530 (9f34fdbf98b9b649d65e2ced4c9ca763)
/include/txp_form.php: r1913 (780340d28f384113c72924843194b43e)
/include/txp_image.php: r2668 (11269b464db6cfa3affff47674533a50)
/include/txp_import.php: r1238 (86f0e64d2c9362066e6c48b9cd486e37)
/include/txp_link.php: r2463 (2379d25f83b37ec6c8d5f3edb1122ce8)
/include/txp_list.php: r2725 (1ed6c6f729eaeb7f8a582b27cd5b9e78)
/include/txp_log.php: r2796 (f249e0962a996f05041b899fea91ccae)
/include/txp_page.php: r2717 (807ff04b4a649b54b3d710c1ab0a428f)
/include/txp_plugin.php: r2774 (e9fdc47a3ed9bdd13197d929161c6a13)
/include/txp_prefs.php: r2528 (50bd3be8c22e17d5ca2855ccea081bac)
/include/txp_preview.php: r1238 (c45992b3273ac8019477e2f959d63120)
/include/txp_section.php: r2759 (9208297e0bd7b3d41bd0e6f9fc9ab120)
/include/txp_tag.php: r2774 (f371b400e8d7318e2ac48e032fe6c274)
/index.php: r2805 (ee8ab2e3c4bc9abd77aa7384ecba5268)
/lib/IXRClass.php: r765 (0120eb4713c9b6446a0eebe8b1039d1c)
/lib/admin_config.php: r1747 (b972529744cb37a7695fe00316dada41)
/lib/class.thumb.php: r2329 (c7f66a32531f32d6dfcbe5c7d26c7852)
/lib/classTextile.php: r2779 (b6d5b9cecbc5bc6475b5d1ee6a5231ea)
/lib/constants.php: r2361 (5338211ece1b2592804acdd204c9df33)
/lib/taglib.php: r2612 (727737ebd08127c632b9822bae87fee0)
/lib/txplib_admin.php: r2726 (c4f65bac2ddef62867f5bfee97ad7dfe)
/lib/txplib_db.php: r2748 (3feb369b1c34f251815cd6085a216d62)
/lib/txplib_forms.php: r2759 (a2d3de62110e582fab2a3a20224661f4)
/lib/txplib_head.php: r2783 (74ced647523a94da307af9853d7ed596)
/lib/txplib_html.php: r2696 (57985ebd2501bc303d2e97ae7538db1f)
/lib/txplib_misc.php: r2788 (7ecfaa5d4fabefbf411d01615dea9485)
/lib/txplib_update.php: r1239 (e3bd2d0c2b491d4028a656b8301a0086)
/lib/txplib_wrapper.php: r2800 (4ad38ee67f3ee8d9e7b51544a4f0f58b)
/publish.php: r2777 (0ce3da212329e7d34de07e53e109d182)
/publish/atom.php: r2774 (50aa384a2edf7cc07effee9020e0893b)
/publish/comment.php: r2776 (0e1ea64316087edcd75f394494b42100)
/publish/log.php: r1637 (f69237dc2ff39bd7a691c8ca1bc87808)
/publish/rss.php: r2793 (022caa22c756c64f2255aae6625686d8)
/publish/search.php: r1748 (ea84e04b2c688b0bb8b5a9ecf395749a)
/publish/taghandlers.php: r2774 (59dc36e6dabc619e23c43f722fe7b8f1)
/update/_to_1.0.0.php: r711 (0f49fca8fbd8e6fca0fc48b0f69f0461)
/update/_to_4.0.2.php: r711 (e77c0e0d972868f19eaee4565bd0b4c4)
/update/_to_4.0.3.php: r711 (f5506cfd0fbc3ad4bd9a9b2299468775)
/update/_to_4.0.4.php: r711 (4d867b42ee87a7f11d2bff3a8e91bed0)
/update/_to_4.0.5.php: r2464 (dbe80cd4a775d3a43a203c3c4a2d0e3f)
/update/_to_4.0.6.php: r2464 (7e5ae73eb64c24438918697089a1f321)
/update/_update.php: r2792 (6ff7b4dedb2c7735a01e76b13b3f1fb1)

In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#4 2008-04-28 17:37:34

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Debugging mode: blank page!

Any clues in the Apache error/access logs?

Also, if you have shell access to that server and assuming a command line PHP version is present, try running the main index.php file using the command php index.php

Last edited by ruud (2008-04-28 17:49:41)

Offline

#5 2008-04-28 17:50:59

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,316

Re: Debugging mode: blank page!

Sorry for just posting these, but they don’t give me any hints.
Thanks, btw, Ruud!

[Mon Apr 28 10:08:44 2008] [notice] Digest: generating secret for digest authentication ...
[Mon Apr 28 10:08:44 2008] [notice] Digest: done
[Mon Apr 28 10:08:44 2008] [notice] Apache/2.0.59 (Unix) PHP/5.2.5 DAV/2 configured -- resuming normal operations
[Mon Apr 28 12:54:54 2008] [notice] child pid 824 exit signal Segmentation fault (11)
[Mon Apr 28 12:58:50 2008] [notice] child pid 852 exit signal Segmentation fault (11)
[Mon Apr 28 12:59:10 2008] [notice] child pid 850 exit signal Segmentation fault (11)
[Mon Apr 28 12:59:13 2008] [notice] child pid 825 exit signal Segmentation fault (11)
[Mon Apr 28 13:06:52 2008] [notice] child pid 822 exit signal Segmentation fault (11)
[Mon Apr 28 13:09:11 2008] [notice] child pid 851 exit signal Segmentation fault (11)
[Mon Apr 28 13:09:13 2008] [notice] child pid 826 exit signal Segmentation fault (11)
[Mon Apr 28 13:12:37 2008] [notice] child pid 12107 exit signal Segmentation fault (11)
[Mon Apr 28 13:12:40 2008] [notice] child pid 12304 exit signal Segmentation fault (11)
[Mon Apr 28 13:12:47 2008] [notice] child pid 12346 exit signal Segmentation fault (11)
[Mon Apr 28 13:17:17 2008] [notice] child pid 12684 exit signal Segmentation fault (11)
[Mon Apr 28 13:21:51 2008] [notice] child pid 13274 exit signal Segmentation fault (11)
[Mon Apr 28 13:21:54 2008] [notice] child pid 12819 exit signal Segmentation fault (11)
[Mon Apr 28 15:09:44 2008] [notice] child pid 11997 exit signal Segmentation fault (11)
[Mon Apr 28 15:09:47 2008] [notice] child pid 823 exit signal Segmentation fault (11)
[Mon Apr 28 15:09:54 2008] [notice] child pid 12671 exit signal Segmentation fault (11)
[Mon Apr 28 15:32:24 2008] [notice] child pid 11471 exit signal Segmentation fault (11)
[Mon Apr 28 15:32:27 2008] [notice] child pid 13467 exit signal Segmentation fault (11)
[Mon Apr 28 15:56:21 2008] [notice] caught SIGTERM, shutting down
[Mon Apr 28 15:57:02 2008] [notice] Digest: generating secret for digest authentication ...
[Mon Apr 28 15:57:02 2008] [notice] Digest: done
[Mon Apr 28 15:57:02 2008] [notice] Apache/2.0.59 (Unix) PHP/5.2.5 DAV/2 configured -- resuming normal operations
[Mon Apr 28 16:16:12 2008] [notice] child pid 25224 exit signal Segmentation fault (11)
[Mon Apr 28 16:16:14 2008] [notice] child pid 25223 exit signal Segmentation fault (11)
[Mon Apr 28 16:16:21 2008] [notice] child pid 25219 exit signal Segmentation fault (11)
[Mon Apr 28 16:19:17 2008] [notice] caught SIGTERM, shutting down
[Mon Apr 28 17:56:56 2008] [notice] Digest: generating secret for digest authentication ...
[Mon Apr 28 17:56:56 2008] [notice] Digest: done
[Mon Apr 28 17:56:56 2008] [notice] Apache/2.0.59 (Unix) PHP/5.2.5 DAV/2 configured -- resuming normal operations
[Mon Apr 28 18:13:05 2008] [notice] child pid 598 exit signal Segmentation fault (11)
[Mon Apr 28 18:15:57 2008] [error] [client ::1] File does not exist: /Users/Uli/Sites/96d92f8e861fbc58a572ad02881a854d
[Mon Apr 28 18:16:07 2008] [error] [client ::1] File does not exist: /Users/Uli/Sites/bcf48e15a059afcdc771d4515c080eb6
[Mon Apr 28 18:23:57 2008] [error] [client ::1] File does not exist: /Users/Uli/Sites/acd317c600b0501f257efb9dbe8ae875
[Mon Apr 28 18:24:51 2008] [error] [client ::1] File does not exist: /Users/Uli/Sites/7c4dd10ef771449a342328ba11040b91
[Mon Apr 28 18:25:43 2008] [notice] child pid 596 exit signal Segmentation fault (11)
[Mon Apr 28 19:23:11 2008] [notice] child pid 597 exit signal Segmentation fault (11)
[Mon Apr 28 19:23:14 2008] [notice] child pid 741 exit signal Segmentation fault (11)

In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#6 2008-04-28 17:52:56

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Debugging mode: blank page!

So, something is segfaulting. Either an apache child or a PHP process. Let’s try to find out which one:
If you have shell access to that server and assuming a command line PHP version is present, try running the main index.php file using the command php index.php and see if that throws an error.

Offline

#7 2008-04-28 17:55:49

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,316

Re: Debugging mode: blank page!

ruud wrote:

try running the main index.php file using the command php index.php

This is way too much expected ;] Can you break that down to single steps, please, if necessary?


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#8 2008-04-28 17:59:20

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: Debugging mode: blank page!

@uli

Have you seen this post

Offline

#9 2008-04-28 18:10:50

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,316

Re: Debugging mode: blank page!

variaas, no, I haven’t. But this is more than I can handle. Would you be so kind to point me to the passage that you think could be important for me?


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#10 2008-04-28 18:20:29

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,316

Re: Debugging mode: blank page!

Ruud, can I combine a path to the command line from any info I can grab from phpinfo()?


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#11 2008-04-28 18:29:40

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,316

Re: Debugging mode: blank page!

Alright, Apple’s Terminal-app is drag’n‘drop capable. So I could get any path. Which “main index.php” shall I grab?


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#12 2008-04-28 19:37:32

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Debugging mode: blank page!

In your terminal:

php /Users/Uli/Sites/txpdemo.dev/index.php

or

cd /Users/Uli/Sites/txpdemo.dev
php index.php

Offline

#13 2008-04-28 20:11:01

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,316

Re: Debugging mode: blank page!

Ruud, this gives

Notice: Undefined index:  SERVER_PROTOCOL in /Users/Uli/Sites/txpdemo.dev/textpattern/lib/txplib_misc.php on line 1622

Warning: Cannot modify header information - headers already sent by (output started at /Users/Uli/Sites/txpdemo.dev/textpattern/lib/txplib_misc.php:1622) in /Users/Uli/Sites/txpdemo.dev/textpattern/lib/txplib_misc.php on line 1625
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title>Untitled</title>
</head>
<body>
<p align="center" style="margin-top:4em">Database unavailable.</p>
<!-- Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2) -->
</body>
</html>

In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#14 2008-04-29 13:24:52

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,316

Re: Debugging mode: blank page!

I’m running backups quite regularly. Which part of my local installation seems to be concerned? Is ist possible, that the database got corrupted? If so, which table?
Or are my guesses completely wrong?


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#15 2008-04-29 17:33:26

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Debugging mode: blank page!

Can you try installing a separate fresh copy of TXP (different directory, using a different database table prefix) and see if the problem is reproducible.
If the problem doesn’t occur there, you could try to make both installs more similar, for example by installing the plugins you have in the other install, copying templates (which can be done by copying the corresponding tables from the malfunctioning TXP install), etc, up till the point where things begin to break.

Last edited by ruud (2008-04-29 17:34:08)

Offline

Board footer

Powered by FluxBB