Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
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
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
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
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
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
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
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
Re: Two issues with 4.7.0
Yeah, that’s not the culprit, my textpattern/vendors/Textpattern/Iterator is 755 …
Offline
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