I believe I have this issue. I have a page where after I add a style (class) to a link , the page saves fine and mu button style is displayed.
Then if I go back to make some further edits, and I click on any of the tabs, the browser completely freezes, I can get no error message from the console. This is in the latest Chrome.
Bootstrap 5 theme.
D 10.3.5
Dev Version:
2.0.x-dev
About commerce_webform_order_demo - I found I needed to install webform_entity_handler (dependency) first. Then I could enable it on the Extend page fine.
goose2000 → created an issue.
Hi, well, there is a setting within the Policy tab, for "Skip sending" - I don't have this set for the Workbench emails, but it does feel like a clue. I keep experimenting....
goose2000 → created an issue.
Found I needed to set the Default Transport to my SMTP sender. Embarrassing. 8 (
goose2000 → created an issue.
goose2000 → created an issue.
I ran #38 against D10.3.5 and it applied clean.
Ran my misbehaving migrations and it got me caught up to the D7 site I'm working with!
Thank you!
I just ran into this today - patches ok to use on D10.3.5 ? Thanks for any thought
Thanks for all this. I have for the time being, set a limit of 5 for my custom field, it works fine.
I agree something is going on with ajax, and maybe layout builder. The content type this occurs on, does not use layout builder, but yes it is used in other places.
multi-valued or field set to unlimited ? I'm working with the Unlimited field setting.
I have not got a chance to test in a fresh or non-layout builder environment yet.
Closed is fine, I may follow with comments / results later.
goose2000 → created an issue.
I am getting this error too, triggered when "Add another item" is clicked in a add form:
TypeError: Drupal\address\Plugin\Field\FieldWidget\AddressDefaultWidget::errorElement(): Argument #1 ($element) must be of type array, null given, called in D:\wwwroot\pss-2024-fix\web\core\lib\Drupal\Core\Field\WidgetBase.php on line 580 in Drupal\address\Plugin\Field\FieldWidget\AddressDefaultWidget->errorElement() (line 188 of D:\wwwroot\pss-2024-fix\web\modules\contrib\address\src\Plugin\Field\FieldWidget\AddressDefaultWidget.php).
Drupal 10.3.5
PHP 8.1.29
Version: 2.0.2
Testing note, if I try adding the CT (B) by itself, stand alone form (not in a referenced form), all the file uploading and links appear as you would expect.
goose2000 → created an issue.
I will just report, I am on D10.3.5 and this patch applied clean and fixed the issue for me.
Thank you guys!
@uv516
@tjhellmann
I was confused by this at first too. But go to the Formatted text option. Then on the next screen you will find the Markup option.
Update:
Updated to dev version
Development version: 8.x-3.x-dev updated 17 Oct 2024 at 19:22 UTC
No difference.
Next, I gave all permission to my Role 'Applicant'
It worked - now I just need to carefully undo 200+ permissions to find the magic key.
I am having this problem with simple inline form. So I tried to set the content type to no use Auto Entity Label at all, set to Disabled on the configuration, still I get this error.
This entity (node: %AutoEntityLabel%) cannot be referenced.
Drupal 10.3.5
Auto Entity Label 8.x-3.3
Ok, take this back, it did work with Field Permissions module. I was tricked when I used the NodeAuth link initially, every things was working, I got curious and tried to remove the key part:
?authkey=3dea2fadba170df0ff28a386b86a9394a5093e49e1b72ee731a214b4454dd59b
And it would still let me edit, but later tested, in a different browser, and I got access denied - great !
So I concluded I was in some sort of edit session that was initiated by the original node_auth link.
goose2000 → created an issue.
Thank you, just want to confirm this patch applied and fixed this command on my webform 6.2.7
Hi, following this, I would like to do this. Although, in my case, my users are all authenticated and exist before shopping.
Is that doable? More doable? The video in the library, 3 conditions met and add new role was helpful, thank you.
Any idea about these install requirements ? Is there any safe work around we could do to the info .yml ?
commerce_webform_order.info.yml
name: Commerce Webform Order
description: This module integrates webform with commerce modules.
package: Commerce (contrib)
core_version_requirement: ^9.4 || ^10
type: module
dependencies:
- commerce:commerce (>= 2.19)
- commerce:commerce_cart
- commerce:commerce_checkout
- commerce:commerce_order
- commerce:commerce_price
- commerce:commerce_store
- webform:webform (>= 6.1)
simplytest_dependencies:
- commerce_webform_order:commerce_webform_order_demo
# Information added by Drupal.org packaging script on 2023-12-05
version: '3.0.0-beta10'
project: 'commerce_webform_order'
datestamp: 1701773645
Any ideas? I can see my that my private file system is working with my web server IUSR fine, so doesn't appear to be a permissions issue.
I am having this issue too, just letting know it is reproducible, enable info :
Machine name: commerce_webform_order
Version: 3.0.0-beta10
Requires: CommerceAddressFieldEntityInline Entity FormTokenDatetimeViewsFilterUserSystemCommerce CartCommerce OrderCommerce PriceCommerce StoreOptionsTextPathPath aliasCommerce Number PatternEntity Reference RevisionsProfileState MachineCommerce ProductCommerce CheckoutWebform (>= 6.1) (incompatible with version * ? *)
Required by: Commerce Webform Order Demo (disabled)
Drupal 10.3.5
Webform 6.2.7 Stable release
Well, did a little test to see PHP run the command line version of GS on my server :
<html>
<head>
<title>Test GS</title>
</head>
<body>
<?php
//$ver = shell_exec("gswin64c.exe --version");
$ver = exec("gswin64c.exe" . " --version");
print "$ver";
print "<br>A";
?>
</body>
</html>
And this returned fine :
10.03.1
A
So not having a PHP / GS disconnect. I guess this is a permissions issue? I am on a Windows 2019 server.
Thanks for ideas.
I updated my project to Drupal 10.3.5 and then I was able too apply the patch: 3015152-213.patch.
Was able to install and get the module running (I am using Layout Builder in places) !
Hope this core patch does get accepted into D11.
Thank you
Hi - will do, that will be more helpful / graceful. The patch is a bit complicated, I am still working on getting that in place.
goose2000 → created an issue.
goose2000 → created an issue.
goose2000 → created an issue.
goose2000 → created an issue.
Okay, might hit this again and reopen.
goose2000 → created an issue.
Is this in the dev version now ?
goose2000 → created an issue.
I am new to LB, granted. I cannot see any UI where I can align how a block would align within a section (left, right center).
Do I need the "Layout Builder Blocks" module?
I saw this shown in a Vardot video - alignment of blocks inside the section.
Thanks for any pointers.
Wow! Where can I send a little coffee $ @jsutta
I'll be trying it out tomorrow on a dev site.
goose2000 → created an issue.
I noticed today, that upon initial creation of a node, there is no requirement to complete the revision log.
Later, found that any edit, revision change to that same node, DOES require a log message.
So, I think this is one of those "did not meet the users expectation." type bug. Think you should require a log message initially, from the very get-go.
I guess I should have described my environment:
Windows server 2022 with Node.js installed.
I started then to go down a rabbit hole trying to learn difference between commonJS require() and then the newer ESM import methods. I tried to convert the script to use ESM import commands, but that got a different error.
Also tried to downgrade my node-fetch, but it didn't seem to stick. node-fetch -v always showed 3.0.0
https://stackoverflow.com/questions/74278936/i-am-unable-to-downgrade-th...
Thanks for the response, I think it's very cool system for accessibility.
goose2000 → created an issue.
I would like this SSO solution to continue too, used it for a long time. I have been able to get a CAS server solution going but this has always been lighter weight for Moodle.
I can install and test...
goose2000 → created an issue.
Regardless of how the Libraries report page displays, I found everything to be working, studying the init() function below, when I deleted the library directory, it for sure triggered the warning/error message therein. Put it back and all was fine. Closing.
/**
* Implements hook_init().
*
* Nags the user about the missing library on OAuth2 admin pages.
*/
function oauth2_server_init() {
$item = menu_get_item();
if (is_array($item)) {
if ($item['access'] && strpos($item['path'], 'admin/structure/oauth2-servers') === 0) {
$path = oauth2_server_get_library_path();
// Check for the existence of one file from the library.
if (!$path || !file_exists($path . '/src/OAuth2/Server.php')) {
$message = t('The OAuth2 server library is required for the OAuth2 module to function.
Download the library from <a href="https://github.com/bshaffer/oauth2-server-php" target="_blank">GitHub</a> and place it in <em>!path</em>.', array('!path' => $path));
drupal_set_message($message, 'error');
}
}
}
}
goose2000 → created an issue.
I wish. - there must be like some entity reference field?
Yes, this issue is well and alive, with both modules updated to latest:
og 7.x-2.11
simple_pass_reset 7.x-1.6
goose2000 → created an issue.
Great to hear - @jsutta :)
I'm just mainly following, I need a theme that does ARIA landmark role="main" correctly; working on a university project. I was surprised to see this doesn't yet exist in D10.2 Olivero. I guess I can override this somehow until patches are in core.
<!-- END OUTPUT from 'core/themes/olivero/templates/layout/region--secondary-menu.html.twig' -->
</div>
</div>
</div>
</div>
</header>
<div id="main-wrapper" class="layout-main-wrapper layout-container">
<div id="main" class="layout-main">
<div class="main-content">
<a id="main-content" tabindex="-1"></a>
<div class="main-content__container container">
#11 got me into the promised land, this was not fun, but thanks @fun.fkelly12054@gmail.com
I am working with a University, with their accessibility office, they advised that <button>
should open a submenu, and not goto a URL, we have that and is good. But the <button>
option should read just the same a the <a>
link. In this example it would show (ideally) "Services" and open the submenu. Not an arrow. Then you have something that works for both sighted and visually challenged persons at once.
I feel this is a weird double implementation, with the the "Submenu arrow" option. We have the two sets of navigation in this implementation <a>
and <button>
. I am using the Alpha 3.x version.
<div class="tbm-link-container">
<a href="/services-2-col" class="tbm-link level-1 tbm-toggle" aria-expanded="false">
Services
</a>
<button class="tbm-submenu-toggle always-show" aria-expanded="false"><span class="visually-hidden">Toggle submenu</span>
</button>
</div>
Also, TB-MM has done the most for modern accessible menus - thank you.
Hi ELC - was away and sick.
Yes! This is what I discovered about logging on to Drupal - using the "cas/login" path. When I did this, my user passed right on into Moodle (yes is was properly configured to work with CAS server) without a hitch.
Soo, think I this basically is a support request too. I will check about the "gateway=true"
Not that you need care but I'm using this authentication plugin for the Moodle side:
CAS server (SSO) with user-attribute release
https://moodle.org/plugins/auth_casattras/
It works well with this module, able to map attributes (first, last, city, phone)
It dawns on me I will need to make "cas/login" my main path for logging on at the drupal site. Not /user
Some simple re-direction should do it.
Thank you for hearing this.
This is really great, thank you a lot @jmauricio. Trying later today.
I think I'm understanding this a bit more now:
"Each new service (site) visited will require returning to the CAS Server to authenticate against the CAS Server for that given service. If the user is logged in using SSO this will be transparent and automatic already. They should not be logging in to the original service site, but instead being redirected to the caslogin on the CAS server."
To start with, users at my Drupal site have logged on using Drupal. Not CAS Server. So when they navigate to a the Moodle site (a service site), they have the option to login with CAS (this part I could eliminate by only allowing CAS login, less choices), and this then directs them to the Drupal login page, to login using the CAS Server.
"If the user is logged in using SSO this will be transparent and automatic already."
But they are not, they only have a Drupal login session established. So they then login at the form, and it works fine, redirects them to their Moodle destination.
So I'm wondering, should set up a CAS Server site 1st (just for authentication) and then setup a 2nd Drupal site as a CAS service site along with the moodle CAS service site?
Drupal CAS Server
|
/\
Drupal Moodle
I made a quick video of my current configuration / login process:
I made a quick video of my current configuration / login process:
goose2000 → created an issue.
@jmauricio - that would be cool, super useful. Thanks.
goose2000 → created an issue.
goose2000 → created an issue.
Thank you for the patch direction. Maybe not the place, but why does the site's email address, get a copy of everything? I guess this is a use case I don't understand.
Hi, just installed from composer on my site (D 10.1.6). PHP 8.1
When I enabled the module I saw this error :
Error message
Close
Deprecated function: unserialize(): Passing null to parameter #1 ($data) of type string is deprecated in Drupal\menu_token\Service\MenuTokenContextManager->__construct() (line 34 of modules\contrib\menu_token\src\Service\MenuTokenContextManager.php).
Drupal\menu_token\Service\MenuTokenContextManager->__construct(Object, Object, Object, Object, Object) (Line: 259)
Drupal\Component\DependencyInjection\Container->createService(Array, 'menu_token.context_manager') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('menu_token.context_manager') (Line: 197)
Drupal::service('menu_token.context_manager') (Line: 374)
menu_token_menu_links_discovered_alter(Array, NULL, NULL) (Line: 545)
Drupal\Core\Extension\ModuleHandler->alter('menu_links_discovered', Array) (Line: 127)
Drupal\Core\Menu\MenuLinkManager->getDefinitions() (Line: 150)
Drupal\Core\Menu\MenuLinkManager->rebuild() (Line: 90)
Drupal\Core\EventSubscriber\MenuRouterRebuildSubscriber->menuLinksRebuild() (Line: 78)
Drupal\Core\EventSubscriber\MenuRouterRebuildSubscriber->onRouterRebuild(Object, 'routing.route_finished', Object)
call_user_func(Array, Object, 'routing.route_finished', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'routing.route_finished') (Line: 197)
Drupal\Core\Routing\RouteBuilder->rebuild() (Line: 83)
Drupal\Core\ProxyClass\Routing\RouteBuilder->rebuild() (Line: 377)
Drupal\Core\Extension\ModuleInstaller->install(Array, 1) (Line: 83)
Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array) (Line: 502)
Drupal\system\Form\ModulesListForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 114)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 52)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 597)
Drupal\Core\Form\FormBuilder->processForm('system_modules', Array, Object) (Line: 325)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 592)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
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: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
I know this is closed but I had this issue, I could not install with drush and there was no UI to uninstall these. So I just copied the URL hovering over the uninstall bartik button:
https://invoice-bhs.blah.blah/admin/appearance/uninstall?theme=bartik&to...
and changed it to classy
https://invoice-bhs.blah.blah/admin/appearance/uninstall?theme=classy&to...
And it uninstalled fine.
Thanks all - I'm doing a D9 -> D10 upgrade today so, will give it a go.
goose2000 → created an issue.
goose2000 → created an issue.
I created an event subscriber for when a Drupal Commerce order has been moved to a 'complete' state. I thinking I could then use this module to invoke an enrollment at that time. I.E. purchase a moodle course.
namespace Drupal\moodle_rest_enroll\EventSubscriber;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Drupal\state_machine\Event\WorkflowTransitionEvent;
use Drupal\Core\Entity\EntityTypeManager;
/**
* Class OrderCompleteSubscriber.
*
* @package Drupal\moodle_rest_enroll
*/
class OrderCompleteSubscriber implements EventSubscriberInterface {
/**
* Drupal\Core\Entity\EntityTypeManager definition.
*
* @var \Drupal\Core\Entity\EntityTypeManager
*/
protected $entityTypeManager;
/**
* Constructor.
*/
public function __construct(EntityTypeManager $entity_type_manager) {
$this->entityTypeManager = $entity_type_manager;
}
/**
* {@inheritdoc}
*/
static function getSubscribedEvents() {
$events['commerce_order.place.post_transition'] = ['orderCompleteHandler'];
return $events;
}
/**
* This method is called whenever the commerce_order.place.post_transition event is
* dispatched.
*
* @param WorkflowTransitionEvent $event
*/
public function orderCompleteHandler(WorkflowTransitionEvent $event) {
/** @var \Drupal\commerce_order\Entity\OrderInterface $order */
$order = $event->getEntity();
// Order items in the cart.
$items = $order->getItems();
\Drupal::logger('moodle_rest_enroll')->notice("Subscricer for orderCompleteHandler WORKED!", []);
// Write your custom logic here. Enrol a user into a Moodle course here...
}
}
For core deprecated modules, that are not enabled, it is simple and easy to just delete the module from \core\modules. If you don't use it / need it.
But in my case I have RDF, that is enabled and no visible way to disable it (check box disabled). So adding some steps about how to:
- disable core modules
- remove them from working directory
would be helpful. I tired to disable RDF from the DB following methods found here:
https://www.drupal.org/node/157632#comment-15047153 →
I could not get the DB method to work.
I tried the DB method for D9 for the RDF module (it was set to enabled from the start). But it still shows enabled ?
MySQL Commands Drupal 9
First see if the module is installed:
SELECT * FROM `key_value` WHERE name = 'rdf'
Than remove the module with:
DELETE FROM `key_value` WHERE name = 'rdf'
I was sure to clear all cache and run update.php
Any other ideas? Thanks
Hi, I have a D9 plugin working, I will share if you'll polish and post? I made it for UNC Chapel Hill.
goose2000 → created an issue.