After updating from 7.x beta1 to 7.x 1.0 I get this error message:

Fatal error: require_once() [function.require]: Failed opening required '/var/www/vhosts/petersitzer.de/subdomains/test/httpdocs/sites/all/modules/privatemsg/pm_email_notify/pm_email_notify.admin.inc' (include_path='.:') in /var/www/vhosts/petersitzer.de/subdomains/test/httpdocs/includes/menu.inc on line 499

Comments

berdir’s picture

Status: Active » Postponed (maintainer needs more info)

Rebuild the menu system? (with drush cc all, devel.module or submitting the modules form, run update.php, ...)

If that doesn't help, then when does this happen?

Frickelpiet’s picture

Title: pm_email_notify settings are missing » Fatal Error
Status: Fixed » Postponed (maintainer needs more info)

I have run update.php. The error message appears on a white page whe I try to access config/messaging/privatemsg/notify

The file pm_email_notify.admin.inc was missing, so I copyed it from the beta folder ("privatemsg_alt") and deleted the beta folder then. Now it works. But now I get this message on the user page (?q=user):

Warning: include_once(/var/www/vhosts/mysite.com/subdomains/test/httpdocs/sites/all/modules/privatemsg_alt/privatemsg.theme.inc) [function.include-once]: failed to open stream: No such file or directory in theme() (Zeile 794 von /var/www/vhosts/mysite.com/subdomains/test/httpdocs/includes/theme.inc).
Warning: include_once() [function.include]: Failed opening '/var/www/vhosts/mysite.com/subdomains/test/httpdocs/sites/all/modules/privatemsg_alt/privatemsg.theme.inc' for inclusion (include_path='.:') in theme() (Zeile 794 von /var/www/vhosts/mysite.com/subdomains/test/httpdocs/includes/theme.inc).

Furthermore I get this message in config/messaging/privatemsg/filter

Notice: Undefined index: privatemsg_filter_admin in drupal_retrieve_form() (Zeile 736 von /var/www/vhosts/petersitzer.de/subdomains/test/httpdocs/includes/form.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'privatemsg_filter_admin' was given in drupal_retrieve_form() (Zeile 771 von /var/www/vhosts/mysite.com/subdomains/test/httpdocs/includes/form.inc).

berdir’s picture

Neither of these pages exist anymore, they should not be in your menu anymore. All such settings pages have been merged with the main settings where we now use a vertical tabs to make it easier to work with.

The file is not necessary anymore, you don't need to copy it.

Also, you must not leave an backup folder of the module inside the sites/all/modules directory. Drupal does not care if in which folder the files are, it just uses the first privatemsg.module find it can find. Maybe that's why this is messed up on your system.

Remove that folder and then clear all caches & rebuild the menu.

Frickelpiet’s picture

Okay. That works. But i cannot find the settings for email notification. I think I should find them below the tab Deleted messages. The module Privatemsg Email Notification is activated. When I try to disable the module Privatemsg Email Notification I get this error message:

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'PrivatemsgAPITestCase-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), (:db_insert_placeholder_10, :db_insert_placeholder_11, :db_insert_placeholder_12, :db_insert_placeholder_13, :db_insert_placeholder_14), (:db_insert_placeholder_15, :db_insert_placeholder_16, :db_insert_placeholder_17, :db_insert_placeholder_18, :db_insert_placeholder_19), (:db_insert_placeholder_20, :db_insert_placeholder_21, :db_insert_placeholder_22, :db_insert_placeholder_23, :db_insert_placeholder_24); Array ( [:db_insert_placeholder_0] => PrivatemsgTestCase [:db_insert_placeholder_1] => class [:db_insert_placeholder_2] => sites/all/modules/privatemsg/privatemsg.test [:db_insert_placeholder_3] => privatemsg [:db_insert_placeholder_4] => 0 [:db_insert_placeholder_5] => PrivatemsgFieldsTestCase [:db_insert_placeholder_6] => class [:db_insert_placeholder_7] => sites/all/modules/privatemsg/privatemsg.test [:db_insert_placeholder_8] => privatemsg [:db_insert_placeholder_9] => 0 [:db_insert_placeholder_10] => PrivatemsgLinksTestCase [:db_insert_placeholder_11] => class [:db_insert_placeholder_12] => sites/all/modules/privatemsg/privatemsg.test [:db_insert_placeholder_13] => privatemsg [:db_insert_placeholder_14] => 0 [:db_insert_placeholder_15] => PrivatemsgTokenTestCase [:db_insert_placeholder_16] => class [:db_insert_placeholder_17] => sites/all/modules/privatemsg/privatemsg.test [:db_insert_placeholder_18] => privatemsg [:db_insert_placeholder_19] => 0 [:db_insert_placeholder_20] => PrivatemsgAPITestCase [:db_insert_placeholder_21] => class [:db_insert_placeholder_22] => sites/all/modules/privatemsg/privatemsg.test [:db_insert_placeholder_23] => privatemsg [:db_insert_placeholder_24] => 0 ) in _registry_parse_file() (Zeile 179 von /var/www/vhosts/mysite.com/subdomains/test/httpdocs/includes/registry.inc).

berdir’s picture

Now that is unfortunatly a real bug, 50% in privatemsg and 50% in core :)

Please update to the latest -dev branch then try to clear caches or run update.php. That should hopefully remove that error.

Frickelpiet’s picture

After updating to the latest dev (2011-Jan-12) the error message doesn't appear anymore. So far so good. But I still can't find the the settings for email notification.

berdir’s picture

Title: Fatal Error » pm_email_notify settings are missing
Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new983 bytes

You are of course absolutely right, it is missing.

This happens when you do last minute changes before doing a stable release :)

Please try the attached patch.

Frickelpiet’s picture

Now it works well. Thousand thanks for this great module and support!

berdir’s picture

Status: Needs review » Fixed

Thanks for reporting and testing, commited!

Title: Fatal Error » pm_email_notify settings are missing
Status: Postponed (maintainer needs more info) » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.