Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2018-07-03 14:44:15

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,137
GitHub

Re: Outdated page after article publication

Bloke wrote #312834:

True, it was only to be kind to our hoster and the RPC server, which would often flake out at release time when thousands of people downloaded a new version and ran updates at once.

Ah, yes – now I remember. Thanks for the reminder!

That would also mean that if you do re-establish the network connection or find whatever was the blockage, you aren’t shown the slightly confusing, stale message “unable to connect” that is read from prefs for the next 24 hours.

Exactly what I was getting at, but you explained far more clearly than I did.

At the moment we treat these all the same: “connection failed”. Should we be more clever and do more fine-grained checks here and report accordingly? Implies more strings. Worth it?

I don’t know, honestly. This small spate of errors relating to problems connecting may just be a flash in the pan and can be easily managed now we’ve pinned down a few reasons why it could be happening. A doc would be far less work overall.

So it’d auto-check (perhaps) as it does now but if you then figured out why a no-connection issue arose, you wouldn’t have to wait for the timeout before checking again as you could trigger the check manually.

Yes. And with some hosting changes we could find out the sweet spot with any rate limiter. The server overhead of RPC was, I suspect, far greater than this JSON route, and we can remedy that at the hosting end.

Playing devil’s advocate, is it worth pursuing for the minimal current gains, or is this something we could revisit if/when we ever have an automated remote installation process?

Personally, I don’t think it’s a big deal. A niggle, with solutions for some/many/most people. Tag it with a 4.37 milestone!

Offline

#26 2018-07-03 14:47:37

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

Re: Outdated page after article publication

Bloke wrote #312835:

Ah, right. In which case, I agree 1 or 3 is a better option. I have no strong opinion either way. Being English, locales and languages are not my forte!

You don’t know what you miss! Done 1 in dev, let’s see.

Offline

#27 2019-01-12 09:43:57

Gallex
Member
Registered: 2006-10-08
Posts: 1,289

Re: Outdated page after article publication

…but I have noticed suddenly, that the page keeps outdated version after publication of a new article and I must reload the page every time manually.
Settings “Send Last-Modified header” is set to yes and I´m afraid this is what´s not working.

as i experience the same problem for many years now and not only with articles – with forms, template and css pages as well. browser keeps the outdated data in it’s cache and to be sure, i need to clean it constantly.
i would like to know your opinion – do i have the same problem, can i do something about it?

i put below all the data you asked from mikulas.

- Site language: estonian User language: british english

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

- Redbot information

- <txp:php>echo safe_strftime('rfc822');</txp:php> :
L, 12 jaan 2019 09:22:08 GMT

- <txp:php>echo safe_strftime('rfc822', get_lastmod(), 1);</txp:php> :
L, 12 jaan 2019 05:45:00 GMT

- <txp:php>echo Txp::get('\Textpattern\L10n\Locale')->setLocale(LC_ALL, 'en')->getLocale();</txp:php> :

