🇦🇺Australia @Stephen Ollman

Canberra
Account created on 18 June 2008, about 16 years ago
#

Recent comments

🇦🇺Australia Stephen Ollman Canberra

Thanks, "drush updb" ran without incident.
Appreciate you guidance and assurance that including the module along side the core version has no negative impact.

🇦🇺Australia Stephen Ollman Canberra

composer require 'drupal/forum:^1.0' worked without issue and I can see this module version (1.0.2) listed as installed.

I didn't run a 'drush updb' after the install. Would this be neccessary?

🇦🇺Australia Stephen Ollman Canberra

Ok will give that a go and report back.

🇦🇺Australia Stephen Ollman Canberra

Stephen Ollman created an issue.

🇦🇺Australia Stephen Ollman Canberra

Have been using version 2.0.1 now for a week and have not had any issues so far, once I update the info.yml file.

I'm running on Drupal 10.3.1 with PHP 8.3.9

🇦🇺Australia Stephen Ollman Canberra

After a complete uninstall and re-install this module is now behaving as expected.

🇦🇺Australia Stephen Ollman Canberra

Fixed: modules/contrib/privatemsg/src/Entity/Builder/PrivatemsgMessageViewBuilder.php

public function __construct(
EntityTypeInterface $entityType,
EntityRepositoryInterface $entityRepository,
LanguageManagerInterface $languageManager,
Registry $themeRegistry,
AccountProxyInterface $current_user,
EntityDisplayRepositoryInterface $entity_display_repository,
- PrivateMsgService $privatemsg_service,
+ PrivateMsgService $privatemsg_service
) {
parent::__construct($entityType, $entityRepository, $languageManager, $themeRegistry, $entity_display_repository);
$this->currentUser = $current_user;
$this->privateMsgService = $privatemsg_service;
}

Fixed: modules/contrib/privatemsg/src/Entity/Builder/PrivatemsgThreadViewBuilder.php

public function __construct(
EntityTypeInterface $entityType,
EntityRepositoryInterface $entityRepository,
LanguageManagerInterface $languageManager,
Registry $themeRegistry,
AccountProxyInterface $current_user,
EntityDisplayRepositoryInterface $entity_display_repository,
- PrivateMsgService $privatemsg_service,
+ PrivateMsgService $privatemsg_service
) {
parent::__construct($entityType, $entityRepository, $languageManager, $themeRegistry, $entity_display_repository);
$this->currentUser = $current_user;
$this->privateMsgService = $privatemsg_service;
}

🇦🇺Australia Stephen Ollman Canberra

Still getting the large error on one site.

ParseError: syntax error, unexpected ')', expecting variable (T_VARIABLE) in Composer\Autoload\includeFile() (line 59 of modules/contrib/privatemsg/src/Entity/Builder/PrivatemsgMessageViewBuilder.php).

public function __construct(
EntityTypeInterface $entityType,
EntityRepositoryInterface $entityRepository,
LanguageManagerInterface $languageManager,
Registry $themeRegistry,
AccountProxyInterface $current_user,
EntityDisplayRepositoryInterface $entity_display_repository,
PrivateMsgService $privatemsg_service,
) {
parent::__construct($entityType, $entityRepository, $languageManager, $themeRegistry, $entity_display_repository);
$this->currentUser = $current_user;
$this->privateMsgService = $privatemsg_service;
}

🇦🇺Australia Stephen Ollman Canberra

OK i finally managed to install on a 3rd site and export/import empty tables to my main site, which then allowed me to uninstall this module successfully.

I believe the problem may have stemmed from having this module install a long time ago before moving to the 'other' Private Message' module. It appears that there was an old table left over from this module still in my dbase which caused the install to fail.

'pm_thread_history' was the table that wasn't previously premoved and as such I believe causes this module to not fully install.

🇦🇺Australia Stephen Ollman Canberra

That's now 2 sites I've broken trying to install this module.

