freepbx-helper-scripts icon indicating copy to clipboard operation
freepbx-helper-scripts copied to clipboard

error on line 3 at column 22: Opening and ending tag mismatch: CompanyIPPhoneDirectory line 0 and DirectoryEntry

Open jycemea opened this issue 4 years ago • 1 comments

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

PHP_error_2020-11-07 103313 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 PDO_exception_2020-11-07 115617

The png are attached. Can you help me to debug, please?

Thanks.

jycemea avatar Nov 07 '20 08:11 jycemea

Obviously, I never designed it to handle the empty state. I'll look into it.

sorvani avatar Dec 10 '20 15:12 sorvani

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 image

drcoccodrillus avatar Jan 21 '23 14:01 drcoccodrillus

should be fixed by #20

sorvani avatar Feb 10 '23 20:02 sorvani