Update/add Package does not work

Started by danny, January 10, 2023, 10:51:27 AM

Previous topic - Next topic

danny

When I try and add or update a package the panel simply says "Error Something went wrong"

Looking at the console there is an AJAX request with the following returned

UPDATE packages SET package_name='default', disk_quota='10000',bandwidth='100000',ftp_accounts='10',email_accounts='10',email_lists='10',`databases`='10',sub_domains='10',parked_domains='10',addons_domains='10',hourly_emails='200' ,cgroups='undefined' ,nproc='40' ,apache_nproc='40' ,inode='0' ,reseller='',accounts='',nofile='150',nodejs_apps=0 WHERE id=10

I assume from this, the query is
UPDATE packages SET package_name='default', disk_quota='10000',bandwidth='100000',ftp_accounts='10',email_accounts='10',email_lists='10',`databases`='10',sub_domains='10',parked_domains='10',addons_domains='10',hourly_emails='200' ,cgroups='undefined' ,nproc='40' ,apache_nproc='40' ,inode='0' ,reseller='',accounts='',nofile='150',nodejs_apps=0 WHERE id=1

and the 0 is rows affected.

Looking at the SQL table, there is no column called nodejs_apps, so this fails.

This needs to work as I had a client today with downtime as I couldn't update the bandwidth allowance.