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

Already on GitHub? Sign in to your account

Gii tool in Mac is showing "Error 500 Only the first byte will be assigned to the string offset" when we add more than one table in database. #4369

Closed
AyceeChill opened this issue Jun 30, 2021 · 6 comments

Comments

@AyceeChill
Copy link

What steps will reproduce the problem?

when we add more than one table in database.

What is the expected result?

Gii will make new model files and controller for new table

What do you get instead?

Gii tool in Mac is showing "Error 500 Only the first byte will be assigned to the string offset".

Additional info

Q A
Yii version 1.1.24
PHP version 7.4.20
Operating system Mac OS Big Sur 11.3
@marcovtwout
Copy link
Member

@AyceeChill Could you post the full stack trace and all the input so we can reproduce the issue?
You might need to enable debug mode to get the stack trace on screen: https://www.yiiframework.com/doc/guide/1.1/en/basics.entry#debug-mode

@AyceeChill
Copy link
Author

AyceeChill commented Jun 30, 2021 via email

@marcovtwout
Copy link
Member

Confirmed, PR coming up.

@AyceeChill
Copy link
Author

AyceeChill commented Jul 1, 2021 via email

@marcovtwout
Copy link
Member

You can use the code in https://github.com/yiisoft/yii/pull/4370/files until it is reviewed and merged.

@samdark samdark added this to the 1.1.25 milestone Jul 1, 2021
@marcovtwout
Copy link
Member

Solved by #4370

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

No branches or pull requests

3 participants