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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localizable collection routes produce an error exception #1556

Closed
FR6 opened this Issue Aug 17, 2017 · 4 comments

Comments

Projects
None yet
4 participants
@FR6

FR6 commented Aug 17, 2017

Expected behaviour

I'm trying to localize the collections route as stated on the documentation:
https://docs.statamic.com/localization#localizing-content

Actual behaviour

When i go to edit my collection: /cp/configure/content/collections/fourniture
I get the error:

ErrorException in helpers.php line 469:
htmlentities() expects parameter 1 to be string, array given (View: .../statamic/resources/views/collections/edit.blade.php)

Steps to reproduce

settings/routes.yaml:

collections:
  fourniture:
    fr: /fourniture/{slug}
    en: /furniture/{slug}

Server Details

Homestead
Statamic Version: 2.6.4

@jasonvarga

This comment has been minimized.

Show comment
Hide comment
@jasonvarga

jasonvarga Aug 17, 2017

Member

Good find. The CP field doesn't handle the array syntax. However, the feature itself should be working just fine, right?

Member

jasonvarga commented Aug 17, 2017

Good find. The CP field doesn't handle the array syntax. However, the feature itself should be working just fine, right?

@jasonvarga jasonvarga added the bug label Aug 17, 2017

@FR6

This comment has been minimized.

Show comment
Hide comment
@FR6

FR6 Aug 17, 2017

Yes it's true the feature works properly.

Thanks Jason!

FR6 commented Aug 17, 2017

Yes it's true the feature works properly.

Thanks Jason!

@fkwakkenbos

This comment has been minimized.

Show comment
Hide comment
@fkwakkenbos

fkwakkenbos Feb 26, 2018

@jasonvarga Any news on this issue? We are also having this exact same issue when editing a collection with a localised slug.

fkwakkenbos commented Feb 26, 2018

@jasonvarga Any news on this issue? We are also having this exact same issue when editing a collection with a localised slug.

@jasonvarga

This comment has been minimized.

Show comment
Hide comment
@jasonvarga

jasonvarga Feb 28, 2018

Member

No news on this yet. You can stick to editing the YAML for the moment.

Member

jasonvarga commented Feb 28, 2018

No news on this yet. You can stick to editing the YAML for the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment