Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2018-05-20 21:54:16

Saldacenkaw
Member
Registered: 2006-12-28
Posts: 30

Got 1 in html when txp:article is empty (TXP 4.7)

Hi there,
Just start to use TXP 4.7 and have some interesting issue. I have two txp:article tags in default page.

<txp:article listform="preview" limit="3" status="sticky" />
<txp:article listform="preview" searchform="preview" limit="5" status="live" searchsticky="1" />

When sticky or live article is empty – i’ve seen 1 in my html. In 4.6.2 all was good. Any suggestions?

P.s. Also, i wasted some time with 404 error when choised zero theme and copypasting my pages.
1) Install new txp 4.7
2) Choose zero theme
3) Copypaste your pages and forms
4) Got 404 when you trying to access on articles
I fixed it when took four-point-seven theme


I know, my english is horrible

Offline

#2 2018-05-20 21:56:17

Saldacenkaw
Member
Registered: 2006-12-28
Posts: 30

Re: Got 1 in html when txp:article is empty (TXP 4.7)

My diag, if it needed

Textpattern version: 4.7.0 (53fc1f9d4acb1026986bf89845c7a95d)
Last update: 1970-01-01 00:00:00/2018-05-15 10:51:05
Textpattern path: __TXP-ROOT/textpattern
Article URL pattern: title_only
Production status: debug
Temporary directory path: __TXP-ROOT/textpattern/tmp
PHP version: 7.2.5-1+0~20180505045740.21+stretch~1.gbpca2fa6
GD Graphics Library: 2.2.4; Supported formats: GIF, JPEG, PNG.
Server timezone: UTC
Server local time: 2018-05-20 21:52:07
Daylight Saving Time enabled?: 0
Automatically adjust Daylight Saving Time setting?: 0
Time zone (GMT offset in seconds): Europe/Minsk (+0)
MySQL: 5.5.5-10.2.15-MariaDB-10.2.15+maria~stretch-log (mariadb.org binary distribution) 
Database server time: 2018-05-20 21:52:07
Database server time offset: 0 s
Database server timezone: SYSTEM
Database session timezone: SYSTEM
Locale: C
Web server: nginx/1.14.0
PHP server API: fpm-fcgi
RFC 2616 headers: 0
Server OS: Linux 4.16.0-0.bpo.1-amd64
Admin-side theme: hiveneutral 4.7.0
Active plugins: 
	act_plural-0.1
	aks_header-0.4.1
	arc_social_share-1.4.0
	etc_pagination-0.4.7b
	rah_section_titles-0.7
	soo_toc-0.1.5
	wet_if_status-0.2
Pre-flight check: 
------------------------
The following PHP functions (which may be necessary to run Textpattern) are disabled on your server: pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_get_handler, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority, pcntl_async_signals.
------------------------
Charset (default/config): latin1/utf8mb4
character_set_client: utf8mb4
character_set_connection: utf8mb4
character_set_database: latin1
character_set_filesystem: binary
character_set_results: utf8mb4
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /usr/share/mysql/charsets/
18 database 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)
Pretext data: array (
  'status' => '200',
  'id' => '',
  's' => '',
  'c' => '',
  'context' => '',
  'q' => '',
  'm' => '',
  'pg' => '',
  'p' => '',
  'month' => '',
  'author' => '',
  'request_uri' => '/f3409b3b53dfb8e11317d8e252f2cece/?txpcleantest=1',
  'qs' => 'txpcleantest=1',
  'subpath' => '\\/',
  'req' => '/f3409b3b53dfb8e11317d8e252f2cece/?txpcleantest=1',
)
/admin-themes/classic/classic.php: 
	61532c16e97ac04f6a77c40092320d06
/admin-themes/hive/assets/js/main.js: 
	5fb2157b7be591b0f1a64a81c0e07307
/admin-themes/hive/hive.php: 
	fde208a1e25dfb21a1d1ee77c519425b
/admin-themes/hiveneutral/assets/js/main.js: 
	5fb2157b7be591b0f1a64a81c0e07307
/admin-themes/hiveneutral/hiveneutral.php: 
	e64d0330d00d23537b4a88b8b9fbcbc7
/include/txp_admin.php: 
	7519b76848be7755f86597d129155956
/include/txp_article.php: 
	9c66b94aebc82cc904474cabda1e9fd1
/include/txp_auth.php: 
	72d54d6c6054c00bc86783f8e8932615
/include/txp_category.php: 
	12f668975bf70313ad35386bd827752b
/include/txp_css.php: 
	8015b08c023a3f417dae965aedb528db
/include/txp_diag.php: 
	8f27a0275d3019464fcf96e9dafe32f5
/include/txp_discuss.php: 
	b0996486020d9cbab51cd20914296cd5
/include/txp_file.php: 
	7f33658528146b1ffd0df5ffb2d126b0
/include/txp_form.php: 
	0efc3a4e844bf8718568dea69732c97c
/include/txp_image.php: 
	7228e07fc0e2087e67c73d197fbc001e
/include/txp_lang.php: 
	1d7fa0b9769fa392e828a00cc25e119b
/include/txp_link.php: 
	ee6af7cbb957441252ab7fa0c123812e
/include/txp_list.php: 
	081f5f993f883fbec744fe35dbcb6186
/include/txp_log.php: 
	2b15c0f98935bfc039e14f25663b34e4
/include/txp_page.php: 
	bd08cefe5cd6ca981369b5f6542ec22d
/include/txp_pane.php: 
	ec55f252887a68f3e3dc6510dd1385a0
/include/txp_plugin.php: 
	d3b7bff80b7ab92009dd90953c10c149
/include/txp_prefs.php: 
	f8ce3cb291904b544fb2a5edadf9a408
/include/txp_section.php: 
	d1b68fe799d91073ae5d38e97f6f3dbd
/include/txp_skin.php: 
	242bc7272a7260d8f868baca8ac40f34
/include/txp_tag.php: 
	4a939325b676d76a439f2843ea64e36d
