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

Roles->children is giving blank array #99

Open
irshadalif opened this issue Nov 2, 2017 · 7 comments
Open

Roles->children is giving blank array #99

irshadalif opened this issue Nov 2, 2017 · 7 comments

Comments

@irshadalif
Copy link

I had used phprbac on one site few years ago and it was working fine in my local machine and also on live server. Now this year the client change the server having latest php and apache versions but the phprbac is not working properly, it is giving blank array.

For testing i downloaded the code in my local machine with php version 5+ and it is working fine in my local machine while it is not working on server having php version 7+ and latest upgrades.

I have been pulling my hair and not getting any solution to this issue, can you please kindly help me to get out of this issue.

How a class can stop working on higher versions?

Thanks in advance

Irshad

@abiusx
Copy link
Contributor

abiusx commented Nov 2, 2017 via email

@irshadalif
Copy link
Author

Thanks a lot for the reply
After checking i found that all functions are working fine except the children finding execute command as below

$success=$stmt->execute ();

The above line is returning false if it is executed for finding children for "roles"/"permissions" entity. And this is core function of pdo_mysql. So, how can i predict the problem.

Can you suggest any solution to this issue ? If yes then it would be great.

Thanks

@abiusx
Copy link
Contributor

abiusx commented Nov 2, 2017 via email

@irshadalif
Copy link
Author

I had already checked the query in database and it is working fine, also the same code is working fine in php 5+ version only in php 7+ version the code for fetching children returns null array, after digging we found that the execute command is returning null.

@abiusx
Copy link
Contributor

abiusx commented Nov 2, 2017 via email

@irshadalif
Copy link
Author

The function "$stmt->execute ();" is the core function of pdo_mysql and it is returning null so we cant move ahead.

@abiusx
Copy link
Contributor

abiusx commented Nov 2, 2017 via email

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