mccrodp / message_private

The Message Private module provides a message type and associated entity reference fields, enabling sending and receiving private messages using The Message Stack.
https://www.drupal.org/project/message_private
3 stars 7 forks source link

Unable to get a value with a non-numeric delta in a list. #38

Closed sarbazx closed 6 years ago

sarbazx commented 6 years ago

Error when sending message.

The website encountered an unexpected error. 
Please try again later.</br></br><em class="placeholder">Drupal\Core\Entity\EntityStorageException</em>: 
Unable to get a value with a non-numeric delta in a list. in <em class="placeholder">Drupal\Core\Entity\Sql\SqlContentEntityStorage-&gt;save()</em> 
(line <em class="placeholder">829</em> of 
<em class="placeholder">core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php</em>).
 <pre class="backtrace">message_private_message_insert(Object)
call_user_func_array(&#039;message_private_message_insert&#039;, Array) (Line: 402)
Drupal\Core\Extension\ModuleHandler-&gt;invokeAll(&#039;message_insert&#039;, Array) (Line: 167)
Drupal\Core\Entity\EntityStorageBase-&gt;invokeHook(&#039;insert&#039;, Object) (Line: 730)
Drupal\Core\Entity\ContentEntityStorageBase-&gt;invokeHook(&#039;insert&#039;, Object) (Line: 470)
Drupal\Core\Entity\EntityStorageBase-&gt;doPostSave(Object, ) (Line: 615)
Drupal\Core\Entity\ContentEntityStorageBase-&gt;doPostSave(Object, ) (Line: 395)
Drupal\Core\Entity\EntityStorageBase-&gt;save(Object) (Line: 820)
Drupal\Core\Entity\Sql\SqlContentEntityStorage-&gt;save(Object) (Line: 391)
Drupal\Core\Entity\Entity-&gt;save() (Line: 319)
Drupal\message\Entity\Message-&gt;save() (Line: 229)
Drupal\message_ui\Form\MessageForm-&gt;save(Array, Object)
call_user_func_array(Array, Array) (Line: 111)
Drupal\Core\Form\FormSubmitter-&gt;executeSubmitHandlers(Array, Object) (Line: 51)
Drupal\Core\Form\FormSubmitter-&gt;doSubmitForm(Array, Object) (Line: 589)
Drupal\Core\Form\FormBuilder-&gt;processForm(&#039;message_private_message_form&#039;, Array, Object) (Line: 318)
Drupal\Core\Form\FormBuilder-&gt;buildForm(&#039;message_private_message_form&#039;, Object) (Line: 48)
Drupal\Core\Entity\EntityFormBuilder-&gt;getForm(Object) (Line: 87)
Drupal\message_ui\Controller\MessageController-&gt;add(Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;Drupal\Core\EventSubscriber\{closure}() (Line: 582)
Drupal\Core\Render\Renderer-&gt;executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;Drupal\Core\EventSubscriber\{closure}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel-&gt;handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel-&gt;handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session-&gt;handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle-&gt;handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache-&gt;pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache-&gt;handle(Object, 1, 1) (Line: 84)
Drupal\shield\ShieldMiddleware-&gt;handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware-&gt;handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware-&gt;handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel-&gt;handle(Object, 1, 1) (Line: 666)
Drupal\Core\DrupalKernel-&gt;handle(Object) (Line: 19)
</pre>

Drupal version 8.5.7 PHP version 7.1.21

I just installed this module, is there any need to configure this module to able send messages?

sarbazx commented 6 years ago

sorry it's duplicate of #18