Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2020-07-03 22:36:05

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,613
Website

Re: Feedback to: Textpattern CMS 4.8.1 Released

DragonBard wrote #324259:

If there is any diagnostic data you want me to collect, let me know and I am happy to provide it.

Thank you. Server stacks aren’t my forte, so I’m not entirely sure what info would be of use to find out what’s going on here.

Perhaps @gaekwad would have a view on this. Let’s see if he reads this and offers any thoughts.

Last edited by Bloke (2020-07-03 22:37:13)


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

Online

#32 2020-07-03 23:27:23

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 2,034
Website

Re: Feedback to: Textpattern CMS 4.8.1 Released

I’ve just done some rather quick, basic test on Dreamhost running 7.4.3(fastCGI), the current recommend version, and the issue still seems to happen, but only intermittently, and does not seem to happen at all on one install.

(hmm, I wonder if I have any difference in the htaccess files between those two sites. gonna check later today)


Where is that emoji for a solar powered submarine when you need it ?

Offline

#33 2020-07-04 00:24:58

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 1,667
Website

Re: Feedback to: Textpattern CMS 4.8.1 Released

hello: just updated to 4.8.1… many thanks! it was oh so painless.
BUT why do we get this error:

“Update server inaccessible

The check for updates failed, often due to network congestion or a connection timeout. This situation usually resolves itself within an hour or two so try revisiting this panel later.”

of course it never resolves itself. ;-)

it may be an issue with opalstack hosting… or not.
OS has no issues with pinging and installing updates from EE, so not sure what the differences may be in contacting servers for info re updates.

in the meantime I’m heading off to update the rest of my websites. Again many thanks to the devs.


…. texted postive

Offline

#34 2020-07-04 01:13:15

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,613
Website

Re: Feedback to: Textpattern CMS 4.8.1 Released

bici wrote #324265:

Update server inaccessible

I’m willing to bet if this never clears for you that it’s a host security setting. If you dig into your php.ini or look at your PHP diagnostics from Txp’s Admin->Diagnostics panel, you’ll probably see mention of allow_url_fopen being disabled.

I’m considering adding a helper object to the upcoming 4.8.2 (if not there, definitely in 4.9.0) that will handle URL-based connections for us via cURL instead of using file_get_contents() all the time. Our use of the latter is because it’s built into PHP. It’s cheap. It’s fast. But it also has a lot of suppressed error messages around it to cater for situations when a server isn’t accessible or the call itself is blocked by the host.

The thing is, because we block errors we never find out why the connection fails. In this case specifically, if it can’t connect to textpattern.com at all due to a hosting configuration restriction, you’ll see that message all the time. It’s not really that the server is inaccessible, it’s that the hosting environment won’t let PHP contact the server in this manner.

Let me see if I can throw together a real quick test class tomorrow, we’ll plug it into your Diagnostics panel and see if the message goes away. If that’s the case, we can refine it and start to roll it out to replace our use of file_get_contents() throughout. This will greatly benefit our ability to update plugins directly from the Plugins panel in 4.9.


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

Online

#35 2020-07-04 02:06:20

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 2,034
Website

Re: Feedback to: Textpattern CMS 4.8.1 Released

phiw13 wrote #324263:

I’ve just done some rather quick, basic test on Dreamhost running 7.4.3(fastCGI), the current recommend version, and the issue still seems to happen, but only intermittently, and does not seem to happen at all on one install.

  • here is the Dreamhost PHP config (PDF) if someone wants to dig in it.
  • I’ve modified the htaccess file for the site that has some issues, it is now basically the same as on the site where I don’t see caching issues (anymore). I still see some problems. no clue why. I verified also that the htaccess in /textpattern/ did not contain anything that might cause caching issues.

The htaccess file is structured to have the default Textpattern part first, then I include some caching stuff (based on h5bp) and CSP directives. the last part is site specific permanent redirects and any odd tidbit.

Sounds all very voodoo though…


Where is that emoji for a solar powered submarine when you need it ?

Offline

#36 2020-07-04 14:49:35

gaekwad
Admin
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 3,060

Re: Feedback to: Textpattern CMS 4.8.1 Released

Bloke wrote #324257:

Weird about FastCGI, though. I’ve not heard of anyone specifically complaining about Txp not running under it, and I’m pretty sure our demo servers run PHP-FPM.

Yup.

I’d love to find out what’s going on under the hood in such situations so we could see if there was anything we can do to stop it.

Nagging thought – we should prepare a boilerplate page/single-pager to approach hosting orgs that have finicky problems and ask for a gratis testing account: we can perhaps find a solution, they have happier customers, everyone wins.

Offline

#37 2020-07-04 15:46:13

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,613
Website

Re: Feedback to: Textpattern CMS 4.8.1 Released

gaekwad wrote #324279:

we should prepare a boilerplate page/single-pager to approach hosting orgs that have finicky problems and ask for a gratis testing account

If they’re amenable to that, bring it on.


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

Online

#38 2020-07-04 16:06:39

DragonBard
Member
Registered: 2014-07-01
Posts: 16

Re: Feedback to: Textpattern CMS 4.8.1 Released

gaekwad wrote #324279:

Nagging thought – we should prepare a boilerplate page/single-pager to approach hosting orgs that have finicky problems and ask for a gratis testing account: we can perhaps find a solution, they have happier customers, everyone wins.

You want a testing account on DreamHost? I can give you one. I have unlimited hosting with “resell” rights. The only difference is I would be the one with the god account. I can set up a separate user for you and you would have full SSH and SFTP access. I can even provide limited access to their control panel, though that will require some coordination as I would have to set up the database first.

Last edited by DragonBard (2020-07-04 16:15:14)

Offline

#39 2020-07-04 20:04:56

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 1,667
Website

Re: Feedback to: Textpattern CMS 4.8.1 Released

I have asked OS teach Support about this issue. Perhaps they have a valid reasons to keep allow_url_fopen off, or they may have other suggestions.

EDIT: their quick response:
Yes, just let me know the name of the application and I’ll enable that feature for you.

Such great service!

Last edited by bici (2020-07-04 20:23:21)


…. texted postive

Offline

#40 2020-07-04 20:58:01

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 1,667
Website

Re: Feedback to: Textpattern CMS 4.8.1 Released

Diagnostics
Pre-flight check
All checks passed.

allow_url_fopen On On

A-OK on OpalStack!


…. texted postive

Offline

Board footer

Powered by FluxBB