Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-12-10 03:17:24

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Write tab, 4.0.7

Late to the release party, I’m experiencing something odd with 4.0.7.

In the Write tab, More, Textile Help, Advanced Options and Recent Articles don’t do anything. This is in Firefox 3.0.4 and I can confirm the same issue with Opera 9.5.0. Instead of the links opening the drop down, the url get’s appended with an anchor, like #more.

This is the first site I’ve updated to 4.0.7, I used the latest zip and copied over my old install.

Diagnostics:

Textpattern version: 4.0.7 (r3033)
Last Update: 2008-12-07 23:38:48/2008-11-28 16:04:22
Document root: /home/hcgtv/txpun.com
$path_to_site: /home/hcgtv/txpun.com
Textpattern path: /home/hcgtv/txpun.com/textpattern
Permanent link mode: section_title
Temporary directory path: /home/hcgtv/txpun.com/textpattern/tmp
Site URL: txpun.com
PHP version: 5.2.6
GD Image Library: version bundled (2.0.34 compatible), supported formats: GIF, JPG, PNG
Server Local Time: 2008-12-09 19:03:23
MySQL: 5.0.45-log
Locale: C
Server: Apache/2.2.9 (Unix) PHP/4.4.9 mod_ssl/2.2.9 OpenSSL/0.9.8c mod_fastcgi/2.4.6
PHP Server API: cgi-fcgi
RFC 2616 headers: 0
Server OS: Linux 2.6.24.5-xeon-aufs20081006-grsec
Active plugins: hcg_templates-0.3, SimplePie Plugin for Textpattern-1.2m

Pre-flight check: 
------------------------
/home/hcgtv/txpun.com/textpattern/setup/ still exists
Old placeholder file is in the way: /home/hcgtv/txpun.com/feeds
Some Textpattern files have been modified: 
	/include/txp_log.php
------------------------

.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]

	RewriteCond %{REQUEST_URI} !=/favicon.ico
	RewriteRule ^(.*) index.php

	RewriteCond %{HTTP:Authorization}  !^$
	RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

#php_value register_globals 0

------------------------

Charset (default/config): latin1/latin1
character_set_client: latin1
character_set_connection: latin1
character_set_database: utf8
character_set_filesystem: binary
character_set_results: latin1
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /data/mysql/zecher/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, SQLite/2.0-dev, standard/5.2.6, Reflection/0.1, pspell, posix, pdo_sqlite/1.0.1, pdo_mysql/1.0.2, mysqli/0.1, mysql/1.0, mhash, mcrypt, mbstring, json/1.2.1, imap, iconv, hash/1.0, gettext, gd, ftp, filter/0.11.0, exif/1.4 $Id: exif.c,v 1.173.2.5.2.25 2008/03/12 17:33:14 iliaa Exp $, date/5.2.6, curl, ctype, calendar, zlib/1.1, openssl, cgi-fcgi, Zend Optimizer

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

