As a test, rename Opera's profile folder and check if with the new profile the settings are saved.
I sent it to the recycle bin and after that Opera started saving the settings. So after restoring it I checked if the read only option was active and it was partially active. So I unchecked it and it seems like everything is working is now. Thank you for the help.