Forums | Mahara Community

Support /
Error sync_users.php


Joan Forcada's profile picture
Posts: 70

02 November 2020, 22:28

Hi,

I have a problema when we apply:  php sync_users.php -i='uvicprova' -f=employeeType=PDI

I attach de logs errors picture.

Tell me something as soon as possible please.

Thaks.

  • Captura3.JPG.2
Joan Forcada's profile picture
Posts: 70

03 November 2020, 23:04

Hi Robert,

Tell me something please.

Thanks

Joan Forcada's profile picture
Posts: 70

06 November 2020, 22:28

Hi Robert,

Days after my post and I don't have any answer.

I need an urgent answer to resolve this.

Tell me something please.

Thanks.

Robert Lyon's profile picture
Posts: 749

10 November 2020, 10:15

Hi Joan,

Sorry for the late reply - I've taken a look at this and from the error you pasted it looks like the issue is a user being synced doesn't seem to have an email address to check against - see the line where it mentions get_record() and the third parameter is 'null'

I've made a patch so that it should handle this problem better

https://reviews.mahara.org/#/c/11424/

Feel free to try it out

Cheers

Robert

 

Lisa Seeto's profile picture
Posts: 6

27 November 2020, 12:07

Hi Joan,

Just following up on the above issue.  Can you confirm whether this patch:  https://reviews.mahara.org/#/c/11424/  fixes the issue?

Thank you,

Lisa

Joan Forcada's profile picture
Posts: 70

27 November 2020, 20:01

Hi Lisa,

Yes, that worked for me.

Thanks.

6 results