Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2017-12-19 11:29:55

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

Parts of backend not functioning after update

Hello Forum,

long time no write but I’ve now been given someone else’s TXP site to update from 4.2.0 to the latest because the server people want to push a PHP update. Some folks react only when knife hit bone.

Update went generally ok (I had to update the latest ZCR too) but now the backend shows the following problems:
- in the Plugins tab I can’t disable a Plugin. I chose to change a selected plugin status from the dropdown but nothing happens.
- The Forms page is a mess with the accordion not opening and it being doubled full-width as the bottom. I can’t see a single form, let alone do changes.

The diagnostic shows no errors.

Any ideas where the damage could be?

P.S. I also get:

Warning "Use of undefined constant GLOB_BRACE - assumed 'GLOB_BRACE' (this will throw an Error in a future version of PHP)".
Warning "glob() expects parameter 2 to be integer, string given".

..when I access Admin > Languages

Last edited by datorhaexa (2017-12-19 11:40:52)

Offline

#2 2017-12-19 11:47:03

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

Re: Parts of backend not functioning after update

Solved the first two problems after reading older posts here. The reason appears to be an old jquery.js hanging in the textpattern directory.

The problem with the error messages when I open the Languages page remains.

Offline

#3 2017-12-19 11:52:46

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

Re: Parts of backend not functioning after update

datorhaexa wrote #308341:

The problem with the error messages when I open the Languages page remains.

Hello, what is your current PHP version? GLOB_BRACE is a standard PHP constant since 4.3.0.

Offline

#4 2017-12-19 11:55:12

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

Re: Parts of backend not functioning after update

etc wrote #308343:

Hello, what is your current PHP version? GLOB_BRACE is a standard PHP constant since ~4.2.

I updated to PHP 7.2 which it should be now unless Strato (the hoster) doesn’t take time with those things. Might be a reason. It’s not critical as I can at least work through the site now and do changes. Perhaps I should wait a bit.

Last edited by datorhaexa (2017-12-19 11:55:44)

Offline

#5 2017-12-19 11:57:22

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

Re: Parts of backend not functioning after update

datorhaexa wrote #308340:

“Use of undefined constant GLOB_BRACE – assumed ‘GLOB_BRACE’

Are you running on a non-GNU host? I believe Strato use Solaris. According to the PHP Docs

The GLOB_BRACE flag is not available on some non GNU systems, like Solaris.

EDIT: etc was faster about the PHP version.

Last edited by Bloke (2017-12-19 11:58:00)


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

#6 2017-12-19 12:00:51

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Parts of backend not functioning after update

I’ve not tested Textpattern 4.6.x or later under PHP 7.2 yet myself (MAMP only goes up to 7.1.8 at the moment) so I can’t rule out an incompatibility with that version.

Offline

#7 2017-12-19 12:05:16

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

Re: Parts of backend not functioning after update

Bloke wrote #308345:

Are you running on a non-GNU host? I believe Strato use Solaris. According to the PHP Docs

I have no idea what Strato are using. I only see this: Server: Apache/2.2.31 (Unix)

Last edited by datorhaexa (2017-12-19 12:06:00)

Offline

#8 2017-12-19 12:08:57

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

Re: Parts of backend not functioning after update

philwareham wrote #308346:

I’ve not tested Textpattern 4.6.x or later under PHP 7.2 yet myself (MAMP only goes up to 7.1.8 at the moment) so I can’t rule out an incompatibility with that version.

Ok. I reverted to 7.0. Now I get only

Warning "glob() expects parameter 2 to be integer, string given".

as an error on the Languages page.

Offline

#9 2017-12-19 12:08:58

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

Re: Parts of backend not functioning after update

datorhaexa wrote #308347:

I have no idea what Strato are using.

  1. Make a hidden / pending article called ‘Server info’.
  2. Set the body to “Leave Text untouched”.
  3. Put the code below in the article, Save then View it.
<txp:php>
phpinfo();
</txp:php>

Somewhere in there it should tell you what OS your host is running. Once you’ve found out, delete the article.


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

#10 2017-12-19 12:10:31

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

Re: Parts of backend not functioning after update

Actually, scratch my idea then. If it works better if you downgrade PHP then it’s a compatibility issue with our code and future PHP versions.

Note to self / dev team: find a better way to find files than using GLOB_BRACE.


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

#11 2017-12-19 12:14:35

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

Re: Parts of backend not functioning after update

Bloke wrote #308349:

1. Make a hidden / pending article called ‘Server info’.
2. Set the body to “Leave Text untouched”.
3. Put the code below in the article, Save then View it.

<txp:php>...

Somewhere in there it should tell you what OS your host is running. Once you’ve found out, delete the article.

What a pain till I get a simple page work in any section of this site! The previous developer has created a misery of no end.

Anyway. System: SunOS localhost 5.10 Generic_150401-49 i86pc

Offline

#12 2017-12-19 12:23:59

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

Re: Parts of backend not functioning after update

Bloke wrote #308350:

Note to self / dev team: find a better way to find files than using GLOB_BRACE.

Yes, it is not defined on Solaris. Most people seem to workaround with

defined('GLOB_BRACE') ? GLOB_BRACE | GLOB_ONLYDIR : GLOB_ONLYDIR

No idea if it works, no Solaris at hand. Nonsense anyway, we should just go without braces.

Offline

Board footer

Powered by FluxBB