- Issue created by @Stephen Ollman
- 🇦🇺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).
- ivnish Kazakhstan
Hi Stephen!
but all it did was give me errors.
What errors?
Using the UI uninstall feature gives me this error message.
The module installs, works, uninstalls fine. I think you have broken site instance
Base table or view not found: 1146 Table 'mydatabase_d10.pm_index' doesn't exist
Now you need to create or import tables to your DB. You can install privatemsg to test site, then export tables via PHPMyAdmin and import to problem site
- 🇦🇺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?
- ivnish Kazakhstan
My server is currently down now as a result and I'm waiting fornit to be restored.
This is always a bad idea to install new modules to production sites without any testing
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?
No
- 🇦🇺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
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
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
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;
} - Status changed to Postponed: needs info
5 months ago 7:22am 29 July 2024 - Status changed to Closed: cannot reproduce
4 months ago 10:24am 14 August 2024