-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Labels
Milestone
Comments
@AyceeChill Could you post the full stack trace and all the input so we can reproduce the issue? |
Only the first byte will be assigned to the string offset
(/opt/lampp/htdocs/Yii1.1/framework/gii/generators/model/ModelCode.php:408)
Stack trace:
#0
/opt/lampp/htdocs/Yii1.1/framework/gii/generators/model/ModelCode.php(345):
ModelCode->generateRelationName()
#1
/opt/lampp/htdocs/Yii1.1/framework/gii/generators/model/ModelCode.php(95):
ModelCode->generateRelations()
#2 /opt/lampp/htdocs/Yii1.1/framework/gii/CCodeGenerator.php(162):
ModelCode->prepare()
#3 /opt/lampp/htdocs/Yii1.1/framework/gii/CCodeGenerator.php(63):
ModelGenerator->prepare()
#4 /opt/lampp/htdocs/Yii1.1/framework/web/actions/CInlineAction.php(49):
ModelGenerator->actionIndex()
#5 /opt/lampp/htdocs/Yii1.1/framework/web/CController.php(308):
CInlineAction->runWithParams()
#6 /opt/lampp/htdocs/Yii1.1/framework/web/CController.php(286):
ModelGenerator->runAction()
#7 /opt/lampp/htdocs/Yii1.1/framework/web/CController.php(265):
ModelGenerator->runActionWithFilters()
#8 /opt/lampp/htdocs/Yii1.1/framework/web/CWebApplication.php(282):
ModelGenerator->run()
#9 /opt/lampp/htdocs/Yii1.1/framework/web/CWebApplication.php(141):
CWebApplication->runController()
#10 /opt/lampp/htdocs/Yii1.1/framework/base/CApplication.php(185):
CWebApplication->processRequest()
#11 /opt/lampp/htdocs/Blog/index.php(13): CWebApplication->run()
REQUEST_URI=/Blog/index.php?r=gii/model/index
in /opt/lampp/htdocs/Blog/index.php (13)
…On Wed, Jun 30, 2021 at 1:53 PM marcovtwout ***@***.***> wrote:
@AyceeChill <https://github.com/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
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4369 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATKYRYGKQVPIYZEHL5PDD6TTVLH7HANCNFSM47RZ23KA>
.
|
Confirmed, PR coming up. |
is the issue solved?
…On Wed, Jun 30, 2021 at 2:19 PM marcovtwout ***@***.***> wrote:
Confirmed, PR coming up.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4369 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATKYRYBQHF2GTPIKTQFRNQDTVLLDJANCNFSM47RZ23KA>
.
|
You can use the code in https://github.com/yiisoft/yii/pull/4370/files until it is reviewed and merged. |
Solved by #4370 |
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: