Skip to content

Error when adding new page with non-ascii characters in a page field  #724

Closed
@gideonso

Description

@gideonso

Short description of the issue

Error when adding new page with non-ascii characters in a page field

Expected behavior

Page should be successfully created without any error.

Actual behavior

Error occurs and page not get created

Optional: Screenshots/Links that demonstrate the issue

2018-10-13 09-46-10

Optional: Suggestion for a possible fix

NIL

Steps to reproduce the issue

  1. create a page reference field that allows user to create new page in the page edit page.
  2. try to create a new page with non ASCII characters in the page reference field.
  3. got this error:

Error adding page "一二三" - SQLSTATE[HY000]: General error: 1267 Illegal mix of collations (ascii_general_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='

Setup/Environment

  • ProcessWire version: this bug was introduce in 3.0.111 and remains till 3.0.115
  • (Optional) PHP version: 7.2.10 and 5.6.29

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions