Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2019-01-12 14:59:12

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

Re: Outdated page after article publication

at least for this

This is not used in 4.7.2 and your site response seems ok now.

Offline

#32 2019-03-29 13:22:25

keukenkikker
Member
From: Netherlands
Registered: 2006-08-08
Posts: 79
Website

Re: Outdated page after article publication

Hi you all,

I’m experiencing the same problem as Mikulas and Gallex. T’ve updated to 4.7.3, but that didn’t solve the problem. As Gallex did, I’ll put below all the data you asked from mikulas:

Site / Admin language: nl / nl

- beginning of page template:
<!doctype html>
<html lang=”<txp:lang />” dir=”<txp:text item=“lang_dir” />”>

- Redbot information
General
The Keep-Alive header is deprecated.
The server’s clock is correct.
Content Negotiation (Content Negotiation response )
Content negotiation for gzip compression is supported, saving 77%.
Caching
The resource last changed 5 min 50 sec ago.
This response allows all caches to store it.
This response allows a cache to assign its own freshness lifetime.
Validation (ETag Validation response ) (Last-Modified Validation response )
If-Modified-Since conditional requests are supported.
The 304 response is missing required headers.
If-None-Match conditional requests are supported.
The 304 response is missing required headers.

- <txp:php>echo safe_strftime(‘rfc822’);</txp:php> :
Fri, 29 Mar 2019 13:12:59 GMT

- <txp:php>echo safe_strftime(‘rfc822’, get_lastmod(), 1);</txp:php> :
Fri, 29 Mar 2019 13:13:31 GMT

Last edited by keukenkikker (2019-03-29 13:26:06)

Offline

#33 2019-03-29 13:27:29

keukenkikker
Member
From: Netherlands
Registered: 2006-08-08
Posts: 79
Website

Re: Outdated page after article publication

And the diagnostics:

Textpattern version: 4.7.3 (7c46d1f4c8ac79e62a7d5e54a9ddac53)
Last update: 2019-03-22 07:09:19/2019-02-25 23:22:30
Textpattern path: __TXP-ROOT/textpattern
Article URL pattern: section_title
Production status: live
Temporary directory path: __TXP-ROOT/textpattern/tmp
PHP version: 5.6.17-3ubuntu1
GD Graphics Library: 2.1.1; Supported formats: GIF, JPEG, PNG, WebP.
Server timezone: Europe/Amsterdam
Server local time: 2019-03-29 14:23:34
Daylight Saving Time enabled?: 0
Automatically adjust Daylight Saving Time setting?: 1
Time zone (GMT offset in seconds): Europe/Amsterdam (3600)
MySQL: 5.7.25-0ubuntu0.18.04.2 ((Ubuntu)) 
Database server time: 2019-03-29 14:23:34
Database server time offset: 1 s
Database server timezone: SYSTEM
Database session timezone: SYSTEM
Locale: nl_NL.UTF-8
Site / Admin language: nl / nl
Web server: Apache
PHP server API: cgi-fcgi
RFC 2616 headers: 0
Server OS: Linux 4.4.0-143-generic
Admin-side theme: classic 4.7.3
Active plugins: 
	arc_meta-1.2.0
	asy_wondertag-0.5
	com_connect-4.6.0-beta
	hcg_templates-0.3
	pap_contact_cleaner-0.1
	rah_sitemap-1.2
	rss_admin_db_manager-4.5
	rss_auto_excerpt-0.5
	sed_copyright-1.3
	sed_plugin_library-0.3
	smd_at_work-0.10
	smd_calendar-0.55
	smd_if-0.91
	wet_haystack-0.6

.htaccess file contents: 
------------------------
# BEGIN Textpattern
#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default

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

<IfModule mod_mime.c>
    AddType image/svg+xml  svg svgz
    AddEncoding gzip       svgz
</IfModule>
# END Textpattern



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

Edited: Textile’s bc. for readability –– Uli

Offline

#34 2019-03-29 14:18:27

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

Re: Outdated page after article publication

Hi,

when connecting to your website, I get Last-Modified: Thu, 01 Jan 1970 00:00:00 GMT. So it still sends something wrong. Have you tried with plugins disabled?

Additionally, I get two 404 (not found) replies from:

http://www.zziep.nl/textpattern/jquery.js
https://www.xel.nl/pagina-niet-gevonden

The second one comes with cache-control: no-cache, must-revalidate, max-age=0 and also

