This is a bit of an extension of an previous situation (http://drupal.org/node/218906). I have two errors that are appearing, one of which is a critical error, the second, does not seem to be.
The critical error prevents me from creating comments. When I access a node and add a comment to it and hit Submit, I get the following error:
user warning: Duplicate entry '2' for key 1 query: INSERT INTO ffmaincomments (cid, nid, pid, uid, subject, comment, format, hostname, timestamp, status, score, users, thread, name, mail, homepage) VALUES (2, 57, 0, 2, 'Actually, it\'s node 57.', 'Actually, it\'s node 57.', 1, '24.3.75.120', 1202437025, 0, 0, 'a:1:{i:0;i:0;}', '01/', '%username%', '', '') in %sitepath%/includes/database.mysql.inc on line 172.
I weeded out the private information with the %username% (which is the User name of the account the comment was posted from) and %sitepath%, which is the full path to the site (internally). This error appears above my node (in it's typical red box and location) and the comment is not added.
The second error appears on the page to add a new node. On that page I get the error:
warning: chmod() has been disabled for security reasons in %sitepath%/includes/file.inc on line 119.
%sitepath% is the same as the above one. It does not seem to affect functionality, as I can post a story (the only thing I've tested so far) just fine.
Can someone please help me fix these?
Comments
The reason error #1 is
The reason error #1 is happening is because it is trying to add a comment with a commentid of '2' into the comments table, but this record already exists. The sequence table is out of date, as mentioned in your previous post. You need to open phpMyAdmin and update it manually. See http://drupal.org/node/69722
The second error, I would say is because during the server upgrade the settings were not carried over correctly - now the chmod function is disabled... you should speak to the server admins and see if they can fix that.
I don't actually know why it's being called, maybe this will help: http://api.drupal.org/api/function/file_check_directory/5/references
Someone with more knowledge of core may be able to help, but try clearing the cache and requesting that the PHP function chmod() gets enabled should fix it.
Hope that helps!
Mark
Code Baboon
Drupal based services