/index.php: 
	f4bd451da931a8c63f14a4b4fb07952d
/lib/admin_config.php: 
	73adea849578cfc3e1473c2973f75b8f
/lib/class.thumb.php: 
	de16440b4815129444a93683735d8ed0
/lib/class.trace.php: 
	055e3bc1f8d3217aec152fa7e6216b1d
/lib/classTextile.php: 
	f970ce6ae622ffc333dc5190d2a17132
/lib/constants.php: 
	6b1cc698a4688276a88be8b945eda8bb
/lib/IXRClass.php: 
	a1b525b4a9ed12dcb5677d5232a3d92e
/lib/PasswordHash.php: 
	66a8aa4b2d6e0527877a797907efc035
/lib/taglib.php: 
	0cafc9b259d5a45475eb47d36a0d6567
/lib/txplib_admin.php: 
	af75aee8d639a179bb5d81cedb78a54e
/lib/txplib_db.php: 
	076e203592ff394e894df1a39691d577
/lib/txplib_forms.php: 
	debea9cd565421f98994b95356ccc735
/lib/txplib_head.php: 
	9824fa30efa00d17fcd1d9c577c3708a
/lib/txplib_html.php: 
	f06c2aba7abab5a73fa7b943575525f2
/lib/txplib_misc.php: 
	c6d23970ca3602f0f5736331f24ef8e5
/lib/txplib_publish.php: 
	cbb1f3a43db8c239f448370e42718cce
/lib/txplib_theme.php: 
	f9806970169bed7a6ac34248322eccce
/lib/txplib_update.php: 
	ddef7c647997652b6b56b04c64d9e203
/lib/txplib_validator.php: 
	d5e11546c01a75753e96589d9e16045a
/lib/txplib_wrapper.php: 
	8778abc96eff3ccb07f3bccca5304896
/publish/atom.php: 
	e932843e6ddf39b6c6d3b7054cac6e01
/publish/comment.php: 
	a8220d9baf3880f589efdcbc752c2a41
/publish/log.php: 
	e3a4b1a93c3baf9ac768ad77159e076b
/publish/rss.php: 
	e623973ce45c62d16ede7645e66d225a
/publish/search.php: 
	93270cd66dff1aad9b489c206a6f1896
/publish/taghandlers.php: 
	7fc369210429643a397de6bb48758e3e
/publish.php: 
	a7881f80c3d7e67a7e6b845f60869ae4
/textpattern.js: 
	d47d3d83c603903b414873382b66d6b6
/update/_to_4.0.3.php: 
	fb35e8e3dce16aad32b3d3af1a2b60c7
/update/_to_4.0.4.php: 
	7982d5063df84b7a2b1bb07660b8886b
/update/_to_4.0.5.php: 
	376bafd8685724e7c9e91b1a3ffe172f
/update/_to_4.0.6.php: 
	99493842f5994cc7f6eb88abde8433fe
/update/_to_4.0.7.php: 
	61a7ffaf8635067565fc2e8c22492e9e
/update/_to_4.0.8.php: 
	d70f2023c97b7e34ed03f953eb2ea434
/update/_to_4.2.0.php: 
	19629cf52c940b7a4a62a9c1cad9b303
/update/_to_4.3.0.php: 
	f39bccf59a1d1dd42fb5a2a351e583ac
/update/_to_4.5.0.php: 
	d5fe48683eb7ce2244829cb6cf3a36b2
/update/_to_4.5.7.php: 
	d2a0a8eaf49fb8b21292938d6bc81238
/update/_to_4.6.0.php: 
	f410119d42530763f483f4ac593192d6
/update/_to_4.7.0.php: 
	2c05d4f7054a53fb2acd1c868a9978a3
/update/_update.php: 
	5b0cf6653c06307f625de74c83c705d8
/vendors/blueimp/fileupload/jquery.fileupload.js: 
	cbf3e62ed9e9051e13cc708ee056c0bc
/vendors/jquery/jquery/jquery.js: 
	a09e13ee94d51c524b7e2a728c7d4039
/vendors/jquery/jquery-ui/jquery-ui.js: 
	0a497d4661df7b82feee14332ce0bdaf
/vendors/Netcarver/Textile/DataBag.php: 
	6564919a34daee6623cbc353dac4087e
/vendors/Netcarver/Textile/Parser.php: 
	18019ac0b4a64b4762d01c7a2795c756
/vendors/Netcarver/Textile/Tag.php: 
	b8d2d5ac8ddd65c82c220d5ab2fad15f
/vendors/PrismJS/prism/prism.js: 
	70dc7887a49b77ab27fac313dbe8409b
/vendors/Textpattern/Adaptable/AdapterInterface.php: 
	2ca155f9022bee03d9883c92f5e7d0c8
/vendors/Textpattern/Adaptable/Providable.php: 
	5e4dafa7ef6ce91d1413f5d035cc32ff
/vendors/Textpattern/Adaptable/ProvidableInterface.php: 
	4fad6fb0ae3b9943659b6a75f506b836
/vendors/Textpattern/Admin/Paginator.php: 
	4b55b5293578dc6eab040b09f75121bf
/vendors/Textpattern/Admin/Table.php: 
	d35a33cd48b5239eb8b05fbf71f96eff
/vendors/Textpattern/Admin/Theme.php: 
	a78a1d2c5955c67d8b65caf612e5ef2c
/vendors/Textpattern/Admin/Tools.php: 
	670f0eb7288145e1db50565a82aa8218
/vendors/Textpattern/Container/Container.php: 
	c6d55480dbc432b804735cc0aa49991c
/vendors/Textpattern/Container/ContainerInterface.php: 
	eb0dd1cbd9cde8f1ca76f17ef3eab76b
/vendors/Textpattern/Container/FactorableInterface.php: 
	7a98d544cc82356752421cb4924e14d0
/vendors/Textpattern/Container/FactoryInterface.php: 
	eee6a60f5d451535194c3b5c0583e64a
/vendors/Textpattern/Container/ReusableInterface.php: 
	bd8353eee806eec630307fe66fb54d84
