Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-11-07 04:15:37

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

TXP 4.2 bug

Just stumbled across a bug in 4.2. Visiting the Articles tab and searching for articles under the section “news” brings me 4 articles, all except one is placed in the “Announcements” category.

Select the 4th article, and then with choose “Change category1” from the select drop down, choose “Announcements” from the second select drop down and press go.

The article is deleted! The same holds for articles when doing the reverse – choosing the change the category1 from “Announcements” to “”.

Running Classic.

Offline

#2 2010-11-07 19:04:40

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

Re: TXP 4.2 bug

I can’t reproduce this, but I don’t have a section called news or a category called announcements. I did search for a section I did have and did set/unset a category1 for one of the matching articles, but no problem there.

What are the minimum steps required to reproduce this and does it matter which category/section is involved?

Offline

#3 2010-11-08 02:49:17

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: TXP 4.2 bug

Hi Ruud, I did not feel like testing it any more because its on a live site! The steps I followed are outlined above and I subsequently tested it again with another article that I created specifically to see if it happened again – and yes, that article got deleted too.

Offline

#4 2010-11-08 08:54:14

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

Re: TXP 4.2 bug

Just like Ruud, I can’t reproduce the behaviour.

list_multi_edit() function runs deletion only when select[name=edit_method] has the ‘delete’ option selected, no matter what is modified.

Jonathan, can you post your site’s high diagnostics? It could be a plugin. Also would be interesting to see what the resulting markup on the page is after the multiedit dropdown’s JavaScript. Maybe for some reason the delete option is sent.

Offline

#5 2010-11-08 16:06:46

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: TXP 4.2 bug

Just did another test and the same thing happened – the article was deleted after selecting to set the category1 to an unset value.

Here is the high diagnostics – note its a multi-site install so there is an error message with the index.php. Also there is one custom plugin that goes with the mem_moderation plugin.

Textpattern version: 4.2.0 (r3275)
Last Update: 2009-09-03 11:59:53/2009-09-16 07:40:48
Document root: /users/home/jstubbs/domains/protennisjobs.com/web/public
$path_to_site: /users/home/jstubbs/domains/protennisjobs.com/web/public
Textpattern path: /users/home/jstubbs/web/textpattern/textpattern
Permanent link mode: section_id_title
upload_tmp_dir: /users/home/jstubbs/domains/protennisjobs.com/tmp
Temporary directory path: /users/home/jstubbs/domains/protennisjobs.com/web/public/tmp
Site URL: protennisjobs.com
PHP version: 5.2.12
GD Image Library: bundled (2.0.34 compatible); supported formats: GIF, JPG, PNG.
Server TZ: GMT
Server Local Time: 2010-11-08 15:41:45
DST enabled?: 0
Automatically adjust DST setting?: 0
Time Zone: Europe/Madrid (3600)
MySQL: 5.0.90-log
Locale: en_GB.UTF-8
Server: Apache
PHP Server API: cgi-fcgi
RFC 2616 headers: 0
Server OS: SunOS 5.11
Active plugins: zem_contact_reborn-4.0.3.20, zem_contact_lang-4.0.3.6, csb_if_newer_than-1.0, soo_if_frontpage-0.1.2, smd_query-0.21, rah_metas-1.0.5, mem_moderation-0.7.4, ign_password_protect-0.5b7m, mem_moderation_article-0.7.6, mem_admin_parse-0.2.1, upm_image-0.6.2, upm_img_popper-1.3.7, rvm_css-0.3, mem_moderation_image-0.7.6, mem_snoooz-0.2, glz_custom_fields-1.2.4, arc_twitter-1.0.1beta, rvm_plugin_diff-0.2, mem_form-0.7, smd_where_used-0.2, wet_quicklink-0.5, wet_peex-0.4, msd_admin_datepicker-0.5, wet_haystack-0.6
Admin-side theme: classic 4.2.0

Pre-flight check: 
------------------------
Some Textpattern files have been modified: 
	/users/home/jstubbs/web/textpattern/textpattern/index.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): utf8/utf8
character_set_client: utf8
character_set_connection: utf8
character_set_database: utf8
character_set_filesystem: binary
character_set_results: utf8
character_set_server: utf8
character_set_system: utf8
character_sets_dir: /usr/local/share/mysql/charsets/
19 Tables: OK

10 Custom Fields: custom_1, custom_2, custom_3, custom_4, custom_5, custom_6, custom_7, custom_8, custom_9, custom_10 (10)

PHP extensions: date/5.2.12, libxml, openssl, pcre, ctype, filter/0.11.0, hash/1.0, Reflection/0.1, session, SimpleXML/0.1, SPL/0.2, standard/5.2.12, tokenizer/0.1, xml, xmlreader/0.1, xmlwriter/0.1, cgi-fcgi, curl, gd, iconv, json/1.2.1, mbstring, mcrypt, mysql/1.0, mysqli/0.1, PDO/1.0.4dev, suhosin/0.9.27, zlib/1.1, ionCube Loader, Zend Optimizer

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

