Updating records is not working

Hi team,

I have SuiteCRM v8 hosted locally on my machine and it’s working fine. However, when I try to edit a contact, account, or any other entity and click save, the page loads correctly, but the changes are not saved (after refreshing, it returns to the original state).
Creating a new entity works fine, and the data is saved.

Thanks.

Sounds like permissions Issues

Set the required permissions

If you are using the terminal you can do this by running:

find . -type d -not -perm 2755 -exec chmod 2755 {} \;

find . -type f -not -perm 0644 -exec chmod 0644 {} \;

find . ! -user www-data -exec chown www-data:www-data {} \;

chmod +x bin/console

Please have in mind that:

  • The user and group name (in the above example www-data ) needs to be replaced by the actual system user and group that your webserver runs under. This varies depending on your operating system. Common web server users are as follows:

    • www-data (Ubuntu Linux/Apache)
    • apache (Linux/Apache)

Session/CSRF Token Issue. Run from the CRM root directory!

php bin/console cache:clear

Hi @rsp, thanks for your approach :wave:.
But do we have another way to do this from the admin panel GUI?

Did you try? :thinking:

Admin → Repair → Quick Repair & Rebuild

Yes, this didn’t work.

Did you do any code update? Are those custom fields? Please share screenshots!

No, it’s not a custom field.
I opened Contacts and created a new one with only the first and last name, which was saved correctly. Then I tried to edit it and change the name, but when I clicked Save, it showed an error. And after refreshing, it still shows the original content.

Interesting! What is errors? You can check your log files under

logs/

folder.

app.ERROR: Database failure. Please refer to suitecrm.log for details. {“exception”:“[object] (Exception(code: 1): Database failure. Please refer to suitecrm.log for details. at C:\xampp\htdocs\suitecrm\public\legacy\include\utils.php:2123)”}

Check in this forum for that error:


I tried the suggested solution: ‘Admin > Studio > Contacts > Reset Default’, but it didn’t work. Also, this issue happens only with Contacts, not with other entities.

Hello Amr,

Windows is not a supported system anymore:

Please install a Linux system and try it again.
I’m using VirtualBox for a long time (Linux and Linux - but it should work with Windows Host and Linux Guest as well).
Alternatively, just use an old computer that you’ve still got laying around somewhere with a fresh Ubuntu Server 24 (or similar) installation.

Hi,

This can be a permission issue
Using the following commands, you can update the permission. Remember to use your own user and group in the commands.
find . -type d -not -perm 2755 -exec chmod 2755 {} ;

find . -type f -not -perm 0644 -exec chmod 0644 {} ;

find . ! -user www-data -exec chown www-data:www-data {} ;

chmod +x bin/console
Additionally, it can also be a problem with the system’s compatibility. For example, SuiteCRM is no longer compatible with Windows from V8 onwards.

I think the user is trying to use it on the Windows system. It does not support the Windows for v8.x

I think if saving a record is allowed them updating should not have any issues. Can you please check in the browser console if any error related to angular or api is present. You can debug the issues using the browser’s debugger tool. But you will require all the components core, common,shell and/or extension be built in dev mode.