/vendors/Textpattern/Date/Timezone.php: 
	e6cb18891da6b037bc84e96dba68e105
/vendors/Textpattern/DB/Core.php: 
	ec78eb77f7275df574c202db3f3a06ea
/vendors/Textpattern/Filter/Exception.php: 
	20fbdefe757e2ffa10510ba79be15189
/vendors/Textpattern/Filter/FilterCallable.php: 
	acb6078b24a05165c39382952730854b
/vendors/Textpattern/Filter/StringFilter.php: 
	3da0ebbec1107a1b02284eb5ac61f579
/vendors/Textpattern/Http/Request.php: 
	b9b97359cccd2781cc2ee0879817fe75
/vendors/Textpattern/Import/TxpXML.php: 
	4f0ba2e86d1f4fc0d51df804fed2557d
/vendors/Textpattern/Iterator/FileIterator.php: 
	b2895983f4b522ba8fb43ec3e500233d
/vendors/Textpattern/Iterator/RecDirIterator.php: 
	c3cf59afe374c285fc6a64ca7bf6770f
/vendors/Textpattern/Iterator/RecFilterIterator.php: 
	5cb9d60bbfac498254e926fb64b03d58
/vendors/Textpattern/Iterator/RecIteratorIterator.php: 
	340ae698929f267f057570a34df42c8f
/vendors/Textpattern/L10n/Lang.php: 
	bed70731075b16b050c19ced3a70fcf0
/vendors/Textpattern/L10n/Locale.php: 
	d2b933aff0ee023b5c9d8def3682dd23
/vendors/Textpattern/Loader.php: 
	fe4190fbfea4f13bf6a664d9db6bd551
/vendors/Textpattern/Mail/Adapter/Mail.php: 
	36b0821f9d9888bb37442baa3db91989
/vendors/Textpattern/Mail/AdapterInterface.php: 
	be075beed5cadde10f47440efe0ca03c
/vendors/Textpattern/Mail/Compose.php: 
	5ecf483447802c5a8c0d0494655c2000
/vendors/Textpattern/Mail/Encode.php: 
	1659d9da0e6c537b51c7cbbb2bafd2c3
/vendors/Textpattern/Mail/Exception.php: 
	e9c6f012af13f5bb8a4e0804349aacea
/vendors/Textpattern/Mail/Message.php: 
	be327d690d66a40438ac856911011fdd
/vendors/Textpattern/Module/Help/HelpAdmin.php: 
	4fd0022798e29fbe9523549517661267
/vendors/Textpattern/Password/Adapter/PasswordHash.php: 
	bfb97efec8fae5c351bc51d5341b9824
/vendors/Textpattern/Password/AdapterInterface.php: 
	8597c3f7072fd8b3a206743518e1d8ef
/vendors/Textpattern/Password/Generator.php: 
	20daccd1ad9cee8e00ef4f82142aa6a3
/vendors/Textpattern/Password/Hash.php: 
	128b26b0e60ad004c5daaabf8ff15e7f
/vendors/Textpattern/Password/Random.php: 
	7cbfbdb00fa7ae08f8208b5e9ccf8fb8
/vendors/Textpattern/Plugin/Plugin.php: 
	65ec5f4534ab90aac613b92c95e380c5
/vendors/Textpattern/Search/Filter.php: 
	b253d6fd147f0efa2eb5a3c7b86e8fca
/vendors/Textpattern/Search/Method.php: 
	cbe44bf2aeaf6b7b0a9a871b9deb10c3
/vendors/Textpattern/Security/Exception.php: 
	af306a7a85a6be2670129ffe252f691a
/vendors/Textpattern/Security/Filter.php: 
	fbf3003e02a71583fc5559426afe45da
/vendors/Textpattern/Server/Config.php: 
	e463474cd15b931918cc3c1d353948ea
/vendors/Textpattern/Server/Files.php: 
	b31726c28b4b3c8f634b292f414d167b
/vendors/Textpattern/Skin/AssetBase.php: 
	0941c1da7ec0844f8bbd509b3b0b5f37
/vendors/Textpattern/Skin/AssetInterface.php: 
	95e540133825dd2acf73abed73a88c4a
/vendors/Textpattern/Skin/CommonBase.php: 
	17e0cba2250301d03f15f3bddc3328d5
/vendors/Textpattern/Skin/CommonInterface.php: 
	1bafe4ac2c65b31e5b17a93cedaf36c6
/vendors/Textpattern/Skin/Css.php: 
	f5e16c5c422bdaba7f65e87216267c67
/vendors/Textpattern/Skin/CssInterface.php: 
	605dc4c98cf6e47e8cd0fae7e27012ea
/vendors/Textpattern/Skin/Form.php: 
	45e47c023fbbaa3947d06d51336c0d72
/vendors/Textpattern/Skin/FormInterface.php: 
	8e5a25e49668d42b29935d42ae720a10
/vendors/Textpattern/Skin/Page.php: 
	935eccac8dc3e9df75b720c1b2f9888e
/vendors/Textpattern/Skin/PageInterface.php: 
	f54a7c0e7beb3343d357a6ce5397f4fa
/vendors/Textpattern/Skin/Skin.php: 
	77bdbd00fe2d0baf8f62f95eb4d37a25
/vendors/Textpattern/Skin/SkinInterface.php: 
	f9c8f4340ab0bdd2658821d983a77ca2
/vendors/Textpattern/Tag/Registry.php: 
	d651ad90f6d87838fdfbf43cd8d457c4
/vendors/Textpattern/Tag/Syntax/Authors.php: 
	86a6154bd08e73319762b3387cdfb92a
/vendors/Textpattern/Tag/Syntax/File.php: 
	3f730fdaa76ca355b27ccb7478396258
/vendors/Textpattern/Tag/Syntax/Image.php: 
	c1319e2289fa56d0ab97cfc84b9f1496
/vendors/Textpattern/Tag/Syntax/Link.php: 
	3f8f78ef3580df9051df295122a6ff83
