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

TheCodingMachine\TDBM\TDBMService issues from php 7.4 #195

Open
viktortro opened this issue Feb 3, 2020 · 5 comments
Open

TheCodingMachine\TDBM\TDBMService issues from php 7.4 #195

viktortro opened this issue Feb 3, 2020 · 5 comments

Comments

@viktortro
Copy link

we are using this package on php 7.4.
I noticed that the server returns 500 error with Notice: Trying to access array offset on value of type bool when I try to delete beans or return ResultIterator to jsonresponse.
This error doesn't always happen, I think this error happens when the bean has many_to_many relationships with other tables.

@Kharhamel
Copy link
Collaborator

Hello, could you give us an example of code which create the issue?

@viktortro
Copy link
Author

viktortro commented Feb 3, 2020

I cannot explain the example completely, I think you have access of https://git.thecodingmachine.com/tcm-projects/robin/merge_requests/36 on robin project.
right?

@viktortro
Copy link
Author

  1. the FileController/getFiles() returns error, so I overwrite the Beans/File/jsonSerialize() to avoid errors temporally.
    The error happens on AbstractFile/jsonSerialize(). line:271~275
  2. the FileController/deleteFile() returns error.

@Kharhamel
Copy link
Collaborator

ok I am going to check this

@viktortro
Copy link
Author

viktortro commented Feb 6, 2020

I noticed one thing and I hope this would help you.
Old developer made table name quote, I thought it doesn't make sense so I changed it to quotes.
And then errors were disappeared.
But we have to check package code too.
Because someone could make table name as my old developer.

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

No branches or pull requests

2 participants