Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2017-12-19 12:29:58

datorhaexa
Member
From: Düsseldorf, Germany
Registered: 2005-05-23
Posts: 115
Website

Re: Parts of backend not functioning after update

Guys, the site seems to function somehow. This error will appear but it’s not critical and they have no budget for more. It’s enough of a pain that I have to deal with the ugliest TXP state of a site I have seen till now. How could people make such a mess!?

Anyway. Thank you a ton for the help! It feels like home here, always.

Offline

#14 2017-12-19 12:31:17

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

Re: Parts of backend not functioning after update

We should probably ditch it wholesale in core. Options:


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

#15 2017-12-19 12:32:59

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

Re: Parts of backend not functioning after update

datorhaexa wrote #308354:

This error will appear but it’s not critical

It’s only a warning. Will disappear when you put the site in Live mode.

We’ll find a way to work around it… maybe even sneak a fix it into 4.7.0 since we’re doing all manner of Language things there anyway.


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

#16 2017-12-19 12:33:07

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

Re: Parts of backend not functioning after update

Bloke wrote #308355:

Loop by hand with a DirectoryIterator or FilesystemIterator.

+1

Offline

#17 2017-12-19 12:33:54

datorhaexa
Member
From: Düsseldorf, Germany
Registered: 2005-05-23
Posts: 115
Website

Re: Parts of backend not functioning after update

Bloke wrote #308356:

It’s only a warning. Will disappear when you put the site in Live mode.

Yes, warning I should have said. :-)

Offline

#18 2017-12-19 12:34:40

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

Re: Parts of backend not functioning after update

etc wrote #308357:

+1

Let’s do that then. If you have ten mins today, please feel free to replace any glob() calls with that. If not, I’ll tackle it (probably tonight if I can).


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

#19 2017-12-19 12:36:28

datorhaexa
Member
From: Düsseldorf, Germany
Registered: 2005-05-23
Posts: 115
Website

Re: Parts of backend not functioning after update

I seem to be the unsuspecting tester.

Offline

#20 2017-12-19 12:45:21

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

Re: Parts of backend not functioning after update

datorhaexa wrote #308360:

I seem to be the unsuspecting tester.

We have a lot of those ;-) That’s what makes Txp so rock solid.


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

#21 2017-12-19 12:47:45

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

Re: Parts of backend not functioning after update

Bloke wrote #308359:

Let’s do that then. If you have ten mins today, please feel free to replace any glob() calls with that. If not, I’ll tackle it (probably tonight if I can).

It does not seem to filter by a mask, so we can also just do two or three glob() calls, or even glob everything and filter manually for lang directory.

datorhaexa wrote #308360:

I seem to be the unsuspecting tester.

You’ll be if you install 4.7. And welcome home btw :-)

Offline

#22 2017-12-19 12:57:36

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

Re: Parts of backend not functioning after update

etc wrote #308362:

It does not seem to filter by a mask

Nope. So either mechanism you mentioned works for me, whichever is most efficient/neatest.


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

#23 2017-12-19 13:37:54

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

Re: Parts of backend not functioning after update

Done it in Lang.php (4.7), but not (yet) in setup, since we have spoken of removing themes directory from there anyway? If so, only one directory has to be scanned, hence no need fo GLOB_BRACE.

Offline

#24 2017-12-19 14:05:59

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

Re: Parts of backend not functioning after update

etc wrote #308364:

Done it in Lang.php (4.7)

Awesome! Great solution to fall back on an iterator if GLOB_BRACE isn’t available.

but not (yet) in setup, since we have spoken of removing themes directory from there anyway?

I can’t remember actually, but I think we decided to only ship public themes in the setup directory and not with the main 4.7 themes directory. This is so that we don’t potentially overwrite anyone’s sites, as there’d be no simple way to ‘sync’ the file system with the DB on upgrade (short of forcing an export, which seems a bit risky for anyone who’s running 4.7.0-dev and has started playing with themes already).

Can’t recall for sure, but I think that was the outcome. So we should be able to do the same trick in setup.

EDIT: Might even be some code reduction to be had here, when Themes is merged, as we could possibly use the Theme API to handle content loading. Probably should check the Themes does this glob fallback too.

Last edited by Bloke (2017-12-19 14:08:42)


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

Board footer

Powered by FluxBB