/vendors/Textpattern/Tag/Syntax/Partial.php: 
	798581ba13a2fa245a9a2a29bd8268a7
/vendors/Textpattern/Textfilter/Base.php: 
	148b6267831d35d6a8db15d1cd2ccdaf
/vendors/Textpattern/Textfilter/Constraint.php: 
	0f991e221704033b340b4627cd3bd8d7
/vendors/Textpattern/Textfilter/Nl2Br.php: 
	120fc5128e0feca793fef7554dc6e3c5
/vendors/Textpattern/Textfilter/Plain.php: 
	3db6d32fc7a0977de52c190fef26e444
/vendors/Textpattern/Textfilter/Registry.php: 
	2e72f55326955288956d3f073d80685b
/vendors/Textpattern/Textfilter/TextfilterInterface.php: 
	c4fed4b35a6192a99f4156096afa66dd
/vendors/Textpattern/Textfilter/Textile.php: 
	7cdebba481fca095d7217ae7d0d594bf
/vendors/Textpattern/Textile/Parser.php: 
	89adf00249564a589da43900def4aeec
/vendors/Textpattern/Textpack/Parser.php: 
	c1c16982cb729bbffacaf95ad962a4c6
/vendors/Textpattern/Textpack/String/Iterator.php: 
	8ec5882fd003c8944dfde641acccc0f7
/vendors/Textpattern/Textpack/StringInterface.php: 
	4b8188cd9e878f46e4f259525ae79d3c
/vendors/Textpattern/Type/StringType.php: 
	ac453a1d358a749aa5191bd68ce19a75
/vendors/Textpattern/Type/TypeCallable.php: 
	c52efaafaa97590c9c9c981d8f3ce998
/vendors/Textpattern/Type/TypeInterface.php: 
	0f44c97964b9c8918eb50df4dc4e8d2e
/vendors/Textpattern/Validator/BlankConstraint.php: 
	1382f7d7ec14085c9a845c05392a83c4
/vendors/Textpattern/Validator/CategoryConstraint.php: 
	1905d8a0caf31c928d278179948c4f2c
/vendors/Textpattern/Validator/ChoiceConstraint.php: 
	bb2acc51b1deffe94c5d35778d4d61fc
/vendors/Textpattern/Validator/Constraint.php: 
	19c8680ea34aab9205edb4953f8c3e48
/vendors/Textpattern/Validator/FalseConstraint.php: 
	bb26fc272d022d75db704425d2daef10
/vendors/Textpattern/Validator/FormConstraint.php: 
	3c102f4fd6901ab16cc168322af37e1d
/vendors/Textpattern/Validator/SectionConstraint.php: 
	d6c469fc4e538dc86a5173687965af93
/vendors/Textpattern/Validator/TrueConstraint.php: 
	b1d6b1cb9aac086af40aed4353762cfd
/vendors/Textpattern/Validator/Validator.php: 
	1c4ce4a0f834099e65cf20a3efc9b744
/vendors/Txp.php: 
	2b5fddedc158ac643a1e1bdab917932f
/../css.php: 
	2277486a44bb8c84a10546439a8d0c18
/../index.php: 
	3c7de42a5a7ab5e8a14348fe03b56c6c
------------------------

I know, my english is horrible

Offline

#3 2018-05-20 22:04:33

Saldacenkaw
Member
Registered: 2006-12-28
Posts: 30

Re: Got 1 in html when txp:article is empty (TXP 4.7)

Trace summary&query log

