<html theme="themeKey88rand710" iconset="monochrome"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body text="#000000">Hi Mauricio,<br>
<br>
bit late replying to the below but this was sorted via:<br>
<br>
<a class="moz-txt-link-freetext" href="https://github.com/inex/IXP-Manager/issues/742">https://github.com/inex/IXP-Manager/issues/742</a><br>
<br>
- Barry<br>
<br>
<br>
<span>Mauricio Oviedo wrote on 28/10/2021 04:42:</span><br>
<blockquote type="cite"
cite="mid:2188EB27-5235-48F8-891B-FD133000BC45@socium.cr"
style="word-wrap:break-word">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Menlo;
panose-1:2 11 6 9 3 8 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.EstiloCorreo17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
p.p1, li.p1, div.p1
{mso-style-name:p1;
margin:0cm;
font-size:8.5pt;
font-family:Menlo;
color:black;}
span.s1
{mso-style-name:s1;}
.MsoChpDefault
{mso-style-type:export-only;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
{page:WordSection1;}
--></style>
<div class="WordSection1">
<p class="MsoNormal"><span lang="ES-TRAD">Hi folks,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-TRAD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">After trying to delete a user,
we got the following SQL error:<o:p></o:p></span></p>
<p class="p1"><span class="s1"><span lang="EN-US"><o:p> </o:p></span></span></p>
<p class="p1"><span class="s1"><span lang="EN-US">ERROR 1451 (23000):
Cannot delete or update a parent row: a foreign key constraint fails
(`ixpmanager`.`log`, CONSTRAINT `log_user_id_foreign` FOREIGN KEY
(`user_id`) REFERENCES `user` (`id`))</span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Running the command directly in
MYSQL on a copy of the database shows the same issue, and the user
remains in the database.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The result is that the users
view is now broken, showing the error:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Message: Undefined array key ""<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Location:
/srv/ixpmanager/resources/views/user/index.foil.php:90<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Could you pls provide any
pointers on how to fix it/prevent from happening again?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">SO: Ubuntu 20.04<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">IXPM: 6.1.0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks for your help,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Mauricio<o:p></o:p></span></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
INEX IXP Manager mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ixpmanager@inex.ie">ixpmanager@inex.ie</a>
Unsubscribe or change options here: <a class="moz-txt-link-freetext" href="https://www.inex.ie/mailman/listinfo/ixpmanager">https://www.inex.ie/mailman/listinfo/ixpmanager</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br><br>
Kind regards,
<br>
Barry O'Donovan
<br>
INEX <br>
<br>
<a class="moz-txt-link-freetext" href="https://www.inex.ie/support/">https://www.inex.ie/support/</a>
<br>
+353 1 531 3339<br>
<br>
<br>
</div>
</body></html>