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

Fix exception when saving a new reply #41

Closed claudiu-cristea closed 6 years ago

claudiu-cristea commented 6 years ago

Fixes #18

When saving the private message I'm getting:

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">783</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: 403)
Drupal\Core\Extension\ModuleHandler-&gt;invokeAll(&#039;message_insert&#039;, Array) (Line: 204)
Drupal\Core\Entity\EntityStorageBase-&gt;invokeHook(&#039;insert&#039;, Object) (Line: 756)
Drupal\Core\Entity\ContentEntityStorageBase-&gt;invokeHook(&#039;insert&#039;, Object) (Line: 507)
Drupal\Core\Entity\EntityStorageBase-&gt;doPostSave(Object, ) (Line: 641)
Drupal\Core\Entity\ContentEntityStorageBase-&gt;doPostSave(Object, ) (Line: 432)
...
claudiu-cristea commented 6 years ago

Moved to d.o