!-- Trace summary:
Runtime   : 7.27 ms
Query time: 1.26 ms
Queries   : 21
Memory (*): 1248 kB
-->
<!-- Trace log:
  Time(ms) | Duration | Trace
      0.14 |     0.08 | [PHP includes, stage 1]
      0.24 |     0.59 | [PHP includes, stage 2]
      0.27 |          | 	[Textpattern autoload dir: 'vendors']
      0.28 |          | 	[Textpattern autoload dir: 'lib']
      0.68 |     0.03 | 	[Load: 'vendors/Txp.php']
      0.70 |     0.01 | 		[Load: 'vendors/Textpattern/Container/FactoryInterface.php']
      0.71 |          | 		[Class loaded: 'Txp']
      0.72 |     0.02 | 	[Load: 'vendors/Textpattern/Container/Container.php']
      0.73 |     0.01 | 		[Load: 'vendors/Textpattern/Container/ContainerInterface.php']
      0.74 |          | 		[Class loaded: 'Container']
      0.75 |     0.02 | 	[Load: 'vendors/Textpattern/Tag/Registry.php']
      0.76 |     0.00 | 		[Load: 'vendors/Textpattern/Container/ReusableInterface.php']
      0.76 |          | 		[Class loaded: 'Registry']
      0.85 |     0.12 | [SQL: SELECT name, val FROM txp_prefs WHERE user_name = '' ]
      0.98 |          | [Rows: 96]
      1.10 |     0.01 | [Load: 'vendors/Textpattern/L10n/Lang.php']
      1.11 |          | 	[Class loaded: 'Lang']
      1.31 |     0.24 | [SQL: SELECT name, data FROM txp_lang WHERE lang = 'en' AND name != '' AND (event IN ('public','common') OR owner != '') ]
      1.55 |          | [Rows: 274]
      1.84 |     2.12 | [Loading plugins]
      1.85 |     0.09 | 	[SQL: SELECT name, code, version FROM txp_plugin WHERE status = 1 AND type IN (0,1,5) ORDER BY load_order ASC, name ASC ]
      1.94 |          | 	[Rows: 6]
      1.96 |     0.42 | 	[Loading plugin: 'aks_header' version '0.4.1']
      2.39 |     1.01 | 	[Loading plugin: 'etc_pagination' version '0.4.7b']
      3.41 |     0.03 | 	[Loading plugin: 'act_plural' version '0.1']
      3.45 |     0.35 | 	[Loading plugin: 'arc_social_share' version '1.4.0']
      3.80 |     0.14 | 	[Loading plugin: 'soo_toc' version '0.1.5']
      3.94 |     0.03 | 	[Loading plugin: 'wet_if_status' version '0.2']
      3.98 |     0.07 | [Callback_event: 'pretext', step='', pre='0']
      4.01 |     0.02 | 	[Load: 'vendors/Textpattern/Type/TypeCallable.php']
      4.02 |     0.01 | 		[Load: 'vendors/Textpattern/Type/TypeInterface.php']
      4.03 |          | 		[Class loaded: 'TypeCallable']
      4.04 |     0.01 | 		[Call function: 'etc_pagination_url']
      4.10 |     0.07 | [SQL: SELECT name FROM txp_category WHERE name = 'meaningful-labor' AND type = 'article' LIMIT 1 ]
      4.17 |          | [Rows: 1]
      4.19 |     0.04 | [SQL: SELECT skin, page, css FROM txp_section WHERE name = 'default' LIMIT 1 ]
      4.23 |          | [Rows: 1]
      4.24 |     0.03 | [SQL: SELECT nonce, name, RealName, email, privs FROM txp_users WHERE name = 'roma' ]
      4.28 |          | [Rows: 1]
      4.29 |     0.03 | [SQL: SELECT privs FROM txp_users WHERE name = 'roma' ]
      4.33 |          | [Rows: 1]
      4.35 |     0.03 | [SQL: SELECT val FROM txp_prefs WHERE name = 'skin_editing' AND (user_name = 'roma') ]
      4.38 |          | [Rows: 1]
      4.40 |     0.00 | [Callback_event: 'pretext_end', step='', pre='0']
      4.44 |     0.00 | [Callback_event: 'log_hit', step='', pre='0']
      4.45 |     0.00 | [Callback_event: 'textpattern', step='', pre='0']
      4.46 |     0.05 | [SQL: SELECT user_html FROM txp_page WHERE name = 'default' AND skin = 'four-point-seven' ]
      4.51 |          | [Rows: 1]
      4.51 |          | [Page: 'four-point-seven.default']
      4.52 |          | [true]
      4.68 |     0.04 | <txp:aks_header strip="0" gzip="0" />
      4.72 |     0.07 | <txp:page_title/>
      4.74 |     0.04 | 	[SQL: SELECT title FROM txp_category WHERE name = 'meaningful-labor' AND type = 'article' ]
      4.78 |          | 	[Rows: 1]
      4.80 |     0.01 | <txp:site_url/>
      4.80 |     0.01 | <txp:if_individual_article>
      4.81 |          | 	[false]
      4.81 |     0.00 | 	<txp:site_url/>
      4.81 |          | </txp:if_individual_article>
      4.82 |     0.05 | <txp:meta_description />
      4.83 |     0.04 | 	[SQL: SELECT description FROM txp_category WHERE name = 'meaningful-labor' AND type = 'article' ]
      4.86 |          | 	[Rows: 1]
      4.87 |     0.01 | <txp:meta_keywords separator="," />
      4.89 |     0.03 | <txp:feed_link flavor="atom" format="link" label="Atom" />
      4.91 |     0.02 | <txp:feed_link flavor="rss" format="link" label="RSS" />
      4.93 |     0.00 | <txp:site_url/>
      4.94 |     0.00 | <txp:site_url/>
      4.94 |     0.01 | <txp:if_search>
      4.94 |          | 	[false]
      4.95 |          | </txp:if_search>
      4.95 |     0.00 | <txp:site_url />
      4.95 |     0.00 | <txp:site_url />
      4.95 |     0.00 | <txp:site_url />
      4.96 |     0.00 | <txp:search_term />
      4.96 |     0.06 | <txp:if_individual_article>
      4.96 |          | 	[false]
      4.97 |     0.05 | 	<txp:if_search>
      4.97 |          | 		[false]
      4.97 |     0.05 | 		<txp:if_category>
      4.98 |          | 			[true]
      4.98 |     0.02 | 			<txp:link_to_home>
      4.98 |          | 				[true]
      4.98 |     0.00 | 				<txp:site_name/>
      4.99 |          | 			</txp:link_to_home>
      5.00 |     0.02 | 			<txp:category title="1"/>
      5.02 |          | 		</txp:if_category>
      5.02 |          | 	</txp:if_search>
      5.02 |          | </txp:if_individual_article>
      5.02 |     0.01 | <txp:if_individual_article>
      5.02 |          | 	[false]
      5.03 |          | </txp:if_individual_article>
      5.03 |     0.21 | <txp:if_search>
      5.03 |          | 	[false]
      5.03 |     0.20 | 	<txp:article listform="preview" limit="3" status="sticky" />
      5.09 |     0.04 | 		[SQL: SELECT name FROM txp_section WHERE on_frontpage != '1' ]
      5.14 |          | 		[Rows: 0]
      5.16 |          | 		[filterAtts accepted]
      5.17 |     0.05 | 		[SQL: SELECT *, UNIX_TIMESTAMP(Posted) AS uPosted, UNIX_TIMESTAMP(Expires) AS uExpires, UNIX_TIMESTAMP(LastMod) AS uLastMod FROM textpattern WHERE 1 AND `Posted` <= from_unixtime(2147483647) AND (Category1 IN ('meaningful-labor') OR Category2 IN ('meaningful-labor')) AND Status IN (5) ORDER BY Posted DESC LIMIT 0, 3 ]
      5.22 |          | 		[Rows: 0]
      5.23 |          | 		[false]
      5.24 |          | </txp:if_search>
      5.24 |     1.21 | <txp:article listform="preview" searchform="preview" limit="5" status="live" searchsticky="1" />
      5.29 |          | 	[filterAtts accepted]
      5.30 |     0.04 | 	[SQL: SELECT COUNT(*) FROM textpattern WHERE 1 AND `Posted` <= from_unixtime(2147483647) AND (Category1 IN ('meaningful-labor') OR Category2 IN ('meaningful-labor')) AND Status IN (4) ]
      5.34 |          | 	[Rows: 1]
      5.35 |     0.05 | 	[SQL: SELECT *, UNIX_TIMESTAMP(Posted) AS uPosted, UNIX_TIMESTAMP(Expires) AS uExpires, UNIX_TIMESTAMP(LastMod) AS uLastMod FROM textpattern WHERE 1 AND `Posted` <= from_unixtime(2147483647) AND (Category1 IN ('meaningful-labor') OR Category2 IN ('meaningful-labor')) AND Status IN (4) ORDER BY Posted DESC LIMIT 0, 5 ]
      5.40 |          | 	[Rows: 1]
      5.41 |          | 	[Article: '1']
      5.43 |     0.04 | 	[SQL: SELECT Form FROM txp_form WHERE name = 'preview' AND skin = 'four-point-seven' ]
      5.47 |          | 	[Rows: 1]
      5.48 |          | 	[Form: 'four-point-seven.preview']
      5.48 |          | 	[Nesting forms: 'preview']
      5.48 |          | 	[true]
