Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#151 2019-12-25 14:03:05

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,427
Website GitHub

Re: Textpattern CMS demo site

Great stuff, Pete. One thing I meant to ask ages ago: do you know why Diagnostics lists the last update time as 1970-01-01 00:00:00? Anything core can do to make this value more useful /robust in environments such as this?


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

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#152 2019-12-25 14:15:40

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

Re: Textpattern CMS demo site

Bloke wrote #320704:

[D]o you know why Diagnostics lists the last update time as 1970-01-01 00:00:00?

I assume, and please correct me if I’m wrong as I’m using assumptions based on…I dunno…, that epoch is listed if there has been no update check since install, specifically because the time window is blocking it.

Example: if the site builds at 15:00, then the second date listed is the build time. Any check within the first hour of life (given that there’s a 1 hour limit on checking) will be bypassed, and any check at or after 16:00 would go through, and the first date in the list would be updated.

I just checked dev-demo and it says:

Last update: 2019-12-25 14:11:30/2019-12-25 12:00:01

So, built at 12:00, and I accessed diagnostics at 14:11, which triggered a check. If I log out and log in again, then go back to diagnostics, I see the same string, presumably because the update limit is in effect.

Last edited by gaekwad (2019-12-25 14:48:02)

Offline

#153 2019-12-25 15:14:06

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,427
Website GitHub

Re: Textpattern CMS demo site

gaekwad wrote #320706:

I assume… that epoch is listed if there has been no update check since install.

Ah, yeah, that might be it. If it corrects itself after the first hour, that’s fine. I was just curious as I expected it to be the same date stamp for both dates. First being installation, second the update. Maybe that’s not what the two dates represent, I can’t recall.


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

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#154 2019-12-25 16:12:56

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

Re: Textpattern CMS demo site

Bloke wrote #320708:

First being installation, second the update.

This, but the other way around.

Offline

#155 2019-12-25 16:23:38

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,427
Website GitHub

Re: Textpattern CMS demo site

gaekwad wrote #320712:

This, but the other way around.

slaps brain Of course.

Might just tweak that to omit the update stamp if it isn’t a valid date. Looks a bit daft, imo.


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

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#156 2019-12-25 16:43:22

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

Re: Textpattern CMS demo site

Bloke wrote #320713:

omit the update stamp if it isn’t a valid date.

I’ll leave the used fivers in the usual place.

Offline

#157 2019-12-25 22:45:10

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,427
Website GitHub

Re: Textpattern CMS demo site

:) I’ve had a go in this commit but it needs testing because I think this situation only occurs on automated installs (and I don’t quite know why). Certainly in my tests on a regular installation, $dbupdatetime was always set to some decent value every time I logged into the admin side.


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

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#158 2019-12-30 13:12:26

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

Re: Textpattern CMS demo site

Heads up: I’m fiddling with some demo server settings today. There should be zero downtime, if I do my job correctly.

If all goes well I’ll have another demo site for you to poke and prod today. More info on that later, if I do my job correctly…

Offline

#159 2019-12-30 17:17:29

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

Re: Textpattern CMS demo site

File this under “running with scissors”.

There’s a new demo site for you to break investigate. This is not going to be publicised from the demo server front page just yet.

First, some background information. There are multiple versions of PHP that are actively supported and/or maintained. The most recent production version of PHP is version 7.4.1, released December 2019. There are people who work on making 7.4.* better, and there are people that are working on the upcoming major version of PHP. This is known currently as PHP version 8. Assuming there’s no skipping of versions (ahem, PHP version 6), we should expect PHP 8.0.0 to arrive in 2021.

The nature of PHP development is such that it’s possible to use a pre-release, in-progress, development build of PHP version 8. And so, over the weekend, I decided to combine in-development Textpattern with in-development PHP, using the latest source code of each.

Textpattern 4.8.0-dev runs mostly OK on PHP 8.0.0-dev. There are some errors thrown, and there’s some debugging to do to find out why, but here’s a screenshot of the Diagnostics from Textpattern 4.8.0-dev on PHP 8.0.0-dev and MySQL (Percona-flavoured) 8.0:

The errors relate to optional-but-missing JSON files, along with some more generic errors elsewhere.

We have at least 18 months before PHP 8.0.0 is released, I figured it would be useful for people living on the ragged edge to have a peek.

Here you go:

>> php-src-dev-demo.textpattern.co/ <<

Login credentials for the other demo sites work with this site. No change there.

This demo site will refresh every 3 hours on the same schedule as the other demo sites, and when I have fresh eyes I’ll set the PHP to auto-build from source once a day.

In due course, we’ll have a method of keeping track of issues relating to upcoming PHP releases. The nature of PHP development means that changes may be introduced, Textpattern makes changes to keep up, and PHP changes something else, and Textpattern undoes something, and PHP changes something, and so on. The main benefit is better visibility, and as release versions are firmed up we can make sure there’s appropriate compatibility.

Please leave a note if something is broken, and I’ll investigate.

Edits: I’ve changed the original screenshot used it as it was confusing.

Last edited by gaekwad (2019-12-30 18:08:09)

Offline

#160 2019-12-30 17:22:03

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

Re: Textpattern CMS demo site

Maintenance Monday, expect minor turbulence.

Done: demo sites have migrated back to Amsterdam from Frankfurt, DNS changes will roll out over the next 48 hours.

Last edited by gaekwad (2019-12-30 17:53:08)

Offline

#161 2019-12-30 17:46:00

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

Re: Textpattern CMS demo site

gaekwad wrote #320763:

Textpattern 4.8.0-dev runs mostly OK on PHP 8.0.0-dev. There are some errors thrown, and there’s some debugging to do to find out why, but here’s a screenshot of the Diagnostics from Textpattern 4.8.0-dev on PHP 8.0.0-dev and MySQL (Percona-flavoured) 8.0: …

Hi Pete,
The errors seem to be appearing only because of the folder permissions. Are you sure they have the right ones?


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

Offline

#162 2019-12-30 17:56:36

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

Re: Textpattern CMS demo site

colak wrote #320765:

The errors seem to be appearing only because of the folder permissions. Are you sure they have the right ones?

These are different errors, not the red errors shown in the screenshot. I should have been more specific, sorry about that. The permissions errors are deliberate, I don’t open up write access on the demo sites, too much of a risk.

There are some errors thrown relating to optional-but-missing JSON files on the admin theme, and a couple of more generic errors elsewhere. Current PHP handles the missing JSON without an error, new upcoming 2021-era PHP doesn’t handle things quite so gracefully…and I am not sure why.

Last edited by gaekwad (2019-12-30 18:00:26)

Offline

#163 2019-12-30 18:06:58

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

Re: Textpattern CMS demo site

colak wrote #320765:

The errors seem to be appearing only because of the folder permissions. Are you sure they have the right ones?

I’ve changed the screenshot — far too confusing! Thanks for the second brain, Yiannis.

Offline

#164 2020-01-18 17:20:56

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

Re: Textpattern CMS demo site

gaekwad wrote #320763:

Here you go:

>> php-src-dev-demo.textpattern.co/ <<

[…]

This demo site will refresh every 3 hours on the same schedule as the other demo sites, and when I have fresh eyes I’ll set the PHP to auto-build from source once a day.

This is now done, pending a scheduled run tomorrow: every day at 4:04am UTC, PHP will build from source. This takes about 20-25 minutes and pegs the CPU at 100% (run it red, get the job done), so if you’re accessing the site between 4:04am UTC and about 04:30 UTC, it might feel a bit slower than usual.

Offline

#165 2020-01-20 17:34:42

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

Re: Textpattern CMS demo site

gaekwad wrote #321220:

This is now done, pending a scheduled run tomorrow: every day at 4:04am UTC, PHP will build from source.

Daily automatic PHP rebuild schedule ran like clockwork, finished at 04:20 am:

$ php-src -v
PHP 8.0.0-dev (cli) (built: Jan 20 2020 04:20:50) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.0-dev, Copyright (c) Zend Technologies

Offline

Board footer

Powered by FluxBB