/users/home/jstubbs/web/textpattern/index.php: 
	r3189 (8becf5ea8d9ced7d05b2433dfbabf868)
/users/home/jstubbs/web/textpattern/css.php: 
	r3189 (7a0cc56c9dc585e56aab80bc0fb22c53)
/users/home/jstubbs/web/textpattern/textpattern/css.php: 
	r3189 (459137eeb00bb07136001528ce724192)
/users/home/jstubbs/web/textpattern/textpattern/include/txp_admin.php: 
	r3203 (26c4f327450f66618fe82b06fb8b9e70)
/users/home/jstubbs/web/textpattern/textpattern/include/txp_article.php: 
	r3246 (9211f37e8ba873c78b0c46186896d6b2)
/users/home/jstubbs/web/textpattern/textpattern/include/txp_auth.php: 
	r3250 (6be154f05fca4e83c4a4947c8635afd7)
/users/home/jstubbs/web/textpattern/textpattern/include/txp_category.php: 
	r3203 (2350c33b6acc663b56ba982bc479c920)
/users/home/jstubbs/web/textpattern/textpattern/include/txp_css.php: 
	r3118 (bfd945a0b268c60f7b71b6535c06154e)
/users/home/jstubbs/web/textpattern/textpattern/include/txp_diag.php: 
	r3267 (c03f4b7e28c2f8e5050924b6caf2f61f)
/users/home/jstubbs/web/textpattern/textpattern/include/txp_discuss.php: 
	r3185 (9b08de9e4f2df7160105ff218134ec67)
/users/home/jstubbs/web/textpattern/textpattern/include/txp_file.php: 
	r3200 (dc26e8f4cbb1821c466c14926c8a10ca)
/users/home/jstubbs/web/textpattern/textpattern/include/txp_form.php: 
	r3260 (6ad789075a6a1811d027f5e4043b845d)
/users/home/jstubbs/web/textpattern/textpattern/include/txp_image.php: 
	r3267 (814b6421cb2e2df073d0d6bf05c252bf)
/users/home/jstubbs/web/textpattern/textpattern/include/txp_import.php: 
	r3203 (fb18d629321a93472674dbd4abbfc63c)
/users/home/jstubbs/web/textpattern/textpattern/include/txp_link.php: 
	r3203 (7dee2f899aa22712e4f5f1005c6853b0)
/users/home/jstubbs/web/textpattern/textpattern/include/txp_list.php: 
	r3203 (2dd80b98cb76b0532133f6d7c2bcccb9)
/users/home/jstubbs/web/textpattern/textpattern/include/txp_log.php: 
	r3203 (a97af8e5ed62605ab0111e45266300cb)
/users/home/jstubbs/web/textpattern/textpattern/include/txp_page.php: 
	r3260 (ef00267f34445a33ce0f2e453c3a20db)
/users/home/jstubbs/web/textpattern/textpattern/include/txp_plugin.php: 
	r3203 (8c1691e89ccfc8a8f9160e66efce2b09)
/users/home/jstubbs/web/textpattern/textpattern/include/txp_prefs.php: 
	r3235 (9833b1a7cbd01def4ceb40f8cdf01a3b)
/users/home/jstubbs/web/textpattern/textpattern/include/txp_preview.php: 
	r1238 (cc7d08574508c8ec1e4c5281d534d6e3)
/users/home/jstubbs/web/textpattern/textpattern/include/txp_section.php: 
	r3203 (1c7eec911a015b72e42d5cea903be426)
/users/home/jstubbs/web/textpattern/textpattern/include/txp_tag.php: 
	r3195 (280f0fd2e6f50e6a0f13490ea5dfc1f4)
/users/home/jstubbs/web/textpattern/textpattern/index.php: 
	r3275 (e0a797e6bed1e119fc77e0236d2595eb)
/users/home/jstubbs/web/textpattern/textpattern/jquery.js: 
	unknown (bb381e2d19d8eace86b34d20759491a5)
/users/home/jstubbs/web/textpattern/textpattern/lib/IXRClass.php: 
	r2932 (6c533bb271087338aa19ca0b78b1810f)
/users/home/jstubbs/web/textpattern/textpattern/lib/admin_config.php: 
	r3202 (524b829d7c73e5db26415633e799e350)
/users/home/jstubbs/web/textpattern/textpattern/lib/class.thumb.php: 
	r3107 (0e3f7b9da4b0c77f9b75263142598902)
/users/home/jstubbs/web/textpattern/textpattern/lib/classTextile.php: 
	r2812 (b3e4cd9bd5fb469fabdebb2c0376f7e7)
/users/home/jstubbs/web/textpattern/textpattern/lib/constants.php: 
	r3133 (b296756aedaf98b6f9420359dd07abdb)