*     5.55 |     0.48 | 	<txp:wet_if_live>
*     5.76 |          | 		Tag error: <txp:wet_if_live> 
<time datetime="<txp:posted format="iso8601" />" itemprop="datePublished"><txp:posted /></time> 
</txp:wet_if_live> -> Textpattern Notice: wet_if_live tag is not registered while parsing form <strong>preview</strong> on page <strong>default</strong>
      5.77 |     0.05 | 		[SQL: SELECT Status FROM textpattern WHERE ID = '1' ]
      5.82 |          | 		[Rows: 1]
      5.82 |          | 		[true]
      5.83 |     0.07 | 		<txp:posted format="iso8601" />
      5.86 |     0.01 | 			[Load: 'vendors/Textpattern/L10n/Locale.php']
      5.87 |          | 				[Class loaded: 'Locale']
      5.91 |     0.12 | 		<txp:posted />
      6.03 |          | 	</txp:wet_if_live>
      6.03 |     0.14 | 	<txp:wet_if_sticky>
      6.08 |          | 		Tag error: <txp:wet_if_sticky> 
<meta itemprop="datePublished" content="<txp:posted format="iso8601" />" >
<span id="sticky">прикреплённый пост</span>
</txp:wet_if_sticky> -> Textpattern Notice: wet_if_sticky tag is not registered while parsing form <strong>preview</strong> on page <strong>default</strong>
      6.09 |     0.07 | 		[SQL: SELECT Status FROM textpattern WHERE ID = '1' ]
      6.16 |          | 		[Rows: 1]
      6.17 |          | 		[true]
      6.17 |          | 	</txp:wet_if_sticky>
      6.18 |     0.02 | 	<txp:modified format="iso8601" />
      6.20 |     0.02 | 	<txp:permlink />
      6.23 |     0.00 | 	<txp:site_url/>
      6.23 |     0.01 | 	<txp:if_article_image>
      6.24 |          | 		[false]
      6.24 |          | 	</txp:if_article_image>
      6.24 |     0.01 | 	<txp:permlink/>
      6.25 |     0.01 | 	<txp:permlink/>
      6.26 |     0.01 | 	<txp:title />
      6.26 |     0.00 | 	<txp:excerpt />
      6.27 |          | 		[true]
      6.27 |     0.00 | 	<txp:site_url/>
      6.27 |     0.02 | 	<txp:category1 link="0" title="0" />
      6.30 |     0.11 | 	<txp:category1 link="0" title="1" />
      6.34 |     0.05 | 		[SQL: SELECT title FROM txp_category WHERE name = 'hope-for-the-future' AND type = 'article' ]
      6.40 |          | 		[Rows: 1]
      6.41 |     0.00 | 	<txp:site_url/>
      6.41 |     0.01 | 	<txp:category2 link="0" title="0" />
      6.43 |     0.01 | 	<txp:category2 link="0" title="1" />
      6.45 |     0.01 | <txp:if_search_results>
      6.46 |          | </txp:if_search_results>
      6.46 |     0.04 | <txp:if_article_list>
      6.46 |          | 	[true]
      6.47 |     0.03 | 	<txp:etc_pagination range="2" reversenumberorder="1" prev="" next=""  wraptag="" break="" link='<a itemprop="item" href="{href}"><span itemprop="name">{*}</span></a>,<b itemprop="item" href="{href}" aria-label="Current page"><span itemprop="name">{*}</span></b>'>
      6.49 |          | 		[true]
      6.49 |          | 	</txp:etc_pagination>
      6.50 |          | </txp:if_article_list>
      6.50 |     0.50 | <txp:category_list wraptag="ul" break="" class="" >
      6.53 |     0.05 | 	[SQL: SELECT name, parent, title, description FROM txp_category WHERE name !='root'  and type = 'article'  ]
      6.58 |          | 	[Rows: 3]
      6.59 |          | 	[true]
      6.60 |     0.05 | 	<txp:if_category name='<txp:category/>'>
      6.60 |     0.03 | 		[attribute 'name']
      6.60 |          | 			[true]
      6.61 |     0.02 | 			<txp:category/>
      6.63 |          | 		[/attribute]
      6.64 |          | 		[false]
      6.64 |          | 	</txp:if_category>
      6.64 |     0.12 | 	<txp:if_article_category name='<txp:category />'>
      6.65 |     0.02 | 		[attribute 'name']
      6.65 |          | 			[true]
      6.66 |     0.01 | 			<txp:category />
      6.67 |          | 		[/attribute]
      6.71 |          | 		Tag error: <txp:if_article_category name='<txp:category />'>
