Hi,
found a typo in privatemsg.install delivered with the latest dev version that prevents the installation of the privatemsg_mails table:

      db_query("CREATE TABLE {privatemsg_mails} ) 
        description varchar(255) NOT NULL, ...

--> The bracket ")" after "{privatemsg_mails}" must be an opening bracket.

CommentFileSizeAuthor
#3 privatemsg.tgz1.98 KBolio
#1 installer_fix.patch1.41 KBliam mcdermott

Comments

liam mcdermott’s picture

Status: Active » Needs review
StatusFileSize
new1.41 KB

Drupal threw an error for me when installing this module too:

user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') description varchar(255) NOT NULL, type varchar(255) NOT N' at line 1 query: CREATE TABLE privatemsg_mails ) description varchar(255) NOT NULL, type varchar(255) NOT NULL, subject varchar(255) NOT NULL, body varchar(255) NOT NULL, notification_subject varchar(255) NOT NULL, notification_text_body varchar(255) NOT NULL, notification_html_body varchar(255) NOT NULL, notification_group_text_body varchar(255) NOT NULL, notification_group_html_body varchar(255) NOT NULL, mailkey varchar(255) NOT NULL, PRIMARY KEY (mailkey) ) /*!40100 DEFAULT CHARACTER SET utf8 */; in /home/httpd/vhosts/apaddedcell.com/httpdocs/includes/database.mysql.inc on line 172.

There are a couple of closing brackets in the install file that should be opening ones. The attached patch fixes this. How many other bugs raised here are because MySQL does not create that table? :)

olio’s picture

Oops, didn't realized that there were some more of these nasty brackets. Was already happy that I had found the first one - even a blind man may sometimes hit the mark.. ;o))

Meanwhile, I applied the patch, deleted the privatemsg tables and the privatemsg entry in the system table, then reinstalled the module : now everything seems to work fine again.

Thanks for the patch (and the nice module!) :o)

olio’s picture

Title: Typo in install file » Typo in install file !
Priority: Normal » Critical
Status: Needs review » Active
StatusFileSize
new1.98 KB

Hello?
In the update version this error in the install file persists (Line 113, closing bracket) ! Without this tiny correction of the install file the whole module won't work correctly for users doing a fresh install. (I attached a corrected version of the install file.)

Thanks again.

salvis’s picture

Tha patch in http://drupal.org/node/167756 fixes this and many other issues.

salvis’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)