The website encountered an unexpected error. Please try again later.
ParseError: syntax error, unexpected ')', expecting variable (T_VARIABLE) in Composer\Autoload\includeFile() (line 59 of modules/contrib/privatemsg/src/Entity/Builder/PrivatemsgMessageViewBuilder.php).
Composer\Autoload\includeFile('/home/mybulova/public_html/modules/contrib/privatemsg/src/Entity/Builder/PrivatemsgMessageViewBuilder.php') (Line: 428)
Composer\Autoload\ClassLoader->loadClass('Drupal\privatemsg\Entity\Builder\PrivatemsgMessageViewBuilder')
spl_autoload_call('Drupal\privatemsg\Entity\Builder\PrivatemsgMessageViewBuilder')
class_exists('Drupal\privatemsg\Entity\Builder\PrivatemsgMessageViewBuilder') (Line: 488)
Drupal\Core\Entity\EntityType->hasHandlerClass('view_builder') (Line: 587)
Drupal\Core\Entity\EntityType->hasViewBuilderClass() (Line: 145)
views_views_data() (Line: 236)
Drupal\views\ViewsData->Drupal\views\{closure}(Object, 'views') (Line: 405)
Drupal\Core\Extension\ModuleHandler->invokeAllWith('views_data', Object) (Line: 244)
Drupal\views\ViewsData->getData() (Line: 154)
Drupal\views\ViewsData->get('block_content') (Line: 94)
Drupal\views\Plugin\Derivative\ViewsEntityRow->getDerivativeDefinitions(Array) (Line: 101)
Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDerivatives(Array) (Line: 87)
Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDefinitions() (Line: 291)
Drupal\Core\Plugin\DefaultPluginManager->findDefinitions() (Line: 181)
Drupal\Core\Plugin\DefaultPluginManager->getDefinitions() (Line: 146)
views_theme(Array, 'module', 'views', 'core/modules/views') (Line: 473)
Drupal\Core\Theme\Registry->processExtension(Array, 'views', 'module', 'views', 'core/modules/views') (Line: 360)
Drupal\Core\Theme\Registry->Drupal\Core\Theme\{closure}(Object, 'views') (Line: 405)
Drupal\Core\Extension\ModuleHandler->invokeAllWith('theme', Object) (Line: 361)
Drupal\Core\Theme\Registry->build() (Line: 259)
Drupal\Core\Theme\Registry->get() (Line: 88)
Drupal\Core\Utility\ThemeRegistry->initializeRegistry() (Line: 69)
Drupal\Core\Utility\ThemeRegistry->__construct('theme_registry:runtime:claro', Object, Object, Array, 1) (Line: 279)
Drupal\Core\Theme\Registry->getRuntime() (Line: 142)
Drupal\Core\Theme\ThemeManager->render('html', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, 1) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, 1) (Line: 148)
Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 149)
Drupal\Core\Render\Renderer->renderRoot(Array) (Line: 66)
Drupal\Core\Render\BareHtmlPageRenderer->renderBarePage(Array, Object, 'maintenance_page', Array) (Line: 76)
Drupal\Core\ProxyClass\Render\BareHtmlPageRenderer->renderBarePage(Array, Object, 'maintenance_page', Array) (Line: 196)
Drupal\system\Controller\DbUpdateController->handle('info', Object)
call_user_func_array(Array, Array) (Line: 115)
Drupal\Core\Update\UpdateKernel->handleRaw(Object) (Line: 76)
Drupal\Core\Update\UpdateKernel->handle(Object) (Line: 27)

🇦🇺Australia Stephen Ollman Canberra

Thanks for replying. I don't havea test site and didn't have this module previously installed. I installed it using composer ane then enabled the block output, which all it did was output some raw code in the block.I then tried to ununstall by UI, but it wouldn'y let me (greyed out), so I tried to uninstall using composer to no avail.

Now whenever I try to use the sites Uninstall UI I get an error. My server is currently down now as a result and I'm waiting fornit to be restored.

I noticed sub modules for D6,7&8 was this module to be used only for site that had this module installed on previous versions?

🇦🇺Australia Stephen Ollman Canberra

Insteresting side note:
Running the command: drush pm-uninstall private-message -y resulted in:
y
y
y
y
y
y
y
y x 1,000,000
and crashed the server. I'm still trying to reboot the server.

🇦🇺Australia Stephen Ollman Canberra

Using the UI uninstall feature gives me this error message.

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mydatabase_d10.pm_index' doesn't exist: SELECT "base_table"."id" AS "id", "base_table"."id" AS "base_table_id" FROM "pm_index" "base_table" LIMIT 1 OFFSET 0; Array ( ) in Drupal\Core\Entity\Query\Sql\Query->result() (line 272 of core/lib/Drupal/Core/Entity/Query/Sql/Query.php).

🇦🇺Australia Stephen Ollman Canberra

Has this fix been rolled out?
I'm getting the same behaviour in Edge. Toggles not visually changing on click.
Recently update Gin Admin theme to 8.x-3.0-rc11

🇦🇺Australia Stephen Ollman Canberra

Patch worked for me also. Took about 4 seconds, but the message list did finally refresh to show the new message.

Does this mean there is an issue with the module and the patch will be rolled out, or is this likely to be an ongoing issue were the patch will need to be reapplied?

🇦🇺Australia Stephen Ollman Canberra

Seems no one else is experiencing this issue.
When sendng a message, the ajax spinner is showing in the send button, the message eventually disappears from the message box, but the page is not automatically refreshed to show the new mesage like it use to do. A manual page refersh is needed.

