I have always encountered this error on every site and every version of 7+, and sometimes it seems pretty benign, but other times it stops us from installing packages.
Anywho, ValidateInstalled usually seems to throw an error. If anyone has seen this or knows the reason I'd love to learn the reason :)
XML Parsing Error: no root element found
Hey all,
Was curious if anyone has encountered this in the Packages area:
I have always encountered this error on every site and every version of 7+, and sometimes it seems pretty benign, but other times it stops us from installing packages.
Anywho, ValidateInstalled usually seems to throw an error. If anyone has seen this or knows the reason I'd love to learn the reason :)
Hey M N,
Do you have an
installedPackages.config
file located in the following path:It could be searching for that file which, when empty has the following contents:
So if it's not there, it could be failing to open and parse it.
Nik
Hi Nik,
Yes I should have added that I have cleared the installedPackages.config file, but even with an empty installedPackages I receive the error.
Honestly it doesn't harm anything from what I can tell, but it's somewhat annoying seeing it in console error constantly.
Thanks for your reply.
No worries. Looking into the source it does seem odd that you are getting that error.
If the file doesn't exist or is completely empty it does look like it should try and at least set it back to its initial settings.
Is that error from the log file? If so, do you have this anywhere near it in the log file "An error occurred in GetAllPackages" ?
Nah, just that error on ValidateInstalled endpoint. Any time you click on a package, basically.
Oh well, not a huge deal Nik was just curious if anyone had encountered this exact issue and had a quick fix. Many thanks for your thoughts.
is working on a reply...