replaced editConfig by new writeconfigfile function in admin.php
updated code
updated code
updated code