freepbx-helper-scripts
freepbx-helper-scripts copied to clipboard
error on line 3 at column 22: Opening and ending tag mismatch: CompanyIPPhoneDirectory line 0 and DirectoryEntry
Hi,
I got an error executing your code on http://192.XXX.XX.XXX/cm_to_yl_ab.php when CM is empty I'm using FreeBPX 15 with and php7.3
error on line 3 at column 22: Opening and ending tag mismatch: CompanyIPPhoneDirectory line 0 and DirectoryEntry
And when contacts are created in CM, I got a PDOException
The png are attached. Can you help me to debug, please?
Thanks.
Obviously, I never designed it to handle the empty state. I'll look into it.
This part is fixed with my proposed patch. You can have a look here https://github.com/sorvani/freepbx-helper-scripts/pull/20
Now when the phone book is empty you get simply a neat and clean empty XML
should be fixed by #20