<strong><txp:category title="1" link="0" /></strong>
<txp:else/>
<a href="<txp:site_url/>category/<txp:category link="0" title="0" />" itemprop="url"><txp:category title="1" link="0" /></a>
</txp:if_article_category> -> Textpattern Notice: Article tags cannot be used outside an article context. while parsing form <strong>None</strong> on page <strong>default</strong>
      6.72 |          | 		[false]
      6.73 |     0.00 | 		<txp:site_url/>
      6.73 |     0.01 | 		<txp:category link="0" title="0" />
      6.75 |     0.01 | 		<txp:category title="1" link="0" />
      6.76 |          | 	</txp:if_article_category>
      6.77 |          | 	[true]
      6.77 |     0.02 | 	<txp:if_category name='<txp:category/>'>
      6.77 |     0.01 | 		[attribute 'name']
      6.77 |          | 			[true]
      6.77 |     0.01 | 			<txp:category/>
      6.78 |          | 		[/attribute]
      6.79 |          | 		[false]
      6.79 |          | 	</txp:if_category>
      6.79 |     0.08 | 	<txp:if_article_category name='<txp:category />'>
      6.79 |     0.01 | 		[attribute 'name']
      6.79 |          | 			[true]
      6.80 |     0.01 | 			<txp:category />
      6.80 |          | 		[/attribute]
      6.84 |          | 		Tag error: <txp:if_article_category name='<txp:category />'>
<strong><txp:category title="1" link="0" /></strong>
<txp:else/>
<a href="<txp:site_url/>category/<txp:category link="0" title="0" />" itemprop="url"><txp:category title="1" link="0" /></a>
</txp:if_article_category> -> Textpattern Notice: Article tags cannot be used outside an article context. while parsing form <strong>None</strong> on page <strong>default</strong>
      6.84 |          | 		[false]
      6.85 |     0.00 | 		<txp:site_url/>
      6.85 |     0.01 | 		<txp:category link="0" title="0" />
      6.86 |     0.01 | 		<txp:category title="1" link="0" />
      6.87 |          | 	</txp:if_article_category>
      6.88 |          | 	[true]
      6.88 |     0.02 | 	<txp:if_category name='<txp:category/>'>
      6.88 |     0.01 | 		[attribute 'name']
      6.88 |          | 			[true]
      6.88 |     0.01 | 			<txp:category/>
      6.89 |          | 		[/attribute]
      6.90 |          | 		[true]
      6.90 |          | 	</txp:if_category>
      6.90 |     0.09 | 	<txp:if_article_category name='<txp:category />'>
      6.90 |     0.01 | 		[attribute 'name']
      6.90 |          | 			[true]
      6.90 |     0.00 | 			<txp:category />
      6.91 |          | 		[/attribute]
      6.95 |          | 		Tag error: <txp:if_article_category name='<txp:category />'>
<strong><txp:category title="1" link="0" /></strong>
<txp:else/>
<a href="<txp:site_url/>category/<txp:category link="0" title="0" />" itemprop="url"><txp:category title="1" link="0" /></a>
</txp:if_article_category> -> Textpattern Notice: Article tags cannot be used outside an article context. while parsing form <strong>None</strong> on page <strong>default</strong>
      6.96 |          | 		[false]
      6.96 |     0.00 | 		<txp:site_url/>
      6.96 |     0.01 | 		<txp:category link="0" title="0" />
      6.98 |     0.01 | 		<txp:category title="1" link="0" />
      6.99 |          | 	</txp:if_article_category>
      7.00 |          | </txp:category_list>
      7.00 |     0.18 | <txp:category_list exclude='<txp:category/>' break="">
      7.01 |     0.01 | 	[attribute 'exclude']
      7.01 |          | 		[true]
      7.01 |     0.01 | 		<txp:category/>
      7.02 |          | 	[/attribute]
      7.05 |     0.05 | 	[SQL: SELECT name, parent, title, description FROM txp_category WHERE name !='root'  and type = 'article'  ]
      7.11 |          | 	[Rows: 3]
      7.12 |          | 	[true]
      7.12 |     0.02 | 	<txp:category url="1" />
      7.15 |     0.01 | 	<txp:category title="1" />
      7.16 |          | 	[true]
      7.16 |     0.01 | 	<txp:category url="1" />
      7.17 |     0.01 | 	<txp:category title="1" />
      7.18 |          | </txp:category_list>
      7.18 |     0.00 | <txp:site_url/>
      7.19 |          | [ ~~~ secondpass (1) ~~~ ]
      7.20 |          | [true]
      7.24 |     0.00 | <txp:if_search_results>
      7.25 |          | </txp:if_search_results>
      7.25 |          | [ ~~~ secondpass (2) ~~~ ]
      7.26 |     0.00 | [Callback_event: 'textpattern_end', step='', pre='0']
