This looks like the same issue which was present in SPPB3 in the frontend editor.
But this time in the backendeditor.
The Emoji is supported, if the Customer saves the text in the frontend Editor.
As soon as he tries to save the Text within the Backend, it throws the error.
I have tested this with Version 5.0.8.
Frontend works as intended and in the backend it throws the reported error.
https://www.joomshaper.com/forum/question/21791?order=newest#qa-answer-106014
To fix this issue, The backend editor needs to transfer the icon correctly encoded.
SPPB4: "title":"\ud83d\udd25 The Best Web Hosting"
SPPB5: "title":"🔥 The Best Web Hosting"
@Ofi Khan please forward this to the developers.
@Micheline Potvin
Workaround for you, so you can use emojis in front and backend.
- open the file "administrator/components/com_sppagebuilder/editor/traits/PageTrait.php"
- scroll down to this line "public function savePage()"
- now scroll down a little bit more until you see this line "$model->savePage($data);"
- before the "try{" you can add the following line
$data->content = json_encode(json_decode($data->content));
It should look like this.
if (!$canEditState) {
unset($data->published);
}
$data->content = json_encode(json_decode($data->content));
try
{
$model->savePage($data);
}
catch (\Exception $e)
{
$this->sendResponse(['message' => $e->getMessage()], 500);
}
Save the file and you are now able to save the page in front and backend editor.
Have a nice day.