/../index.php: r2885 (07df52cf240f35ed1db621304d26f680)
/css.php: r2772 (4d5b1fc3589c3a175a6d100042073a20)
/include/txp_admin.php: r3013 (39db1c3021c33ad8675c3e40d2ce0fe6)
/include/txp_article.php: r3033 (37bb535e252c4796eeeba5be20a0e226)
/include/txp_auth.php: r2856 (9291e4ebbe87921a765209cbc9ee6c66)
/include/txp_category.php: r2947 (b34b82edd9130528c129301b671a61d2)
/include/txp_css.php: r2836 (e39c717cc7fb5afda81b520644c5bed8)
/include/txp_diag.php: r2930 (b3f713f94e068aa4f891bbd4ceafe6e2)
/include/txp_discuss.php: r2994 (5bac3c8be75d55ee791346b8245fc56f)
/include/txp_file.php: r3016 (28b3134a0652c2b9f7f5018fd2be3340)
/include/txp_form.php: r2994 (433d1d1087afe4880c93ddd1afd44b1e)
/include/txp_image.php: r2994 (49093961b5b10be54fc45cd8d090741c)
/include/txp_import.php: r2812 (ddf61c42f9dace30d9d2bdb976c2762f)
/include/txp_link.php: r2994 (1395446475dded75033c01857ab489c2)
/include/txp_list.php: r3033 (1106388ce132fa7c6161c504d8ed4a73)
/include/txp_log.php: r3003 (1fb069f2fb7f797dc70d016922943561)
/include/txp_page.php: r2994 (5feb4fb3940c24839d2fe743f46388c4)
/include/txp_plugin.php: r2948 (027bfb3ea837984785446900f515aacb)
/include/txp_prefs.php: r2965 (05335e08e4d7584cfd38b7af7e5a9d1d)
/include/txp_preview.php: r1238 (64de77f275a336d581425b3f05427745)
/include/txp_section.php: r2759 (97d7221ead97497644ebeeeaee460377)
/include/txp_tag.php: r2868 (c16be34198f79bcf80fa7cd1b463e4de)
/index.php: r3025 (a052be4e3877768b80fc5d2a67352276)
/lib/IXRClass.php: r2932 (292f64a316088dd54e22ebbe0310bed7)
/lib/admin_config.php: r2812 (37fc7e59624a431ebe60085c6376eb2e)
/lib/class.thumb.php: r2859 (e0cc384ab8121c4a95b9c9325df3a15a)
/lib/classTextile.php: r2812 (28cb53acccd418e6a0f832eb08002069)
/lib/constants.php: r3033 (0c8cdf4ba7629a31391076b9624842a9)
/lib/taglib.php: r2868 (7748936c0eb64f55fd7659a47697c74b)
/lib/txplib_admin.php: r2726 (dfce8f698c57bfbef8511690fc04fc55)
/lib/txplib_db.php: r3033 (5c764a86158d55bf72e58ec55cfdd84a)
/lib/txplib_forms.php: r3033 (a11d5b09eab337faf01f452544eb9b25)
/lib/txplib_head.php: r3004 (a3a5ccd14665ee25ea73e7646667c85a)
/lib/txplib_html.php: r2981 (64fe6808d2fea1c5d966b143a17d1914)
/lib/txplib_misc.php: r3017 (bdd8d8235c37422ca0db00febd2a6e49)
/lib/txplib_update.php: r2812 (2d84e29d2749f59e4f869956daf34f1c)
/lib/txplib_wrapper.php: r2931 (aba033174425e5ceac840557c594235d)
/publish.php: r3033 (5f3902f96e84ff52af98f77fccf578db)
/publish/atom.php: r3033 (813650da027604848c6ea5678148fdaa)
/publish/comment.php: r3011 (8cd141292a74734ac3e0ced9565163e7)
/publish/log.php: r2937 (b18f84fc40b5b1c4cc9df04dd6065369)
/publish/rss.php: r3033 (2c5051c53fb54d2e98b7b70480387122)
/publish/search.php: r2812 (724a9876809efe461ed1043ef1202258)
/publish/taghandlers.php: r3033 (e51dc2b36fa5242848d59164c99d79fb)
/../rpc/index.php: r2998 (fe85476abd66e78243a28145f51f6c3c)
/../rpc/TXP_RPCServer.php: r2998 (cc21bac9cae7c6de1d7b219e7290196c)
/update/_to_1.0.0.php: r711 (a8ed15439927effd9410d398bf070c32)
/update/_to_4.0.2.php: r711 (535e452b8d1071d005e2c1d0b199c0b3)
/update/_to_4.0.3.php: r711 (f5506cfd0fbc3ad4bd9a9b2299468775)
/update/_to_4.0.4.php: r711 (4d867b42ee87a7f11d2bff3a8e91bed0)
/update/_to_4.0.5.php: r2894 (b39e404b5120ad687a4a07a1156d6352)
/update/_to_4.0.6.php: r2464 (7e5ae73eb64c24438918697089a1f321)
/update/_to_4.0.7.php: r3014 (24b32428e0385a021e8815940190980d)
/update/_update.php: r3024 (f950d225bf3d8cf6742ae0054dbce8bf)

Offline

#2 2008-12-10 03:23:22

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Write tab, 4.0.7

Try to:

  • Downgrade or upgrade jQuery version (jQuery has some issues. I love the library, but at same time I hate it’s bugs from bottom of my heart :)).
  • Empty your cache completely.

Offline

#3 2008-12-10 03:39:22

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Write tab, 4.0.7

  • I downgraded to the jquery in 4.0.6, version 1.2.2.
  • Emptied my Firefox cache.

