🇲🇾Malaysia @amal.bukhari

Account created on 11 June 2014, over 10 years ago
#

Recent comments

🇲🇾Malaysia amal.bukhari

A new problem appears. From above, after requesting a new access token using the refresh token, I cannot post nodes. The error thrown is "The 'access content' permission is required".

This error is not thrown if I get a fresh new token (from grant_type=password) instead of regenerating (grant_type=refresh_token).

🇲🇾Malaysia amal.bukhari

Hi all,

Since the original post has started albeit for a different version, I'd just ask for help here.

I'm using 5.2 with password grant type. I know it's not safe, but this is for testing purposes only.

I have generated the access and refresh tokens from /oauth/token.

Now, I want to generate a new access token, so I used the refresh token from above in /oauth/token, but with the grant_type now is refresh token, with the refresh_token being the refresh token from above. By right, I should get a new access token.

This is achievable only once. For subsequent requests, I'm getting "Token has been revoked".

🇲🇾Malaysia amal.bukhari

Hi all,

Since the original post has started albeit for a different version, I'd just ask for help here.

I'm using 5.2 with password grant type. I know it's not safe, but this is for testing purposes only.

I have generated the access and refresh tokens from /oauth/token.

Now, I want to generate a new access token, so I used the refresh token from above in /oauth/token, but with the grant_type now is refresh token, with the refresh_token being the refresh token from above. By right, I should get a new access token.

This is achievable only once. For subsequent requests, I'm getting "Token has been revoked".

🇲🇾Malaysia amal.bukhari

This is the message backtrace from log if I open an existing views that uses 'table with aggregation' display format.

Error log message:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "views_aggregator_plugin_style_table" plugin does not exist. Valid plugin IDs for Drupal\views\Plugin\ViewsPluginManager are: chart, entity_reference_revisions, serializer, data_export, default_summary, unformatted_summary, grid_responsive, rss, grid, entity_reference, default, table, html_list, opml in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of /var/www/html/<site_name>/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

Backtrace:

#0 /var/www/html/crr.terus.my/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryCachedTrait.php(25): Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition(Array, 'views_aggregato...', true)
#1 /var/www/html/crr.terus.my/web/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php(16): Drupal\Core\Plugin\DefaultPluginManager->getDefinition('views_aggregato...')
#2 /var/www/html/crr.terus.my/web/core/lib/Drupal/Component/Plugin/PluginManagerBase.php(83): Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('views_aggregato...', Array)
#3 /var/www/html/crr.terus.my/web/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php(821): Drupal\Component\Plugin\PluginManagerBase->createInstance('views_aggregato...')
#4 /var/www/html/crr.terus.my/web/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php(795): Drupal\views\Plugin\views\display\DisplayPluginBase->getPlugin('style')
#5 /var/www/html/crr.terus.my/web/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php(2480): Drupal\views\Plugin\views\display\DisplayPluginBase->usesFields()
#6 /var/www/html/crr.terus.my/web/core/modules/views/src/ViewExecutable.php(2116): Drupal\views\Plugin\views\display\DisplayPluginBase->validate()
#7 /var/www/html/crr.terus.my/web/core/modules/views_ui/src/ViewFormBase.php(128): Drupal\views\ViewExecutable->validate()
#8 /var/www/html/crr.terus.my/web/core/modules/views_ui/src/ViewFormBase.php(49): Drupal\views_ui\ViewFormBase->getDisplayTabs(Object(Drupal\views_ui\ViewUI))
#9 /var/www/html/crr.terus.my/web/core/lib/Drupal/Core/Entity/EntityForm.php(126): Drupal\views_ui\ViewFormBase->prepareEntity()
#10 /var/www/html/crr.terus.my/web/core/modules/views_ui/src/ViewFormBase.php(26): Drupal\Core\Entity\EntityForm->init(Object(Drupal\Core\Form\FormState))
#11 /var/www/html/crr.terus.my/web/core/lib/Drupal/Core/Entity/EntityForm.php(97): Drupal\views_ui\ViewFormBase->init(Object(Drupal\Core\Form\FormState))
#12 /var/www/html/crr.terus.my/web/core/modules/views_ui/src/ViewFormBase.php(41): Drupal\Core\Entity\EntityForm->buildForm(Array, Object(Drupal\Core\Form\FormState))
#13 [internal function]: Drupal\views_ui\ViewFormBase->buildForm(Array, Object(Drupal\Core\Form\FormState))
#14 /var/www/html/crr.terus.my/web/core/lib/Drupal/Core/Form/FormBuilder.php(536): call_user_func_array(Array, Array)
#15 /var/www/html/crr.terus.my/web/core/lib/Drupal/Core/Form/FormBuilder.php(283): Drupal\Core\Form\FormBuilder->retrieveForm('view_edit_form', Object(Drupal\Core\Form\FormState))
#16 /var/www/html/crr.terus.my/web/core/lib/Drupal/Core/Entity/EntityFormBuilder.php(48): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\views_ui\ViewEditForm), Object(Drupal\Core\Form\FormState))
#17 /var/www/html/crr.terus.my/web/core/modules/views_ui/src/Controller/ViewsUIController.php(230): Drupal\Core\Entity\EntityFormBuilder->getForm(Object(Drupal\views_ui\ViewUI), 'edit', Array)
#18 [internal function]: Drupal\views_ui\Controller\ViewsUIController->edit(Object(Drupal\views_ui\ViewUI), NULL)
#19 /var/www/html/crr.terus.my/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#20 /var/www/html/crr.terus.my/web/core/lib/Drupal/Core/Render/Renderer.php(627): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#21 /var/www/html/crr.terus.my/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#22 /var/www/html/crr.terus.my/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#23 /var/www/html/crr.terus.my/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#24 /var/www/html/crr.terus.my/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#25 /var/www/html/crr.terus.my/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#26 /var/www/html/crr.terus.my/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#27 /var/www/html/crr.terus.my/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#28 /var/www/html/crr.terus.my/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#29 /var/www/html/crr.terus.my/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#30 /var/www/html/crr.terus.my/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#31 /var/www/html/crr.terus.my/web/modules/contrib/advban/src/AdvbanMiddleware.php(57): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#32 /var/www/html/crr.terus.my/web/core/modules/ban/src/BanMiddleware.php(50): Drupal\advban\AdvbanMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#33 /var/www/html/crr.terus.my/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#34 /var/www/html/crr.terus.my/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#35 /var/www/html/crr.terus.my/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#36 /var/www/html/crr.terus.my/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#37 /var/www/html/crr.terus.my/web/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#38 /var/www/html/crr.terus.my/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#39 {main}
🇲🇾Malaysia amal.bukhari

