Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Feedback to: Textpattern CMS 4.6.0 beta 3 released
I’ll revisit the Save button, duplicate links layout and see what I can do. The file list is staying on the left though, sorry.
The multi-edit checkboxes have been ranged right since before I took on the UI, but I do agree the would be consistently better on left,
Offline
Re: Feedback to: Textpattern CMS 4.6.0 beta 3 released
Bloke wrote #300938:
Thank you for the report. Can you please supply some more context:
- What language is your admin side in?
- What are you searching for, so I can copy the same characters and try to reproduce it?
- Do you have an example article title or two that I could also create on my development site to test for matches?
Also, some more info about your environment — PHP / MySQL version, table and column collation if you know it, and so forth would be helpful. Thanks.
Indeed I see the same (why did I never test that before?)
User_Error "Illegal mix of collations for operation 'like'"
in /Users/username/Sites/txptest/textpattern/lib/txplib_db.php at line 405.
adminErrorHandler()
textpattern/lib/txplib_db.php:405 trigger_error()
textpattern/lib/txplib_db.php:1183 safe_query()
textpattern/include/txp_list.php:214 getThing()
textpattern/include/txp_list.php:60 list_list()
textpattern/index.php:211 include()
some answers to your Qs
- Admin is in English
- a Japanese word (it does”t matter which) I know both title and body of an article contain that word
- Just go to Wikipedia search any worldwide relevant subject then from the side bar, click the language icons, select a non-latin language copy paste and your done. E.g: Apple. That article has lots of language choices.
PHP version: 5.5.36, MySQL: 5.6.21 (TXP beta3), according to diagnostics (high): Charset (default/config): latin1/utf8mb4
PS – I get the same error if the admin language is Japanese
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg
Offline
Re: Feedback to: Textpattern CMS 4.6.0 beta 3 released
Bloke wrote #300937:
I can understand the logic flow and the screen reader argument. I don’t use one so I’m probably gonna annoy those that do. Apologies in advance.
From my own publishing processes, I still can’t quite get used to the Save button being where it is on the Write panel.
ditto me (and that button has been at the top for a long time…) I’d much prefer the “Publish/Save” button to be under the textarea(s) – visually. At least that button is in the tab chain, good for keyboard + screen reader users.
(…) but having the Save button at the top when it’s on the left would feel a little weird I guess.
If you can move only visually, that would be (eventually) OK . For your pleasure, try using the Preference panel from the keyboard. The tab chain is out of whack, the “save” button comes immediately after the navigation thingie. The saving grace there is that most form controls are either single-line inputs or checkbox/radios and selects. Focus, edit, then press “return/enter” will trigger the “save” button. Not so on the Write / Pages / Forms panels where the main action takes place inside a textarea.
The other thing that strikes me as odd in the Forms panel is the location of the multi-select checkboxes. Everywhere else they’re on the left and the with-selected tool is immediately below, implying they’re related. If you go tablet/mobile and have a full-width content list, the checkboxes are ranged right, but the with-selected dropdown remains on the left beneath the list. A broken relationship, perhaps? It wasn’t ideal when the list came second on the page, but seems more obviously disconnected now it’s first on-screen. Or is it just me?
No, not really, for my personal copy of Sandspace theme, I put those on the left (LTR), public release of said theme matches Core though. It is just a two line change in the stylesheet, the HTML is already fine.
Now, onto those Create New and Duplicate links. (…) Since we have the new Tools area in
inputLabel(), does it make sense to put those links near the tag builder link? Keep them all above the textarea? After all, logically you’re creating a new (blank) textarea or duplicating the content of the textarea. Granted, it might cause a problem on small factor screens, as the links would wrap, which’d look a bit crummy. Not sure how to solve that one.
Put them before the first input field (“Form name” on the Forms panel), then float them to the right (left in RTL). In my mind, that is the action: you open the Forms panel, want to create a new form or duplicate an existing one that action should be near the top – one could argue that those 2 links ought to go in the side bar, I personally don’t think so, the sidebar is navigation, the main column is editing.
Example: this Sandspace mockup
——-
I really like how Beta 3 is shaping up, some rough edges with the tag builder notwithstanding.
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg
Offline
#19 2016-09-02 05:17:37
- subskie
- New Member
- Registered: 2016-09-01
- Posts: 4
Re: Feedback to: Textpattern CMS 4.6.0 beta 3 released
Bloke wrote #300938:
Thank you for the report. Can you please supply some more context:
- What language is your admin side in?
- What are you searching for, so I can copy the same characters and try to reproduce it?
- Do you have an example article title or two that I could also create on my development site to test for matches?
Also, some more info about your environment — PHP / MySQL version, table and column collation if you know it, and so forth would be helpful. Thanks.
I see that error on my local OpenServer
Textpattern: 4.6.0-beta.2, PHP: 5.5.13, MySQL: 5.5.38-log, character_set_database: utf8, with a Russian language admin-side
as well as on a demo site (English admin-side, Textpattern: 4.6.0-beta.3 )
English Amelia – No results found.
Icelandic Ástþrúður – No results found.
Greek Αγάθη – User_Error “Illegal mix of collations for operation ‘like’”.
Russian Альбина – User_Error “Illegal mix of collations for operation ‘like’”.
Japanese 天照 – User_Error “Illegal mix of collations for operation ‘like’”.
Last edited by subskie (2016-09-02 05:23:11)
Offline
Re: Feedback to: Textpattern CMS 4.6.0 beta 3 released
The txp_img folder is excluded in the b3 archive.Is there a reason for that?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Feedback to: Textpattern CMS 4.6.0 beta 3 released
phiw13 wrote #300941:
this Sandspace mockup
I like that! Very neat and collapses logically on mobile too. Maybe we could steal *ahem* plagiarise *cough* pay homage to that in Hive.
Failing that, note to self: install Sandspace in future.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
Re: Feedback to: Textpattern CMS 4.6.0 beta 3 released
phiw13 wrote #300940:
User_Error "Illegal mix of collations for operation 'like'"...Charset (default/config): latin1/utf8mb4
Thanks for the info. I suspect the charset might be the issue and why I can’t replicate it on mine. For some reason your database appears to have different collations on some tables compared with the connection (or different collation on other tables joined together in the search query).
I wonder if the upgrade assumed you were using utf8, forced utf8mb4 on you, when you were actually previously using latin1 or something. Not sure, it’s not my area of expertise.
As for it not finding things in non-latin character sets, I’ll have to do some digging. It’s finding articles with titles containing such language strings for me…
EDIT: actually, could you please temporarily hack your textpattern/include/txp_list.php file. Find line 214ish (in beta.3) and change the line to read:
$total = getThing("SELECT COUNT(*) FROM $sql_from WHERE $criteria", 1);
Adding the ,1 on the end will dump the query it’s using to the page. So when you visit the Articles panel you’ll see it there. Running a search will show you what the query is trying to match. For example, my one says:
SELECT COUNT(*) FROM textpattern textpattern
LEFT JOIN txp_category category1 ON category1.name = textpattern.Category1 AND category1.type = 'article'
LEFT JOIN txp_category category2 ON category2.name = textpattern.Category2 AND category2.type = 'article'
LEFT JOIN txp_section section ON section.name = textpattern.Section
LEFT JOIN txp_users user ON user.name = textpattern.AuthorID WHERE textpattern.Title like '%льби%' or textpattern.Body like '%льби%' or textpattern.Excerpt like '%льби%'
and that matches my test article which has part of its title as Альбина. What does yours report? And does it give any more detailed error info if you run that query from phpMyAdmin? Does the output change / error go away if you alter the search locations to only include Title, Body and Excerpt?
Last edited by Bloke (2016-09-02 08:41:00)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#23 2016-09-02 10:15:58
- testdeputy
- Member
- Registered: 2011-05-29
- Posts: 29
Re: Feedback to: Textpattern CMS 4.6.0 beta 3 released
fresh install, can’t get any further than admin languages page..?
seems related to line 237 of <snipped>textpattern-4.6.0-beta.3/textpattern/update/_to_4.6.0.php
table txp_token is not created…
User_Error "You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'TYPE = MyISAM' at line 11"
in <snipped>/textpattern/lib/txplib_db.php at line 405. textpattern/lib/txplib_misc.php:1677 adminErrorHandler() updateErrorHandler() textpattern/lib/txplib_db.php:405 trigger_error() textpattern/lib/txplib_db.php:778 safe_query() textpattern/update/_to_4.6.0.php:238 safe_create() textpattern/update/_update.php:84 include() textpattern/index.php:180 include()
Last edited by testdeputy (2016-09-02 10:29:31)
Offline
Re: Feedback to: Textpattern CMS 4.6.0 beta 3 released
testdeputy wrote #300947:
table txp_token is not created…
Sounds like it’s incorrectly identifying your MySQL version (MariaDB in your case) and using TYPE= instead of ENGINE= when creating tables.
Can you quickly hack your textpattern/lib/txplib_db.php please. Add this after line 213 (just after it allocates the $version value):
var_dump($version, intval($version[0]), preg_match('#^4\.(0\.[2-9]|(1[89]))|(1\.[2-9])#', $version));
Then refresh your admin side. You should see three values output near the top of the page. What are they?
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#25 2016-09-02 11:18:54
- testdeputy
- Member
- Registered: 2011-05-29
- Posts: 29
Re: Feedback to: Textpattern CMS 4.6.0 beta 3 released
in response to Bloke’s Q: what are they?
string(15) “10.0.20-MariaDB” int(1) int(0)
Offline
Re: Feedback to: Textpattern CMS 4.6.0 beta 3 released
testdeputy wrote #300949:
string(15) “10.0.20-MariaDB” int(1) int(0)
Bingo. It’s comparing the first digit (a 1) against a 5 instead of using the first major revision number or employing version_compare(). Although we don’t officially support MariaDB, I’ll fix that as it’ll break when (if) MySQL itself goes above version 9. Thanks for the report.
EDIT: fixed.
Last edited by Bloke (2016-09-02 11:40:30)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
Re: Feedback to: Textpattern CMS 4.6.0 beta 3 released
colak wrote #300943:
The txp_img folder is excluded in the b3 archive.Is there a reason for that?
Probably because we don’t use it any more. I didn’t notice, but it’s not in the repo and probably hasn’t been for a while now. If it was in beta.2, maybe whoever built the package still had it on their local machine.
It shouldn’t overwrite anything if you’re using it already (e.g. for MLP) since it’s not included in the repo, as long as OSX doesn’t do weird things.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#28 2016-09-02 11:56:53
- testdeputy
- Member
- Registered: 2011-05-29
- Posts: 29
Offline
Re: Feedback to: Textpattern CMS 4.6.0 beta 3 released
Bloke wrote #300946:
I wonder if the upgrade assumed you were using utf8, forced utf8mb4 on you, when you were actually previously using latin1 or something. Not sure, it’s not my area of expertise.
Actually I tested with two different local installs, one is fairly old (latin1/utf8), the other one has been there since summer (latin1/utf8mb4). But I think that is a distraction.
EDIT: actually, could you please temporarily hack your
textpattern/include/txp_list.phpfile. Find line 214ish (in beta.3) and change the line to read:
$total = getThing("SELECT COUNT(*) FROM $sql_from WHERE $criteria", 1);…
with only Title, Body and Excerpt checked:
SELECT COUNT(*) FROM textpattern textpattern
LEFT JOIN txp_category category1 ON category1.name = textpattern.Category1 AND category1.type = 'article'
LEFT JOIN txp_category category2 ON category2.name = textpattern.Category2 AND category2.type = 'article'
LEFT JOIN txp_section section ON section.name = textpattern.Section
LEFT JOIN txp_users user ON user.name = textpattern.AuthorID WHERE textpattern.Title like '%ノクターン%' or textpattern.Body like '%ノクターン%' or textpattern.Excerpt like '%ノクターン%'
And the offending articles are found (both title and body contain the string). Other searches, where the string only exists in body or keywords works fine.
The problem only seems to happen when “Search All” is checked in the dropdown – nothing is found and the mentioned error is flagged. Searching with Title, Body and Excerpt checked, or with additional criteria (Keywords, Author, Section, Categories) works fine.
Actually, include things like ID, Posted, Modified as criteria and the error pops up; of course, the given string (ノクターン) is non-sensical for those 3 criteria (but then, the same can be said of a string using Roman characters).
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg
Offline
Re: Feedback to: Textpattern CMS 4.6.0 beta 3 released
Bloke wrote #300945:
I like that! Very neat and collapses logically on mobile too. Maybe we could
stealahemplagiarisecough pay homage to that in Hive.
:-)
Failing that, note to self: install Sandspace in future.
It is not a bad theme… a quiet environment for a rainy day or scorching hot afternoon… Goes well with the music
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg
Offline