Fatal error: Uncaught exception 'Exception' with message 'Vigane argument' in 
/home/bs3215/domains/linnuvaatleja.ee/public_html/textpattern/vendors/Textpattern/L10n/Locale.php:195 Stack trace: #0 
/home/bs3215/domains/linnuvaatleja.ee/public_html/textpattern/publish/taghandlers.php(4248) : eval()'d code(1): Textpattern\L10n\Locale->setLocale(6, 
'en') #1 /home/bs3215/domains/linnuvaatleja.ee/public_html/textpattern/publish/taghandlers.php(4248): eval() #2 [internal function]: php(Array, 'echo 
Txp::get('...') #3 /home/bs3215/domains/linnuvaatleja.ee/public_html/textpattern/vendors/Textpattern/Tag/Registry.php(116): call_user_func('php', Array, 
'echo Txp::get('...') #4 /home/bs3215/domains/linnuvaatleja.ee/public_html/textpattern/lib/txplib_publish.php(547): Textpattern\Tag\Registry-
>process('php', Array, 'echo Txp::get('...') #5 /home/bs3215/domains/linnuvaatleja.ee/public_html/textpattern/lib/txplib_publish.php(471): 
processTags('php', '', 'echo Txp::get('...') #6 /home/bs3215/domains/linnuvaatleja.ee/public_html/textpatter in 
/home/bs3215/domains/linnuvaatleja.ee/public_html/textpattern/vendors/Textpattern/L10n/Locale.php on line 195

etc: The problem seems to be that en locale is not available on your server (which is rare)

do i have the same problem? actually i experience the same problem almost in every my site and in different host provider

Offline

#28 2019-01-12 10:43:56

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

Re: Outdated page after article publication

Try to update to 4.7.2, a tentative fix seems to be post-4.7.1.

Offline

#29 2019-01-12 12:11:55

Gallex
Member
Registered: 2006-10-08
Posts: 1,289

Re: Outdated page after article publication

at least for this <txp:php>echo Txp::get('\Textpattern\L10n\Locale')->setLocale(LC_ALL, 'en')->getLocale();</txp:php>

it still displays:

Fatal error: Uncaught exception 'Exception' with message 'Vigane argument' in 
/home/bs3215/domains/linnuvaatleja.ee/public_html/textpattern/vendors/Textpattern/L10n/Locale.php:196 Stack trace: #0 
/home/bs3215/domains/linnuvaatleja.ee/public_html/textpattern/publish/taghandlers.php(4398) : eval()'d code(1): Textpattern\L10n\Locale->setLocale(6, 
'en') #1 /home/bs3215/domains/linnuvaatleja.ee/public_html/textpattern/publish/taghandlers.php(4398): eval() #2 [internal function]: php(Array, 'echo 
Txp::get('...') #3 /home/bs3215/domains/linnuvaatleja.ee/public_html/textpattern/vendors/Textpattern/Tag/Registry.php(116): call_user_func('php', Array, 
'echo Txp::get('...') #4 /home/bs3215/domains/linnuvaatleja.ee/public_html/textpattern/lib/txplib_publish.php(542): Textpattern\Tag\Registry-
>process('php', Array, 'echo Txp::get('...') #5 /home/bs3215/domains/linnuvaatleja.ee/public_html/textpattern/lib/txplib_publish.php(466): 
processTags('php', '', 'echo Txp::get('...') #6 /home/bs3215/domains/linnuvaatleja.ee/public_html/textpatter in 
/home/bs3215/domains/linnuvaatleja.ee/public_html/textpattern/vendors/Textpattern/L10n/Locale.php on line 196

Offline

#30 2019-01-12 12:23:24

Gallex
Member
Registered: 2006-10-08
Posts: 1,289

Re: Outdated page after article publication

and in site which runs PHP 7.2.1 and other host provider:

Fatal error: Uncaught Exception: invalid_argument: locale in 
/data01/virt77212/domeenid/www.koortikartul.ee/htdocs/textpattern/vendors/Textpattern/L10n/Locale.php:196 Stack trace: #0 
/data01/virt77212/domeenid/www.koortikartul.ee/htdocs/textpattern/publish/taghandlers.php(4398) : 
eval()'d code(1): Textpattern\L10n\Locale->setLocale(6, 'en') #1 
/data01/virt77212/domeenid/www.koortikartul.ee/htdocs/textpattern/publish/taghandlers.php(4398): 
eval() #2 [internal function]: php(Array, 'echo Txp::get('...') #3 
/data01/virt77212/domeenid/www.koortikartul.ee/htdocs/textpattern/vendors/Textpattern/Tag/Registry.p
hp(116): call_user_func('php', Array, 'echo Txp::get('...') #4 
/data01/virt77212/domeenid/www.koortikartul.ee/htdocs/textpattern/lib/txplib_publish.php(542):
Textpattern\Tag\Registry->process('php', Array, 'echo Txp::get('...') #5 
/data01/virt77212/domeenid/www.koortikartul.ee/htdocs/textpattern/lib/txplib_publish.php(466): 
processTags('php', '', 'echo Txp::get('...') #6 /data01/virt77212/domeenid/www.koortikartul.ee/htdocs in 
/data01/virt77212/domeenid/www.koortikartul.ee/htdocs/textpattern/vendors/Textpattern/L10n/Locale.p
hp on line 196

Last edited by Gallex (2019-01-12 12:37:51)

Offline

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

etc
Developer
Registered: 2010-11-11
Posts: 5,053
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,053
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,053
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

Board footer

Powered by FluxBB