/users/home/jstubbs/web/textpattern/textpattern/lib/taglib.php: 
	r2868 (a0662fa399fb16e837e8852f044dade9)
/users/home/jstubbs/web/textpattern/textpattern/lib/txplib_admin.php: 
	r3047 (54de3f807984122ebe9b8b955e5189f4)
/users/home/jstubbs/web/textpattern/textpattern/lib/txplib_db.php: 
	r3250 (c29e316100ae6ed42d6ec51506388b5f)
/users/home/jstubbs/web/textpattern/textpattern/lib/txplib_forms.php: 
	r3256 (2623d94099735edc0e7a51309c26665d)
/users/home/jstubbs/web/textpattern/textpattern/lib/txplib_head.php: 
	r3265 (4492de4935f8352357f0809d9d89516f)
/users/home/jstubbs/web/textpattern/textpattern/lib/txplib_html.php: 
	r3255 (adb712630ad3bbe59c5f716befa33f0a)
/users/home/jstubbs/web/textpattern/textpattern/lib/txplib_misc.php: 
	r3271 (68d443f0f20acec5e86857a823c2b4e2)
/users/home/jstubbs/web/textpattern/textpattern/lib/txplib_theme.php: 
	r3269 (83bcbeffa883bed5f0af951dda7be2fb)
/users/home/jstubbs/web/textpattern/textpattern/lib/txplib_update.php: 
	r2812 (5e6821f06aeafe50b54e5a273423384f)
/users/home/jstubbs/web/textpattern/textpattern/lib/txplib_wrapper.php: 
	r2931 (1c1b260a13c67657f1678d72559583bc)
/users/home/jstubbs/web/textpattern/textpattern/publish.php: 
	r3258 (bc931a3406370c1ea4139ef957e95e38)
/users/home/jstubbs/web/textpattern/textpattern/publish/atom.php: 
	r3029 (f8cc6dbfb5a5f2b39ec480589b2d59c3)
/users/home/jstubbs/web/textpattern/textpattern/publish/comment.php: 
	r3266 (815df18aa4d451246ee70dd0502a8484)
/users/home/jstubbs/web/textpattern/textpattern/publish/log.php: 
	r3247 (1c047309f6f13883b29a943d1cddec3a)
/users/home/jstubbs/web/textpattern/textpattern/publish/rss.php: 
	r3029 (c39570953c1bd8347e456d750317b815)
/users/home/jstubbs/web/textpattern/textpattern/publish/search.php: 
	r2812 (29a315e2435b73fe3d3a4d83fe84ba19)
/users/home/jstubbs/web/textpattern/textpattern/publish/taghandlers.php: 
	r3256 (a40dce2989737477b1147d2104bba326)
/users/home/jstubbs/web/textpattern/rpc/index.php: 
	r2998 (682e18cb9bdd6e9442a9ac23db1a591f)
/users/home/jstubbs/web/textpattern/rpc/TXP_RPCServer.php: 
	r3250 (84ff888bf577670c897fdc27ad580c0f)
/users/home/jstubbs/web/textpattern/textpattern/theme/classic/classic.php: 
	r3191 (722c6c7f2c8dbfee5c6cede0af2cd689)
/users/home/jstubbs/web/textpattern/textpattern/update/_to_1.0.0.php: 
	r3047 (cbd20d275bf74184b1112569c2e77f76)
/users/home/jstubbs/web/textpattern/textpattern/update/_to_4.0.2.php: 
	r3047 (4c9f8cd5c16bf19ff191ab35f0354e0f)
/users/home/jstubbs/web/textpattern/textpattern/update/_to_4.0.3.php: 
	r3047 (6a4af33a23caf950c05faca0e8b4c93b)
/users/home/jstubbs/web/textpattern/textpattern/update/_to_4.0.4.php: 
	r3047 (b235e2a27a6e79652ef078f62f73eb21)
/users/home/jstubbs/web/textpattern/textpattern/update/_to_4.0.5.php: 
	r2894 (d17a02f48b79dbe6b3b0cf6eb779aadb)
/users/home/jstubbs/web/textpattern/textpattern/update/_to_4.0.6.php: 
	r3047 (4d7b21635fbf46058cc539a0eec00561)
/users/home/jstubbs/web/textpattern/textpattern/update/_to_4.0.7.php: 
	r3014 (e8ba7dc2892b81ce89b62775e2f5ea17)
/users/home/jstubbs/web/textpattern/textpattern/update/_to_4.0.8.php: 
	r3057 (d699021db8e7c9f7d32f3ad3631caebc)
/users/home/jstubbs/web/textpattern/textpattern/update/_to_4.2.0.php: 
	r3233 (aec6e4aafa98dbafe75506efd7f85816)
/users/home/jstubbs/web/textpattern/textpattern/update/_update.php: 
	r3275 (e9085d568d49ff7910ffd4eb49bbe293)

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

Last edited by jstubbs (2010-11-08 16:07:04)

Offline

Board footer

Powered by FluxBB