link: </wp/wp-includes/js/dist/vendor/wp-polyfill-fetch.min.js?ver=3.0.0>; rel=preload; as=script, </wp/wp-includes/js/dist/vendor/wp-polyfill-node-contains.min.js?ver=3.26.0-0>; rel=preload; as=script, </wp/wp-includes/js/dist/vendor/wp-polyfill-formdata.min.js?ver=3.0.12>; rel=preload; as=script, </wp/wp-includes/js/dist/vendor/wp-polyfill-element-closest.min.js?ver=2.0.2>; rel=preload; as=script, <https://www.xel.nl/wp-json/>; rel="https://api.w.org/", </wp/wp-includes/css/dist/block-library/style.min.css?ver=5.1.1>; rel=preload; as=style, </app/plugins/contact-form-7/includes/css/styles.css?ver=5.1.1>; rel=preload; as=style, </app/plugins/cf7-conditional-fields/style.css?ver=1.4.1>; rel=preload; as=style, </app/themes/xel/dist/styles/main.css>; rel=preload; as=style, </wp/wp-includes/js/jquery/jquery.js>; rel=preload; as=script, <https://code.jquery.com/jquery-1.12.4.min.js>; rel=preload; as=script, </app/plugins/contact-form-7/includes/js/scripts.js?ver=5.1.1>; rel=preload; as=script, <https://www.google.com/recaptcha/api.js?render=6Ld6RZoUAAAAAOO5UpaY0lzUcwi9zgFtmkdjd2YO&#038;ver=3.0>; rel=preload; as=script, </app/themes/xel/dist/scripts/main.js>; rel=preload; as=script, <https://use.typekit.net/tof8qmo.js>; rel=preload; as=script, <//cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.js>; rel=preload; as=script

Offline

#35 2019-03-29 14:20:48

keukenkikker
Member
From: Netherlands
Registered: 2006-08-08
Posts: 79
Website

Re: Outdated page after article publication

Ah sorry, that’s not the website where I’m testing. Can you have a look at leertalent.nl?
Thanks a lot!

Last edited by keukenkikker (2019-03-29 14:21:49)

Offline

#36 2019-03-29 14:36:02

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

Re: Outdated page after article publication

keukenkikker wrote #317405:

Can you have a look at leertalent.nl?

This one has most of <script /> *.js sources wrong, but all headers seem fine.

Offline

#37 2019-03-29 14:40:06

keukenkikker
Member
From: Netherlands
Registered: 2006-08-08
Posts: 79
Website

Re: Outdated page after article publication

In the meantime I’ve been disabling plugins and it seems that this solved the last bit. Thanks for having a look, I’ll cleanup the <script /> *.js sources as well! (a lot of cleanup with different websites to do here …)

Last edited by keukenkikker (2019-03-29 14:40:34)

Offline

#38 2022-05-25 15:24:34

mikulas
Member
From: Czech republic
Registered: 2012-03-15
Posts: 38

Re: Outdated page after article publication

Hi. The situation I mentioned here in 2018 is now recurring. After upgrading to TXP 4.8.8, all my sites have the wrong date in the last-modified header.

For example the information from redbot.org :

HTTP/1.1 200 OK
Date: Wed, 25 May 2022 15:04:40 GMT
Server: Apache/2.4.41 (IUS) OpenSSL/1.0.1e-fips
Last-Modified: Thu, 01 Jan 1970 00:00:00 GMT
ETag: "1h7fnha"
Cache-Control: max-age=0
Expires: Wed, 25 May 2022 15:04:40 GMT
Vary: Accept-Encoding,User-Agent
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8

Can you help me?

Offline

#39 2022-05-25 16:24:32

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,252
Website Mastodon

Re: Outdated page after article publication

same for my site:

Vary: Accept-Encoding
Last-Modified: Thu, 01 Jan 1970 00:00:00 GMT
ETag: "1gn71d9"

PS tried testing my EE site which is on the same server and i get this output:

HTTP/1.1 200 OK
Server: nginx
Date: Wed, 25 May 2022 16:25:17 GMT
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Accept-Encoding
X-Frame-Options: SAMEORIGIN
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Pragma: no-cache
Permissions-Policy: interest-cohort=()
Set-Cookie: exp_tracker=%7B%220%22%3A%22index%22%2C%22token%22%3A%228aff7011
        e1c301c991a384096ae09d7930e675e40430edd1ea278f886b3abb32e
        6a178467a655bb35bf5569276550cc9%22%7D; path=/; HttpOnly;
        SameSite=Lax
Set-Cookie: exp_csrf_token=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT;
        Max-Age=0; path=/; HttpOnly; SameSite=Lax
Set-Cookie: exp_csrf_token=eeae825d0c53adc4278c2a4a13a3ddd4dcae075e;
        expires=Wed, 25-May-2022 18:25:16 GMT; Max-Age=7200;
        path=/; HttpOnly; SameSite=Lax
Last-Modified: Wed, 25 May 2022 16:25:17 GMT

What’s it all about, Alfie?

Last edited by bici (2022-05-25 16:28:39)


…. texted postive

Offline

#40 2022-05-25 17:18:43

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

Re: Outdated page after article publication

My oh my.. could you run this code and post the result please:

<txp:php>
$constants = (new ReflectionClass("DateTimeInterface"))->getConstants();
foreach($constants as $name => $format) {
    dmp("{$name}: " . date($format));
}
</txp:php>

Offline

#41 2022-05-25 18:08:46

mikulas
Member
From: Czech republic
Registered: 2012-03-15
Posts: 38

Re: Outdated page after article publication

could you run this code and post the result please:

Hm, the code result is empty:

*    28,59 |     0,06 | <txp:php>
*    28,65 |          | </txp:php>
     28,66 |          | [ ~~~ end of pass 1 ~~~ ]

- debugging mode

Offline

#42 2022-05-25 19:51:02

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,195
Website GitHub

Re: Outdated page after article publication

That’s strange. Where did you insert it? When I put that in my page template above the txp:body tag I get:

ATOM: 2022-05-25T19:49:21+00:00
COOKIE: Wednesday, 25-May-2022 19:49:21 UTC
ISO8601: 2022-05-25T19:49:21+0000
RFC822: Wed, 25 May 22 19:49:21 +0000
RFC850: Wednesday, 25-May-22 19:49:21 UTC
RFC1036: Wed, 25 May 22 19:49:21 +0000
RFC1123: Wed, 25 May 2022 19:49:21 +0000
RFC7231: Wed, 25 May 2022 19:49:21 GMT
RFC2822: Wed, 25 May 2022 19:49:21 +0000
RFC3339: 2022-05-25T19:49:21+00:00
RFC3339_EXTENDED: 2022-05-25T19:49:21.000+00:00
RSS: Wed, 25 May 2022 19:49:21 +0000
W3C: 2022-05-25T19:49:21+00:00

(but I’m also not seeing your problem)


TXP Builders – finely-crafted code, design and txp

Offline

#43 2022-05-25 20:09:40

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

Re: Outdated page after article publication

A bit more legacy and straightforward:

<txp:php>
$constants= array(
        'atom' => DATE_ATOM, 'w3cdtf' => DATE_ATOM, 'rss' => DATE_RSS, 'cookie' => DATE_COOKIE, 'w3c' => DATE_W3C, 'iso8601' => DATE_ISO8601, 'rfc822' => DATE_RFC822,
    );
foreach($constants as $name => $format){
    dmp("{$name}: " . gmdate($format));
}
</txp:php>

I get this even on php 4.5.8:

atom: 2022-05-25T20:28:09+00:00

w3cdtf: 2022-05-25T20:28:09+00:00

rss: Wed, 25 May 2022 20:28:09 +0000

cookie: Wednesday, 25-May-22 20:28:09 GMT

w3c: 2022-05-25T20:28:09+00:00

iso8601: 2022-05-25T20:28:09+0000

rfc822: Wed, 25 May 22 20:28:09 +0000

Offline

#44 2022-05-26 00:59:04

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,637
Website

Re: Outdated page after article publication

etc wrote #333431:

My oh my.. could you run this code and post the result please:

<txp:php>...

I add this in the body of an article, on a live server located in Singapore, (Apache + PHP 8.1)

output:

ATOM: 2022-05-26T09:50:56+09:00
COOKIE: Thursday, 26-May-2022 09:50:56 JST
ISO8601: 2022-05-26T09:50:56+0900
RFC822: Thu, 26 May 22 09:50:56 +0900
RFC850: Thursday, 26-May-22 09:50:56 JST
RFC1036: Thu, 26 May 22 09:50:56 +0900
RFC1123: Thu, 26 May 2022 09:50:56 +0900
RFC7231: Thu, 26 May 2022 09:50:56 GMT
RFC2822: Thu, 26 May 2022 09:50:56 +0900
RFC3339: 2022-05-26T09:50:56+09:00
RFC3339_EXTENDED: 2022-05-26T09:50:56.000+09:00
RSS: Thu, 26 May 2022 09:50:56 +0900
W3C: 2022-05-26T09:50:56+09:00

and also in the HTTP Headers :

Last-Modified: Thu, 01 Jan 1970 00:00:00 GMT

The <txp:modified /> tag output is correct for that article

I see the same on localhost, both with TXP 4.8.8 and TXP dev.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

#45 2022-05-26 08:29:17

mikulas
Member
From: Czech republic
Registered: 2012-03-15
Posts: 38

Re: Outdated page after article publication

A bit more legacy and straightforward:

Output is:

atom: 2022-05-26T08:19:41+00:00
w3cdtf: 2022-05-26T08:19:41+00:00
rss: Thu, 26 May 2022 08:19:41 +0000
cookie: Thursday, 26-May-2022 08:19:41 GMT
w3c: 2022-05-26T08:19:41+00:00
iso8601: 2022-05-26T08:19:41+0000
rfc822: Thu, 26 May 22 08:19:41 +0000

Offline

Board footer

Powered by FluxBB