Project:PHPMailer
Version:7.x-3.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (cannot reproduce)

Issue Summary

PHPMailer was working. Now it throws
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'PHPMailer-class' for key 1: INSERT INTO {registry} (name, type, filename, module, weight) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4), (:db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => PHPMailer [:db_insert_placeholder_1] => class [:db_insert_placeholder_2] => sites/all/libraries/phpmailer/class.phpmailer.php [:db_insert_placeholder_3] => phpmailer [:db_insert_placeholder_4] => 0 [:db_insert_placeholder_5] => phpmailerException [:db_insert_placeholder_6] => class [:db_insert_placeholder_7] => sites/all/libraries/phpmailer/class.phpmailer.php [:db_insert_placeholder_8] => phpmailer [:db_insert_placeholder_9] => 0 ) in _registry_parse_file() (line 179 of /home/content/89/6787389/html/xisam/includes/registry.inc).

when I enable it, and the admin menu is gone. I do not see it listed on the uninstall menu. I can't do direct SQL queries to remove this from the database on my GoDaddy account. Is there a way to recover from
this via the Drupal interface?

Thanks,
Jim

Comments

#1

Hi tjtj,

It seems that the registry table got corrupted. I did not see anything weird in the code.

You can clean the registry with http://drupal.org/project/registry_rebuild.

#2

Please check if the patch given at http://drupal.org/node/1371700#comment-5367382 fixes this problem.

#3

How would I apply such a patch? I don't have command line access?

I have the exact same error stated as above and the registry rebuild won't work for me either.

#4

fi3nds, you could just read its contents and modify the file manually. At the top of the file you have the affected lines, and then is a matter of removing what has a minus symbol at the start and adding what starts with a plus.

#5

Same problem here. is there any alternative similar module that is on RC or released? (registry rebuild doesn't work)

#6

Status:active» closed (cannot reproduce)

This is either caused by CTools: #1371700: CTools adds cached plugins with wrong paths during hook_registry_files_alter() in multisite systems

Or caused by Drupal core: #1372122: STOP the registry integrity constraint violation nightmare (fixed in 7.14)

In any case, the PHPMailer module cannot do anything about this.