Same thing happens, I can also confirm that it happens on the Presentation tab, Tag Builder.

I upgraded a 4.0.6 install in XAMPP to 4.0.7, everything works fine in Firefox, so it’s not my browser.

Anybody else on DreamHost running 4.0.7? I don’t have Mod_security on, I know this causes issues sometimes.

Offline

#4 2008-12-10 06:59:13

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,328
Website Mastodon

Re: Write tab, 4.0.7

Bert, please perform these steps:

  1. Log in to http://yourdomain/textpattern/
  2. Browse to http://yourdomain/textpattern/textpattern.js
  3. Locate a snippet starting with “function toggleDisplay(id)”
  4. Post the next three lines of code
  5. Optional: Install Firebug with Firefox, enable script debugging there and watch out for any JavaScript errors which show up in FireBug’s console while you load the admin side and toggle the “more” etc. panes.

Offline

#5 2008-12-10 11:44:22

trenc
Plugin Author
From: Malmö
Registered: 2008-02-27
Posts: 572
Website GitHub

Re: Write tab, 4.0.7

I can confirm this bug/behavior with Konqueror (lamp on localhost and on yablo.de).
But it works with Iceweasel (Firefox) 3.0.4.

Weird!

Last edited by trenc (2008-12-10 11:45:31)

Offline

#6 2008-12-10 11:49:57

trenc
Plugin Author
From: Malmö
Registered: 2008-02-27
Posts: 572
Website GitHub

Re: Write tab, 4.0.7

btw.

function toggleDisplay(id)
{
	var obj = $('#' + id);
	if (obj) obj.toggle();
}

Offline

#7 2008-12-10 11:56:53

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,328
Website Mastodon

Re: Write tab, 4.0.7

Do jQuery-enhanced apps work on Konqueror in general? It is not listed on their site as a truly supported browser.

Offline

#8 2008-12-10 12:06:53

trenc
Plugin Author
From: Malmö
Registered: 2008-02-27
Posts: 572
Website GitHub

Re: Write tab, 4.0.7

Most of them, some effects don’t work.

Sadly I can’t test the jquery toggle on their api-site. It shows me no demonstration, which I could test. Firefox/Iceweasel works.

I’ve noticed that if the dropdown is open at the page reload, the toggle will work (in and out), but only when it is closed first the the toggle will not.

Offline

#9 2008-12-10 12:09:45

trenc
Plugin Author
From: Malmö
Registered: 2008-02-27
Posts: 572
Website GitHub

Re: Write tab, 4.0.7

The following little script will work on Konqueror — tested locally:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
                    "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <script src="http://code.jquery.com/jquery-latest.js"></script>
  <script>
  $(document).ready(function(){
    $("button").click(function () {
      $("p").toggle();
    });
  });
  </script>
</head>
<body>
  <button>Toggle</button>
  <p>Hello</p>
  <p style="display: none">Good Bye</p>
</body>
</html>

Offline

#10 2008-12-10 12:12:25

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,328
Website Mastodon

Re: Write tab, 4.0.7

trenc wrote:

I’ve noticed that if the dropdown is open at the page reload, the toggle will work (in and out), but only when it is closed first the the toggle will not.

Thanks, this is a valuable hint.

Offline

#11 2008-12-10 12:13:49

trenc
Plugin Author
From: Malmö
Registered: 2008-02-27
Posts: 572
Website GitHub

Re: Write tab, 4.0.7

This works too:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
                    "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <script src="http://code.jquery.com/jquery-latest.js"></script>
  <script>
  function toggleDisplay(id)
  {
        var obj = $('#' + id);
        if (obj) obj.toggle();
  }
  </script>
</head>
<body>
  <button onclick="javascript:toggleDisplay('test');">Toggle</button>
  <p>Hello</p>
  <p id="test" style="display: none">Good Bye</p>
</body>
</html>

Offline

#12 2008-12-10 12:17:30

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,328
Website Mastodon

Re: Write tab, 4.0.7

Yes, it’s quite obvious: Some browsers won’t toggle the value of display when the attribute isn’t present at first.

Last edited by wet (2008-12-10 12:20:05)

Offline

Board footer

Powered by FluxBB