Recent content by Christer L

  1. Christer L

    Caches when running multiple frontend servers

    I am runing XF 2.1 on four frontend servers behind a load balancer (using a storage adapter so attachments etc are shared) When I change templates or phrases, these changes are not visible on all servers - so I need to rebuild caches on each I have been using xf:rebuild-master-data, which seems...
  2. Christer L

    XF 2.1 Emojis are converted to character entity syntax when posted

    UPDATE: this problem was caused by not having PHP:s setting "default_charset" set to "utf-8' It was still on "iso-8859-1" which we hade before converting to XenForo. That caused html_entity_decode() to fail in EmojiFormatter; it should have converted the character entity to native character, but...
  3. Christer L

    XF 2.1 Emojis are converted to character entity syntax when posted

    Yes, this was a fresh install with fullUnicode from the start. But I then changed the collation to utf8mb4_swedish_ci though, as I want that instead of the general_ci that is hardcoded into XenForo - to get proper sorting and searching for Swedish. (Unfortunately I did not check emoji support...
  4. Christer L

    XF 2.1 Emojis are converted to character entity syntax when posted

    Thanks. But after more test, it turns out the problem is with the emoijis, not the smilies - smiles work fine, but emojis entered using editor are shown as &#... I have edited the thread title to reflect this.
  5. Christer L

    XF 2.1 Emojis are converted to character entity syntax when posted

    On my recently launched forum (migrated from vBulletin 3.8) emojis entered using the XF post editor are converted to hex codes when I preview/post it. Is there some option I need to set or what is going on? The collation in my database is utf8mb4_swedish_ci, not the utf8mb4_general_ci thay...
  6. Christer L

    XF 2.1 No data in widgets contextParams when called from template

    Ah, that's a nice trick to have in the toolbox :) Thanks for the solution.
  7. Christer L

    XF 2.1 No data in widgets contextParams when called from template

    Excellent, thank you for quick answer. I had tried params to the tag, but did not know about the "context-" prefix. BTW, when using PHP callback widget - can that PHP method access the contextParams somehow? The variable is protected in AbstractWidget and I could not find a public access...
  8. Christer L

    XF 2.1 No data in widgets contextParams when called from template

    If I add a widget (I wrote) by selecting one or more positions for it (in the sidebar for example), it has access to a protected variable contextParams. In it I can find information about the current forum or thread, depending on where widget displays. But if I add the same widget using...
  9. Christer L

    XF 2.1 Data too long for column "delete_reason" with importer 1.3.2

    Yes we have many usernames with accented characters I will be running at least one more test import so I can try the fix out, but note that I will also be changing username to collation utf8mb4_bin to avoid getting a lot of our usernames changed ("ä" and "å" is not equal to "a" in Swedish -...
  10. Christer L

    As designed Two usernames are treated as equal

    The collation choosen by XenForo when creating the database is either utf8mb4_general_ci or utf8_general_ci, this controls the case folding and what characters are considered equal. With the _general collations, letters "a", "å" and "ä" are considered equal. In the Swedish language, they are...
  11. Christer L

    XF 2.1 Data too long for column "delete_reason" with importer 1.3.2

    Yes here it is: Stack trace INSERT INTO `xf_deletion_log` (`content_type`, `content_id`, `delete_date`, `delete_user_id`, `delete_username`, `delete_reason`) VALUES (?, ?, ?, ?, ?, ?) ON DUPLICATE KEY UPDATE delete_date = LEAST(delete_date, VALUES(delete_date)) ------------ #0...
  12. Christer L

    XF 2.1 Data too long for column "delete_reason" with importer 1.3.2

    I am using the new 1.3.2 importer to import a vBulletin 3.8 into XenForo 2.1.7 It failed on "Data too long for column" when inserting into xf_deletion_log, on column "delete_reason" Server is 5.6.43-84.3 - Percona Server I noticed that XF/Db/Mysqli/Adapter.php forces the database to use...
Top Bottom