🇦🇺Australia Stephen Ollman Canberra

I'm sort of getting the opposite of this since moving to V3. Now I'm not seeing any new messages via an ajax callback. I need to manually refresh the page to see the new message.

🇦🇺Australia Stephen Ollman Canberra

#39 also did the trick for me

I needed to un-map that field at /admin/structure/media/manage/document to stop the Media name from being overwritten each time i updated the file.

🇦🇺Australia Stephen Ollman Canberra

Getting same/similar errors.

Warning: Invalid argument supplied for foreach() in Drupal\memcache_storage\DrupalMemcachedBase->addServers() (line 164 of modules/contrib/memcache_storage/src/DrupalMemcachedBase.php).
Drupal\memcache_storage\DrupalMemcachedBase->addServers(Array) (Line: 140)
Drupal\memcache_storage\DrupalMemcachedBase->__construct(Array, 'default') (Line: 59)
Drupal\memcache_storage\DrupalMemcached->__construct(Array, 'default') (Line: 86)
Drupal\memcache_storage\DrupalMemcachedFactory->get('cache_render') (Line: 64)
Drupal\memcache_storage\MemcachedBackendFactory->get('render') (Line: 83)
Drupal\Core\Cache\CacheFactory->get('render') (Line: 71)
Drupal\Core\Render\RenderCache->get(Array) (Line: 109)
Drupal\Core\Render\PlaceholderingRenderCache->get(Array) (Line: 273)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 83)
__TwigTemplate_b99234c586e061ea41475f131c10f44b1c8da25027a87c5c33412de918741db3->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/gin/templates/html.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('html', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 162)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 163)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 50)
Drupal\ban\BanMiddleware->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Warning: sizeof(): Parameter must be an array or an object that implements Countable in Drupal\memcache_storage\DrupalMemcachedBase->addServers() (line 174 of modules/contrib/memcache_storage/src/DrupalMemcachedBase.php).
Drupal\memcache_storage\DrupalMemcachedBase->addServers(Array) (Line: 140)
Drupal\memcache_storage\DrupalMemcachedBase->__construct(Array, 'default') (Line: 59)
Drupal\memcache_storage\DrupalMemcached->__construct(Array, 'default') (Line: 86)
Drupal\memcache_storage\DrupalMemcachedFactory->get('cache_render') (Line: 64)
Drupal\memcache_storage\MemcachedBackendFactory->get('render') (Line: 83)
Drupal\Core\Cache\CacheFactory->get('render') (Line: 71)
Drupal\Core\Render\RenderCache->get(Array) (Line: 109)
Drupal\Core\Render\PlaceholderingRenderCache->get(Array) (Line: 273)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 83)
__TwigTemplate_b99234c586e061ea41475f131c10f44b1c8da25027a87c5c33412de918741db3->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/gin/templates/html.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('html', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 162)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 163)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 50)
Drupal\ban\BanMiddleware->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Warning: Invalid argument supplied for foreach() in Drupal\memcache_storage\DrupalMemcached->getMulti() (line 177 of modules/contrib/memcache_storage/src/DrupalMemcached.php).
Drupal\memcache_storage\DrupalMemcached->getMulti(Array, '') (Line: 199)
Drupal\memcache_storage\DrupalMemcachedBase->get('memcache_storage_bin_indexes') (Line: 301)
Drupal\memcache_storage\DrupalMemcachedBase->getBinIndex('cache_render') (Line: 244)
Drupal\memcache_storage\DrupalMemcachedBase->itemKey('toolbar:[languages:language_interface]=en:[theme]=gin:[user.permissions]=28b30bc4db7bd359b0954c99b8deafb83604cf1f40aa5e322388e109be07e303', 'cache_render') (Line: 158)
Drupal\memcache_storage\DrupalMemcached->getMulti(Array, 'cache_render') (Line: 92)
Drupal\memcache_storage\MemcachedBackend->getMultiple(Array, ) (Line: 82)
Drupal\memcache_storage\MemcachedBackend->get('toolbar:[languages:language_interface]=en:[theme]=gin:[user.permissions]=28b30bc4db7bd359b0954c99b8deafb83604cf1f40aa5e322388e109be07e303') (Line: 71)
Drupal\Core\Render\RenderCache->get(Array) (Line: 109)
Drupal\Core\Render\PlaceholderingRenderCache->get(Array) (Line: 273)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 83)
__TwigTemplate_b99234c586e061ea41475f131c10f44b1c8da25027a87c5c33412de918741db3->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/gin/templates/html.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('html', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 162)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 163)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 50)
Drupal\ban\BanMiddleware->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

.......

Production build 0.69.0 2024