Every time I try to send a message, I get two errors:

* user warning: Table 'beta.pm_message' doesn't exist query: INSERT INTO pm_message (mid, subject, author, body) VALUES (null, 'Test', 1, 'Test') in beta/modules/privatemsg/privatemsg.module on line 528.

* user warning: Table 'beta.pm_index' doesn't exist query: INSERT INTO pm_index (mid, thread_id, recipient, author, timestamp) VALUES (202399, 202399, 2, 1, 1215186029) in beta/modules/privatemsg/privatemsg.module on line 543.

When I look at the database in phpMyAdmin, neither of those tables exists. I installed the latest (4 Jul) release, so the "message_id" to "mid" has been fixed, but now it appears that the database tables aren't being created.

Comments

naheemsays’s picture

in privatemsg.install in the pm_index schema, I added the following (after the recipient section) to fix this:

      'author'     => array(
        'description'   => t('UID of the author'),
        'type'          => 'int',
        'not null'      => TRUE,
        'unsigned'      => TRUE,
      ),
litwol’s picture

Status: Active » Fixed

just commited

naheemsays’s picture

Status: Fixed » Needs work

I think you committed that to the wrong branch (5--3 instead of 6--1)

litwol’s picture

are you checking out the code from repository or project tar ball?

naheemsays’s picture

Looking at the commits as listed here: http://drupal.org/project/cvs/3279 it is listed under the DRUPAL-5--3 branch.

I will check this our of CVS to see if that page is wrong.

naheemsays’s picture

I have just checked out branch DRUPAL-6--1 and that fix is not there either.

litwol’s picture

ah crap... ok fixing now.

litwol’s picture

Status: Needs work » Fixed

and now its fixed ^_^

Anonymous’s picture

Status: Fixed » Closed (fixed)

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