<h4>Pet Registry — Loading Dialog &amp; Variable Fixes</h4><ul><li><strong>Fixed:</strong> "Retrieving data" loading dialog stuck permanently — getProfileJson returned PHP warnings before JSON, causing jQuery dataType:json parsing to fail silently. The swal dialog had no error callback so it never closed. Root cause: $domainsite_params was undefined in every PetRegistry.class.php method (10+ occurrences). Fixed by storing global $domainsite_params as $this-&gt;domainsite in constructor and replacing all references.</li><li><strong>Fixed:</strong> Added error callbacks to both edit pet and view pet AJAX calls (custom_js.php) so the swal loading dialog closes on failure instead of freezing the UI.</li></ul>