Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
"Can't open page" "Server busy" or "Dropped connection" error
Please forgive me if this is covered somewhere in the FAQs or if it’s mentioned in another thread. I searched, and I couldn’t find anything.
Sometimes when I mistype a <txp:
tag, or use a malformed <txp:if_
statement, the page will completely fail to load, and Safari will return this error*:
Safari can’t open the page “http://example.dev/link…” because the server unexpectedly dropped the connection, which sometimes occurs when the server is busy. You might be able to open the page later.
Often, I can find the error by going through the txp logic in each page and form involved, but sometimes this takes a while. With no debugging comments to follow when I get this error, it can be hard to track down the error.
What’s the best way to troubleshoot this problem?
Thanks, all!
- Firefox, on the other hand, dislays a blank page with no source code, and Lynx says “Unexpected network read error; connection aborted. Unable to access document.”
Offline
#2 2008-08-21 01:02:44
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: "Can't open page" "Server busy" or "Dropped connection" error
As I’m testing pages on FF I don’t know the Safari error you get. Here are — forgive me ;) — two FAQ pages regarding template problems. Hope they can help.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: "Can't open page" "Server busy" or "Dropped connection" error
Thanks, Uli!
I tested it in Firefox too, but it doesn’t display anything. When I select View > Page Source, Firefox doesn’t show any source code either.
Thanks for the FAQ links— they affirm that I’ve been following the right steps. I’m already running Textpattern in debugging mode, which has been helpful in many cases; but in this case, when nothing loads, I can’t trace the txp logic in the debugging comments.
At this stage, all of my sections are using the same “page,” and they all work fine but one: to clarify, when I navigate to any section, the page loads— with one exception. Navigating to that section produces the behavior described. If there’s no other way to trace what Textpattern is doing with that url request, I guess I’ll keep poring over the page template until I see something amiss, but I’m not sure why it would work for requests of all other sections.
Offline
Re: "Can't open page" "Server busy" or "Dropped connection" error
I was wrong— I’ve isolated the parts of my default page that aren’t working, but I can’t tell why. Here’s the page template that seems to be locking up, stripped to essentials:
<!--
*************************************
Textpattern displays form content!
*************************************
-->
<txp:output_form form="_form-1" />
<txp:output_form form="_form-2" />
<div id="content">
<txp:if_section name="default">
<txp:if_search>
<!--
*************************************
Textpattern displays search results!
*************************************
-->
<txp:else />
<!--
*************************************
Textpattern displays homepage content!
*************************************
-->
</txp:if_search>
<txp:else />
<txp:if_article_list>
<!--
*************************************
Textpattern displays this content for some sections, but not others!
*************************************
-->
<txp:article limit="1" status="sticky" />
<div id="section-info">
<h3><txp:site_name /> <txp:section /></h3>
<ul>
<txp:asy_wondertag><txp:article_custom form="_list" limit="99" section="<txp:section />" sort="Posted desc" /></txp:asy_wondertag>
</ul>
</div> <txp:hide>end #section-info</txp:hide>
<txp:else />
<!--
*************************************
Textpattern won't display this at all!
*************************************
-->
<txp:article />
<div id="section-info">
<h3><txp:site_name /> <txp:section /></h3>
<ul>
<txp:asy_wondertag><txp:article_custom form="_list" limit="99" section="<txp:section />" sort="Posted desc" /></txp:asy_wondertag>
</ul>
</div> <txp:hide>end #section-info</txp:hide>
</txp:if_article_list>
</txp:if_section>
<!--
*************************************
Textpattern displays more form content!
*************************************
-->
</div> <txp:hide>end #content</txp:hide>
<txp:output_form form="_site-info" />
Can you see any glaring errors?
Offline
Re: "Can't open page" "Server busy" or "Dropped connection" error
If you look at your webserver error and access logs (not the logs inside TXP), do requests that end in such a blank page show up on those error/access logs?
Also, can you post your TXP diagnostics?
Offline
Re: "Can't open page" "Server busy" or "Dropped connection" error
This is the low detail info from my Diagnostics tab— let me know if more is needed:
Textpattern version: 4.0.6 (r2805)
Last Update: 2008-06-18 23:49:00/2008-08-14 20:57:25
Document root: /Users/username/sites/example.dev (/Users/username/Sites/example.dev)
$path_to_site: /Users/username/Sites/example.dev
Textpattern path: /Users/username/Sites/example.dev/textpattern
Permanent link mode: section_id_title
upload_tmp_dir: /Applications/MAMP/tmp/php
Temporary directory path: /Users/username/Sites/example.dev/textpattern/tmp
Site URL: example.dev
PHP version: 5.2.5
GD Image Library: version bundled (2.0.34 compatible), supported formats: GIF, JPG, PNG
Server Local Time: 2008-08-21 09:34:06
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.11.1
Active plugins: mem_moderation-0.4.10, mem_admin_parse-0.2.3, cbs_navigation_menu-0.4, chh_related_articles-0.41, ign_password_protect-0.5b4, lam_accordion_section-0.1, mem_moderation_article-0.4.10, mem_form-0.4.1, mem_akismet-0.1, mem_self_register-0.9.1, pap_contact_cleaner-0.1, rah_metas-0.9.2., rss_admin_db_manager-4.3m, rss_auto_excerpt-0.5, rss_if_search_results-0.1, rsx_search_engine_meta-1.2, tcm_rating-0.6b, tru_tags-3.1, zem_contact_lang-4.0.3.6, zem_contact_reborn-4.0.3.20, glz_custom_fields-1.1.3, sed_section_fields-0.3.138, cnk_versioning-0.1.6m, rss_unlimited_categories-0.7.4, sed_plugin_library-0.4.154, asy_wondertag-0.5
.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
RewriteCond %{HTTP:Authorization} !^$
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
#php_value register_globals 0
------------------------
I have awstats on the webserver, but I don’t think I have error logs on my dev server, which uses MAMP. I’ll report back if I have more information. Thanks again for your help!
Offline
#7 2008-08-21 14:29:03
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: "Can't open page" "Server busy" or "Dropped connection" error
johnstephens wrote:
I don’t think I have error logs on my dev server, which uses MAMP.
You use MAMP? Just try one thing: Turn off “Zend Optimizer” and see if that helps.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: "Can't open page" "Server busy" or "Dropped connection" error
uli wrote:
You use MAMP? Just try one thing: Turn off “Zend Optimizer” and see if that helps.
Thanks! Immediately I was able to load a page annotating the tag parsing error— and I think I pinpointed the problem.
Thanks again Uli! I’m very grateful for your help.
So, What does “Zend Optimizer” do? Is this something that I would ever need?
Offline
#9 2008-08-21 17:13:48
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: "Can't open page" "Server busy" or "Dropped connection" error
Glad my previous problems could help someone :)
johnstephens wrote:
So, What does “Zend Optimizer” do?
Can only send you to a Wiki article on PHP accelerators
It’s probably included in MAMP to provide a development environment to be fine-tuned the closest as possible to final server environments.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: "Can't open page" "Server busy" or "Dropped connection" error
uli wrote:
Glad my previous problems could help someone :)
It’s like gazing into my own future. ;)
Offline