Thanks for the repair. Checking now.

🇲🇾Malaysia amal.bukhari

Hi,

I'm not using Commerce but I just want to replicate the same table. One column is counted, another is tallied and another is summed.

Problem is whenever I added "Tally members *", I got this error:

TypeError: Cannot assign array to property Drupal\views\Plugin\views\field\FieldPluginBase::$last_render of type Drupal\Component\Render\MarkupInterface|string|null in Drupal\views_aggregator\Plugin\views\style\Table->executeAggregationFunctions() (line 540 of /var/www/html//web/modules/contrib/views_aggregator/src/Plugin/views/style/Table.php).

Kind regards,
Amal.

🇲🇾Malaysia amal.bukhari

Hi Jurrian,

This error has made a comeback, again. Whenever I want to import configuration files, the same error will be displayed on screen.

Kind regards,
Amal.

🇲🇾Malaysia amal.bukhari

Hi,

Used the action switch current user, worked wonders! Thanks a lot for the heads up!

Regards,
Amal.

🇲🇾Malaysia amal.bukhari

Hi,

I've followed your guide and also on ECA Guide, but I'm getting the error that I cannot change UID when updating content.

Should it be after saving a new content, or use presave instead?

🇲🇾Malaysia amal.bukhari

Hi,

I got the same error again when I run cron via drush. After running the command provided, I restarted my web server and PHP-FPM, ran cron via drush, and the same error appeared again.

Regards,
Amal.

🇲🇾Malaysia amal.bukhari

It seems like after installing DXPR builder, I cannot import any configuration, without uninstalling DXPR builder first.

🇲🇾Malaysia amal.bukhari

Hi,

Any updates on this possibility? In addition to previous issue of communicating with external APIs (now solved), can we extend it to read the response from external APIs and respond to it from Drupal?

Kind regards,
Amal.

🇲🇾Malaysia amal.bukhari

Hi,

I'm using standard Drupal menus. The latest update has resolved this error.

Kind regards,
Amal.

Production build 0.71.5 2024