Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Craft error when attempting to edit an entry with emoji #10

Open
olets opened this issue Nov 7, 2018 · 0 comments
Open

Craft error when attempting to edit an entry with emoji #10

olets opened this issue Nov 7, 2018 · 0 comments
Labels

Comments

@olets
Copy link

olets commented Nov 7, 2018

Craft supports some emoji

If add an allowed emoji to an entry (e.g. 👍 in the source view of a Redactor field, to render 馃憤), save the entry, and then try to edit the entry, I get

Array
(
[code] => 400
[message] => HTTP/1.1 400 Bad Request
[response] => stdClass Object
(
[errors] => Array
(
[0] => stdClass Object
(
[code] => NOT_ALLOWED
)

)

)

)
in </path/to>/craft/plugins/applenews/vendor/chapter-three/apple-news-api/src/PublisherAPI/Base.php on line 197
</path/to>/craft/plugins/applenews/vendor/chapter-three/apple-news-api/src/PublisherAPI/Base.php(289)

277   /**
278    * Error handler.
279    *
280    * @param (string) $message Error message to display.
281    * @param (const) $message_type Predefined Constants
282    *
283    * @see http://php.net/manual/en/errorfunc.constants.php
284    */
285   public function triggerError($message, $message_type = E_USER_NOTICE) {
286     $debug_backtrace = debug_backtrace();
287     $trace = $debug_backtrace[0];
288     trigger_error($message . ' in ' . $trace['file'] . ' on line ' .
289       $trace['line'], $message_type);
290   }
291 
292 }

Guessing this is a plugin bug, sending an unexpected character to chapter-three's apple-new-api?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants