I have solved the problem.
As it turns out it was something I actually knew about but forgot about it until you got me into phpmyadmin.
The reason for the error was that all the auto_increment settings disappeared from my database due to the fact that I went from mysql 5 on one server to mysql 4 on the other server.
The error that basically was the root to the evil was this:
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« Execution of a query to the database failed - Duplicate entry '0' for key 1 »
SQL: INSERT INTO `primabager_dk_-_modx`.modx_manager_log(timestamp, internalKey, username, action, itemid, itemname, message) VALUES('1168306903', '1', 'admin', '114', '-', '-', 'View event log')
[Copy SQL to ClipBoard]
Parser timing
MySQL: 0.0009 s (1 Requests)
PHP: 1168306903.4466 s
Total: 1168306903.4475 s
Thanks very much for the help.