Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2008-07-29 01:06:44
- shi
- Member
- Registered: 2005-12-09
- Posts: 34
Blank page after publishing an article
Hello everyone,
I get a blank page after publishing an article in live mode. The article IS published tho. I can see it in both online and in the article list. When I switch to Testing mode everything is fine, I can publish articles normally, except I can’t use some addon which I’ll mention below.
Live mode
Everything was fine till yesterday… I haven’t touched any of page templates or addons for 10 days. Website is updated daily by another person with a limited access to TXP admin interface. Yesterday he tried to publish some article and he got a blank page when he clicked on the [content/write] link in admin interface. I disabled the latest addon that I’ve installed 10 days ago (tru_tags) cause I thought it might causing a problem even tho everything was working fine past 10 days. After disabling it I could see the [content/write] page so I tried to publish a new article. I did so, but then I got another blank page… Article was published anyway, I could see it online.
Testing mode
I tried to switch to a Testing mode and it works almost fine, I can publish articles normally. Unfortunately when I enable tru_tags I do see the [content/write] page but I get a blank page after publishing an article…
I’ve searched the forum, tried to rename htaccess file, tried to log as another user, tried everything that came to my mind but still no luck…
Anyone have the idea what’s wrong with my site? I guess it have something to do with too much requests/addons/articles or something… I’m not a PHP/Apache expert I must say, so I would appreciate any help.
Thanks in advance.
Testing mode results:
<!— Runtime: 0,2315 —>
<!— Query time: 0,060192 —>
<!— Queries: 44 —>
<!— Memory: 4217Kb, end of textpattern() —>
High diagnostics: (Do I need to post any other info? Site url, debugging mode errors, etc… ?)
Textpattern верзија: 4.0.6 (r2805)
Последњи пут освежен: 2008-03-26 23:49:07/2008-03-26 23:59:57
Document root: /www/webvol1/em/1vrg15tqv2qwut3/mysite.co.yu/public_html
$path_to_site: /www/webvol1/em/1vrg15tqv2qwut3/mysite.co.yu/public_html
Textpattern путања: /www/webvol1/em/1vrg15tqv2qwut3/mysite.co.yu/public_html/textpattern
Permanent link mode: section_id_title
Temporary directory path: /home/FA07-21-03-02_kyqdj9ak6ce8t9bxtktx/mysite.co.yu/public_html/textpattern/tmp
Site URL: www.mysite.co.yu
PHP верзија: 5.2.5
GD Image Library: bundled (2.0.34 compatible); подржани формати: GIF, JPG, PNG.
Локално време сервера: 2008-07-29 02:30:28
MySQL: 5.0.45-log
Locale: en_GB.UTF-8
Сервер: Apache/1.3.37 (Unix) PHP/5.2.5 with Suhosin-Patch mod_ssl/2.8.28 OpenSSL/0.9.7e-p1
Apache верзија: Apache/1.3.37 (Unix) PHP/5.2.5 with Suhosin-Patch mod_ssl/2.8.28 OpenSSL/0.9.7e-p1
PHP Server API: apache
RFC 2616 headers:
Server OS: FreeBSD 6.2-RELEASE
Активни plugin-и: ob1_title-2.1, hak_article_image-0.6.3, glx_if-0.6.4m, Postmaster_library-0.1, Postmaster-0.3, zem_nth-0.1, ako_nav-1.0, hpw_admincss-0.1, zem_contact_reborn-4.0.3.19, hak_tinymce-0.7.4m, zem_contact_lang-4.0.3.6m, rss_admin_db_manager-4.3m, rss_suparchive-0.18, rss_live_archive-0.7, rss_live_search-0.7m, ied_hide_in_admin-0.1.6, rvm_css-0.3, rss_article_edit-0.1m, ras_if_article_image-4.1.0, asy_wondertag-0.5, lam_image_uploader-0.6c, lam_dynamic_image-0.1, smd_random_banner-0.4, smd_lib-0.32, wet_link-0.8
Pre-flight check:
------------------------
Неки Textpattern фајлови су измењени:
/lib/admin_config.php
------------------------
.htaccess фајл садржи:
------------------------
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
#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: /usr/local/share/mysql/charsets/
18 Tables: txp_hak_tinymce is latin1
PHP екстензије: session, Reflection/0.1, date/5.2.5, libxml, apache, bcmath, calendar, ctype, curl, dom/20031129, exif/1.4 $Id: exif.c,v 1.173.2.5.2.20 2007/06/10 20:12:45 iliaa Exp $, filter/0.9.5-dev, ftp, gd, gettext, hash/1.0, iconv, standard/5.2.5, json/1.2.1, mbstring, mcrypt, mysql/1.0, openssl, pcre, SimpleXML/0.1, posix, imap, SPL/0.2, PDO/1.0.4dev, tokenizer/0.1, xml, xmlreader/0.1, xmlwriter/0.1, zip/1.4.0, zlib/1.1, mysqli/0.1, tidy/2.0, pdo_mysql/1.0.2, soap
Apache модули: http_core, mod_so, mod_mmap_static, mod_vhost_alias, mod_env, mod_define, mod_log_config, mod_mime_magic, mod_mime, mod_negotiation, mod_status, mod_info, mod_include, mod_autoindex, mod_dir, mod_cgi, mod_asis, mod_imap, mod_actions, mod_speling, mod_userdir, mod_alias, mod_rewrite, mod_access, mod_auth, mod_auth_anon, mod_auth_db, mod_digest, mod_proxy, mod_cern_meta, mod_expires, mod_headers, mod_usertrack, mod_log_forensic, mod_unique_id, mod_setenvif, mod_ssl, mod_security, mod_php5
/../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 (c1fd9bea4f1dc1948c9c5312184cc2dd)
/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)
Last edited by shi (2008-07-29 01:26:56)
Offline
Re: Blank page after publishing an article
Try putting this in a .htaccess file within the textpattern directory:
<IfModule mod_security.c>
SecFilterScanPOST Off
</IfModule>
If that doesn’t help, have a look at the webserver error/access logs to check if it shows anything interesting.
Offline
#3 2008-07-29 13:04:42
- shi
- Member
- Registered: 2005-12-09
- Posts: 34
Re: Blank page after publishing an article
I’ve changed .htaccess file (in html root) and there’s no difference…
(I wasn’t sure if I need to edit .htaccess file in html root, or in textpattern directory. I’ve checked and there’s no .htaccess file in textpattern directory so i made one with the code you gave me and still no luck…)
About the webserver error/access logs.. I dont have a direct ftp access to those files, so I asked my hosting provider to e-mail me logs for past 3 days… I’ll reply as soon as I get them.
edit:
It’s getting worse… now I can’t edit any previously posted article in both live and testing mode. I get a blank page again. :(
Last edited by shi (2008-07-29 14:01:57)
Offline
Re: Blank page after publishing an article
Try disabling admin-side plugins in the preferences. If that helps it’s a plugin that causes problems either due to a programming error or due to the fact that loading a plugin increases the memory usage to above a limit set by your webhost.
Offline
#5 2008-07-29 14:51:37
- shi
- Member
- Registered: 2005-12-09
- Posts: 34
Re: Blank page after publishing an article
Thanks a lot for your help Ruud, I really appreciate it! It works now! The problem was a memory usage as you’ve said. I got a mail with a server log and I saw that a limit was 16MB, so I added php_value memory_limit 32M in .htaccess file.
- [error] PHP Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 8601 bytes) in /www/webvol1/em/1vrg15tqv2qwut3/mysite.co.yu/public_html/textpattern/lib/txplib_db.php on line 270
Now I’m a bit consirned about what will happen in the future… Is there a way to find out which plugin is using the most memory? Is there a possibility that the memory usage will increase if I don’t install any other addons? Site have a loads of articles though… About 30 new articles each day, but I guess that doesn’t affect a memory usage, only a database. Do I need to worry about it at all? Again, I’m a PHP/Apache n00b. :)
edit:
baaah, I sound so greedy… you don’t need to answer this. I’m just talking to myself :) You’ve done enough already, thanks again!
Last edited by shi (2008-07-29 14:59:20)
Offline
Re: Blank page after publishing an article
- TXP version (newer versions may require more/less memory)
- PHP version (I’ve seen an increase in memory usage when upgrading PHP itself)
- What you do in TXP (for example: creating a thumbnail for a large image takes a lot of memory)
- Server setup (probably a difference between mod_php, CGI+PHP and FCGI+PHP).
The amount of articles doesn’t matter. The amount of sections and categories will influence the memory usage, but not a lot (more categories/sections means more generated HTML code on various tabs). On my own server (using FCGI), have the memory limit set to only 8MB. No problem.
Offline
#7 2008-07-29 17:25:02
- shi
- Member
- Registered: 2005-12-09
- Posts: 34
Re: Blank page after publishing an article
Danke! :)
Offline
Offline
#9 2008-07-30 15:51:15
- shi
- Member
- Registered: 2005-12-09
- Posts: 34
Re: Blank page after publishing an article
Thanks Gocom, I’ll keep that in mind.
Offline
Pages: 1