Problem/Motivation

I just submitted a message and received the following:

The website encountered an unexpected error. Please try again later.

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'databasename.pm_limits' doesn't exist: SELECT "pml"."timestamp" AS "timestamp" FROM "pm_limits" "pml" WHERE "user_id" = :db_condition_placeholder_0; Array ( [:db_condition_placeholder_0] => 1 ) in Drupal\privatemsg\PrivateMsgService->setLastThreadCreatedTime() (line 456 of modules/contrib/privatemsg/src/PrivateMsgService.php).

I checked the database table and sure enough there is no table that was created.

Thanks again

CommentFileSizeAuthor
#7 Screenshot_27_07_2022_21_12.png14.63 KBivnish

Comments

Christopher Riley created an issue. See original summary.

ivnish’s picture

Forgot to delete old code, one moment

  • ivnish committed d8534b9 on 1.0.x
    Issue #3300254 by Christopher Riley, ivnish: Error when creating a new...
ivnish’s picture

Status: Active » Fixed
ivnish’s picture

Please test dev version

Christopher Riley’s picture

Dev allows me to send perfectly although I did notice that the tab for messages does not show up for either of my test users that do not have Admin set even though in permissions I have both Use and Write enabled and I have done a Cache Flush.

I can though go to the path directly as the user and access things as expected.

Thanks again

ivnish’s picture

StatusFileSize
new14.63 KB

1

This tab?

Christopher Riley’s picture

No the one within the users local tasks menu. In the routing file you have the permission for it set as follows:

privatemsg.user_messages:
path: '/user/{user}/messages'
defaults:
_title: 'Messages'
_form: 'Drupal\privatemsg\Form\MessagesForm'
requirements:
_permission: 'administer site configuration'

Was this intentional so users always use the messages system via the /messages/whatever path and if so how can we assign a "Staff" member the ability to assist a user for example without giving them configure access? Could we possibly get a new permission so we can set who can access messages from that tab?

Sorry to be a pain.

ivnish’s picture

I think we need new permission instead "administer site configuration" for this

Status: Fixed » Closed (fixed)

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