·
Added a discussion

For some reason when making a post which includes emojis to the "Public Feed" the timeline module fails to understand it and does not display the post, makes error messages appear on top of any page where the post WOULD be generated:
Notice: unserialize(): Error at offset 18 of 46 bytes in modules/boonex/timeline/classes/BxTimelineTemplate php on line 377
Notice: unserialize(): Error at offset 18 of 46 bytes modules/boonex/timeline/classes/BxTimelineTemplate php on line 1638
Warning: array_merge(): Argument #2 is not an array in modules/boonex/timeline/classes/BxTimelineTemplate php on line 1638
Warning: Cannot modify header information - headers already sent by (output started at modules/boonex/timeline/classes/BxTimelineTemplate php:377) in inc/classes/BxDolTemplate php on line 2739
Warning: Cannot modify header information - headers already sent by (output started at modules/boonex/timeline/classes/BxTimelineTemplate php:377) in inc/classes/BxDolTemplate php on line 2740
It only seems to happen with emojis.
This is the Database entry for it:
Id: "1097"
Owner Id: "0"
type: "timeline_common_post "
action: Nothing here
object_id: "5"
object_privacy_view: "3"
Content: "a:1:{s:4:"text";s:27:"Emojis crash this? ??";}"
title: "Emojis crash this? ?..."
Description: "{profile_name} added a post"
What I wrote was: "Emojis crash this? 🐲👋"
Dunno if relevant but: I use a custom font from google called Acme
I also tried putting emojis elsewhere it works partially, putting: "?" instead of emojis.
I am unsure what to do here.

The solution(IN PHPMYADMIN) to the issue above is simple, but tedious, go to yoru database and change the collation of all your database into "utf8mb4_unicode_ci", then table by table go each and check the "operations tab" within there's collation as an option, change it to utf8mb4_unicode_ci and check "Change all column collations" then repeat for ALL the modules which are not in that colation already. This should no longer acure though as change the general database collation makes it assign the unicode one to all new tables.


The other issue that is still ongoing is that I cannot save changes anything in studio such as "KEYS"(Polyglot), "HTML Injections"(Designer), or "RAW BLOCKS"(Pages)  if it contains HTML code. It will SAVE if I submit: "CONTENT" but if I try to submit: "< a href="LINK">CONTENT"(broken just so it doesn't show as an actual link in post) it will try to save the settings but be stuck in an infinite loop. Due to that I cannot add any links or HTML Code to important parts of my website.

  • 2172
Comments
    Login or Join to comment.