Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2018-05-16 13:23:50

funtoosh
Member
From: Münster, Germany
Registered: 2006-10-09
Posts: 153
Website

Re: Two issues with 4.7.0

Bloke, there was no info on that while upgrading, no. Refreshes did not help either, but — opening a new private window in FF dev finally did the trick. So it’s there!

As for the rest of the idiosyncratic behaviour: this will be down to serverside issues, but I have no clue on how to debug that . . . there were no serverside issues on this machine at all in the last couple years, with textpattern.

Offline

#26 2018-05-16 13:55:45

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

Re: Two issues with 4.7.0

funtoosh wrote #311840:

Bloke, there was no info on that while upgrading, no. Refreshes did not help either, but — opening a new private window in FF dev finally did the trick. So it’s there!

Aggressive browser cache then. Grrrr.

As for the rest of the idiosyncratic behaviour: this will be down to serverside issues… there were no serverside issues on this machine at all in the last couple years, with textpattern.

So we need to find out why, because if it’s doing it on your server, Murphy’s law says it’ll happen to someone else too. If we can stamp it out / make fewer assumptions / report things better / add more defensive code, then it’ll benefit everyone with similar configurations and make Textpattern more robust.

So the more info we have about your setup (and we have a lot already, thank you) the more chance we’ll have to configure a test rig up to match and we might then be able to track down what’s going astray.


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

#27 2018-05-16 13:58:10

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

Re: Two issues with 4.7.0

Pro tip: use Tor or similar cache-less browser for sites that have had problematic updates in the past, exit the browser completely and it’ll give you a clean slate every time.

(Anything else you do with Tor…well, that’s up to you.)

Offline

#28 2018-05-16 14:09:41

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

Re: Two issues with 4.7.0

funtoosh wrote #311811:

Fatal error: Uncaught exception ‘UnexpectedValueException’

I’ve tried everything I can think of – reducing permissions, renaming the themes directory, even removing it – and all I get is a Not writable files/directories: /path/to/themes message at the top of the Themes panel. And I’m running a lower version of PHP than you, too. Can’t figure why the UnexpectedValueException error would be thrown… anyone?


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

#29 2018-05-16 14:15:24

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

Re: Two issues with 4.7.0

Bloke wrote #311843:

Can’t figure why the UnexpectedValueException error would be thrown… anyone?

Must be a permissions thing. Either user:group is wrong or file permissions don’t permit access.

@funtoosh: when you FTP files to your server, what permissions are set by the FTP application, please?

Last edited by gaekwad (2018-05-16 14:16:08)

Offline

#30 2018-05-16 14:15:49

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,733
Website

Re: Two issues with 4.7.0

@funtoosh: Perhaps you can take the plugins out of the mix by setting the plugin status to 0 in the table txp_plugin in phpMyAdmin or similar.

Also, do you have any plugins loading from the plugin_cache directory? (I can’t remember if they’re reported in diagnostics). If not, maybe rename that directory temporarily, so they’re not loaded.


TXP Builders – finely-crafted code, design and txp

Offline

#31 2018-05-16 14:17:08

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

Re: Two issues with 4.7.0

PS: the only time I’ve ever encountered UnexpectedValueException stuff it was a) Laravel-related and b) permissions solved it.

Offline

#32 2018-05-16 14:29:45

funtoosh
Member
From: Münster, Germany
Registered: 2006-10-09
Posts: 153
Website

Re: Two issues with 4.7.0

Hey all,
I don’t use specific overrides when FTP’ing with Fetch. The textpattern/vendors/Textpattern/Iterator/RecDirIterator.php e.g. has 644.

jakob wrote #311846:

Also, do you have any plugins loading from the plugin_cache directory? (I can’t remember if they’re reported in diagnostics).

Jakob, no, nothing that I would be aware of.

Offline

#33 2018-05-16 14:33:18

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

Re: Two issues with 4.7.0

funtoosh wrote #311848:

I don’t use specific overrides when FTP’ing with Fetch. The textpattern/vendors/Textpattern/Iterator/RecDirIterator.php e.g. has 644.

644 means nobody has execute rights, which is possibly a factor in the permissions error.

Try this – set file and directory permissions to 755 on upload instead of 644, so the web server user can do its work.

Last edited by gaekwad (2018-05-16 14:33:26)

Offline

#34 2018-05-16 14:51:01

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

Re: Two issues with 4.7.0

644 is fine for the PHP files – but the directories themselves usually need 755 – or at least the relevant execute permission and a user:group that the web server can use, as you say.

If I manually hack my textpattern/vendors/Textpattern/Iterator directory to have 644 permissions, I only get the expected Fatal error: Class 'Textpattern\Iterator\RecDirIterator' not found – not the UnexpectedValueException.


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

#35 2018-05-16 14:58:37

funtoosh
Member
From: Münster, Germany
Registered: 2006-10-09
Posts: 153
Website

Re: Two issues with 4.7.0

Yeah, that’s not the culprit, my textpattern/vendors/Textpattern/Iterator is 755 …

Offline

#36 2018-05-16 15:00:11

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

Re: Two issues with 4.7.0

And PHP says:

Throws an UnexpectedValueException if the path cannot be found or is not a directory.

EDIT: And in the case of the RecursiveIteratorIterator, one of the user comments states:

if there is a directory contained within the directory you are searching in that you have no access to read an UnexpectedValueException will be thrown (leaving you with an empty list).

This just gets weirder.

Last edited by Bloke (2018-05-16 15:02:19)


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