-->
<!-- Query log:
Duration | Query
    0.12 | [SQL: SELECT name, val FROM txp_prefs WHERE user_name = '' ]
    0.24 | [SQL: SELECT name, data FROM txp_lang WHERE lang = 'en' AND name != '' AND (event IN ('public','common') OR owner != '') ]
    0.09 | [SQL: SELECT name, code, version FROM txp_plugin WHERE status = 1 AND type IN (0,1,5) ORDER BY load_order ASC, name ASC ]
    0.07 | [SQL: SELECT name FROM txp_category WHERE name = 'meaningful-labor' AND type = 'article' LIMIT 1 ]
    0.04 | [SQL: SELECT skin, page, css FROM txp_section WHERE name = 'default' LIMIT 1 ]
    0.03 | [SQL: SELECT nonce, name, RealName, email, privs FROM txp_users WHERE name = 'roma' ]
    0.03 | [SQL: SELECT privs FROM txp_users WHERE name = 'roma' ]
    0.03 | [SQL: SELECT val FROM txp_prefs WHERE name = 'skin_editing' AND (user_name = 'roma') ]
    0.05 | [SQL: SELECT user_html FROM txp_page WHERE name = 'default' AND skin = 'four-point-seven' ]
    0.04 | [SQL: SELECT title FROM txp_category WHERE name = 'meaningful-labor' AND type = 'article' ]
    0.04 | [SQL: SELECT description FROM txp_category WHERE name = 'meaningful-labor' AND type = 'article' ]
    0.04 | [SQL: SELECT name FROM txp_section WHERE on_frontpage != '1' ]
    0.05 | [SQL: SELECT *, UNIX_TIMESTAMP(Posted) AS uPosted, UNIX_TIMESTAMP(Expires) AS uExpires, UNIX_TIMESTAMP(LastMod) AS uLastMod FROM textpattern WHERE 1 AND `Posted` <= from_unixtime(2147483647) AND (Category1 IN ('meaningful-labor') OR Category2 IN ('meaningful-labor')) AND Status IN (5) ORDER BY Posted DESC LIMIT 0, 3 ]
    0.04 | [SQL: SELECT COUNT(*) FROM textpattern WHERE 1 AND `Posted` <= from_unixtime(2147483647) AND (Category1 IN ('meaningful-labor') OR Category2 IN ('meaningful-labor')) AND Status IN (4) ]
    0.05 | [SQL: SELECT *, UNIX_TIMESTAMP(Posted) AS uPosted, UNIX_TIMESTAMP(Expires) AS uExpires, UNIX_TIMESTAMP(LastMod) AS uLastMod FROM textpattern WHERE 1 AND `Posted` <= from_unixtime(2147483647) AND (Category1 IN ('meaningful-labor') OR Category2 IN ('meaningful-labor')) AND Status IN (4) ORDER BY Posted DESC LIMIT 0, 5 ]
    0.04 | [SQL: SELECT Form FROM txp_form WHERE name = 'preview' AND skin = 'four-point-seven' ]
    0.05 | [SQL: SELECT Status FROM textpattern WHERE ID = '1' ]
    0.07 | [SQL: SELECT Status FROM textpattern WHERE ID = '1' ]
    0.05 | [SQL: SELECT title FROM txp_category WHERE name = 'hope-for-the-future' AND type = 'article' ]
    0.05 | [SQL: SELECT name, parent, title, description FROM txp_category WHERE name !='root'  and type = 'article'  ]
    0.05 | [SQL: SELECT name, parent, title, description FROM txp_category WHERE name !='root'  and type = 'article'  ]
-->

I know, my english is horrible

Offline

#4 2018-05-21 04:44:42

etc
Developer
Registered: 2010-11-11
Posts: 5,054
Website GitHub

Re: Got 1 in html when txp:article is empty (TXP 4.7)

Yet another silly bug of mine, sorry. Patched in the upcoming 4.7.1. Meanwhile, if two <txp:article /> tags above are wrapped in <txp:if_article_list />, replace listform="preview" attribute with form="preview". Otherwise, you’ll need this construction:

form='<txp:if_article_list>preview<txp:else />default</txp:if_article_list>'

I apologize for the bug, it was not easy to foresee and has escaped from all beta-testing.

Offline

#5 2018-05-21 09:11:40

Saldacenkaw
Member
Registered: 2006-12-28
Posts: 30

Re: Got 1 in html when txp:article is empty (TXP 4.7)

I’ve changed listform to form and wrap second <txp:article/> to <txp:if_article_list> and all looks nice. Thank you very much! I guess you know russian adage – he is lifeless who is faultless (не ошибается тот, кто ничего не делает).

Might you look to some issue with 404 error when zero theme been using? I forgot to snapshot all info, but it’s very easy to repeat it

Last edited by Saldacenkaw (2018-05-21 09:21:29)


I know, my english is horrible

Offline

#6 2018-05-21 10:49:24

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,271
Website GitHub

Re: Got 1 in html when txp:article is empty (TXP 4.7)

Saldacenkaw wrote #311920:

Got 404 when you trying to access on articles. I fixed it when took four-point-seven theme

Will look into this but it might be the working theme preview that you’re seeing. When you are working with a theme’s Pages/Forms/Styles and view the site it will try to show you a preview of what the site will look like if you are logged in to that browser session using the current theme you are editing (which is not necessarily the theme that visitors who are not logged in will see).

Perhaps when using solely the Zero theme, the Section assignment isn’t done properly or something, which means it can’t find the name of a Page to render when previewing. Thanks for the report, will see what we can find out.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#7 2018-06-06 16:31:32

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 687
Website Mastodon

Re: Got 1 in html when txp:article is empty (TXP 4.7)

I get a 1 on empty articles here, too. For instance, when a search returns nothing.
But changing the theme doesn’t fix this.


A hole turned upside down is a dome, when there’s also gravity.

Offline

#8 2018-06-06 16:32:29

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 687
Website Mastodon

Re: Got 1 in html when txp:article is empty (TXP 4.7)

etc wrote #311925:

Patched in the upcoming 4.7.1.

etc, is the current dev version patched already?


A hole turned upside down is a dome, when there’s also gravity.

Offline

#9 2018-06-06 20:46:48

etc
Developer
Registered: 2010-11-11
Posts: 5,054
Website GitHub

Re: Got 1 in html when txp:article is empty (TXP 4.7)

jayrope wrote #312406:

etc, is the current dev version patched already?

Yes, it is mostly up to date with 4.7.1 atm.

Offline

#10 2018-06-27 04:50:11

Wanderer
Member
Registered: 2009-02-06
Posts: 23

Re: Got 1 in html when txp:article is empty (TXP 4.7)

etc wrote #312412:

Yes, it is mostly up to date with 4.7.1 atm.

example.de/kontakt/

––> 1

example.de/kontakt

––> article

Do I really have to edit all templates now?

Offline

#11 2018-06-27 17:18:27

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,012
Website GitHub Mastodon Twitter

Re: Got 1 in html when txp:article is empty (TXP 4.7)

Wanderer wrote #312727:

example.de/kontakt/

––> 1

example.de/kontakt

––> article

Do I really have to edit all templates now?

Not really, I think that the bug was squashed.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#12 2018-06-27 18:47:27

Saldacenkaw
Member
Registered: 2006-12-28
Posts: 30

Re: Got 1 in html when txp:article is empty (TXP 4.7)

colak wrote #312734:

Not really, I think that the bug was squashed.

yes, in 4.7.1 all excellent


I know, my english is horrible

Offline

Board footer

Powered by FluxBB