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
| Comment | File | Size | Author |
|---|
Comments
Comment #2
ivnishForgot to delete old code, one moment
Comment #4
ivnishComment #5
ivnishPlease test dev version
Comment #6
Christopher Riley commentedDev 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
Comment #7
ivnishThis tab?
Comment #8
Christopher Riley commentedNo 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.
Comment #9
ivnishI think we need new permission instead "administer site configuration" for this