Nigeria
Account created on 1 June 2011, over 13 years ago
#

Merge Requests

Recent comments

🇳🇬Nigeria chike Nigeria

Using 1.0.x-dev, I couldn't get past this error with free tier. I tried with OpenAI and Anthropic.

🇳🇬Nigeria chike Nigeria

The workaround at #12 is working for me on Drupal 10.3.5.

🇳🇬Nigeria chike Nigeria

I wrote a patch to add breadcrumb in the block, in the referenced issue.

🇳🇬Nigeria chike Nigeria

When I uninstalled big_pipe module I could see the slider as an admin.

🇳🇬Nigeria chike Nigeria

I encountered this issue. I was working with WAMP on localhost and the slider was showing while I was logged in as admin but when I moved the site to remote server, the slider stopped loading while I was logged in as admin and was loading only when I viewed as anonymous.

🇳🇬Nigeria chike Nigeria

The patch works and module works well in Drupal 10.

A Drupal 10 release will be appreciated.

🇳🇬Nigeria chike Nigeria

chike created an issue.

🇳🇬Nigeria chike Nigeria

@weseze when I used the module I needed this feature, https://www.drupal.org/project/redirect_after_registration/issues/3163523 Don't know if the module now has it.

🇳🇬Nigeria chike Nigeria

It means myself have been abusing this module. I check it everywhere I add an image. I don't like the stress of entering alt texts and I have heard many say that to me.

🇳🇬Nigeria chike Nigeria

I think "Check to skip adding alt text." will suffice. The technical angle of screen readers and image being 'decorative' will throw off a larger number of users. E.g. we have this issue on our forum and most forum members don't know screen readers, never heard of 'decorative' and don't even know what alt text means and so when they see "This image ..should be hidden'' they get alarmed like their image will not show to some people.

🇳🇬Nigeria chike Nigeria

Both with 2.0.9 and 2.0.x-dev is-less is not existent both in the main stage and the navigation slide. is-less is not found anywhere.

🇳🇬Nigeria chike Nigeria

This is still an issue with the latest 2.x releases.

🇳🇬Nigeria chike Nigeria

Really my bad.

Adding the image styles fixed the issue.

I usually would add the image styles but I was quickly setting up the page to fine tune later.

Sorry about the trouble and thanks for helping out.

Do you know because of this issue I had to use Colorbox on a different site I had this issue some weeks ago. That was nodes and not product but this issue appeared and to move on I installed Colorbox and used it.

🇳🇬Nigeria chike Nigeria

Screenshot of formatter form:

Backtrace (when trying to view a product):

The website encountered an unexpected error. Try again later.

Error: Call to a member function transformDimensions() on null in Drupal\blazy\Media\BlazyImage::transformDimensions() (line 444 of modules/contrib/blazy/src/Media/BlazyImage.php).
Drupal\blazy\Blazy::transformDimensions() (Line: 81)
elevatezoomplus_build() (Line: 42)
template_preprocess_elevatezoomplus()
call_user_func_array() (Line: 261)
Drupal\Core\Theme\ThemeManager->render() (Line: 491)
Drupal\Core\Render\Renderer->doRender() (Line: 248)
Drupal\Core\Render\Renderer->render() (Line: 475)
Drupal\Core\Template\TwigExtension->escapeFilter() (Line: 61)
__TwigTemplate_ff4c80800399fc79d4ccb6c3cb72253b->doDisplay() (Line: 360)
Twig\Template->yield() (Line: 335)
Twig\Template->render() (Line: 38)
Twig\TemplateWrapper->render() (Line: 33)
twig_render_template() (Line: 348)
Drupal\Core\Theme\ThemeManager->render() (Line: 491)
Drupal\Core\Render\Renderer->doRender() (Line: 248)
Drupal\Core\Render\Renderer->render() (Line: 238)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 231)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare() (Line: 128)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse() (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
call_user_func() (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 186)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 741)
Drupal\Core\DrupalKernel->handle() (Line: 19)
🇳🇬Nigeria chike Nigeria

Using Drupal core 10.3.1 and Barrio B5 theme install Drupal commerce, add images field on a product or product variation, format the field to display with Splide Image, use Grid Foundation for Skin main, X Grid for Optionset main, choose an image style, then add Media switcher "Image to Elevatezoomplus" with Default optionset.

Trying viewing a product you will see the error.

I have also seen this with a different theme based on Bootstrap 4 and running Drupal 9.

🇳🇬Nigeria chike Nigeria

I encountered this issue in Drupal 10.3.1. Patch #3 got me over it. There seems to be other opinions about the patch on this page.

Also not sure if it is related to this issue, but the module still had other problems after I got over the first issue. I then opened this issue 🐛 LogicException: A stray renderRoot() invocation is causing bubbling of attached assets to break. Active .

🇳🇬Nigeria chike Nigeria

This is Drupal 10.3.1 and I could not get past Uncaught TypeError: $(...).once is not a function. When I managed to get past it I can't tell why the code is not working either the changes I made or the code itself. I guess .slick--field-slider should be okay for .your-carousel-class?

I can remove all the animation classes I added on the carousel so this code can add the classes afresh without having to remove and append to existing classes.

Thank you.

🇳🇬Nigeria chike Nigeria

For anyone else looking to override this text, you can put this on a custom module or .theme file,

/**
 * Implements hook_form_alter().
 */

function custommodule_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
          //Override 'Proceed as guest' text
          $form['login']['guest']['text']['#markup'] = t('<p>Proceed to checkout, an account will be created for you at the end. You will be notified via email about your new account.</p><p>You can also proceed as guest if you have an existing account and your new order will be added to your account.</p>');
}
🇳🇬Nigeria chike Nigeria

I too am wondering what is 'optional' about an account that will surely be created without the user doing anything about it.

I have been searching through the variables on the form and don't seem to see a way to override the text. Is there a way please? I want to set "Proceed to checkout, an account will be created for you at the end. You will be notified via email about your new account."

🇳🇬Nigeria chike Nigeria

Using the 'Calculated' formatter solved the issue I was talking about in #12.

Thank you and apologies for the trouble.

🇳🇬Nigeria chike Nigeria

Using the 'Calculated' formatter solved this issue.

Thank you and apologies for the trouble.

🇳🇬Nigeria chike Nigeria

Please how does this issue relate to this one I raised here, https://www.drupal.org/project/commerce_exchanger/issues/3449136 💬 Converted price not showing on product page until product is added to cart Active

Thank you.

🇳🇬Nigeria chike Nigeria

Hello @BR0kEN, talking about multiple parents, do you see any case in the issue I posted here, https://drupal.stackexchange.com/questions/320139/hierarchical-select-mo...

Is the scenario I described the way things are designed or is there an issue in my scenario?

I am using the latest version of cshs.

🇳🇬Nigeria chike Nigeria

Thank you!

You know the best way to do it, I am not a programmer as you know.

Will be good if the breakpoint is made configurable so someone can choose the breakpoint they want zoom turned off.

🇳🇬Nigeria chike Nigeria

Thank you for the clarification. I would have written a patch if I had enough knowledge 🥺.

🇳🇬Nigeria chike Nigeria

@facine Does the mentioned commerce issue being fixed make any difference now?

🇳🇬Nigeria chike Nigeria

Oh I got it working now. Formerly on the handler I mapped 'Amount' to the computed twig field but now I tried by using the 'Other' option and adding a webform token of the field. This got the computed twig value working as the product price. Thanks.

🇳🇬Nigeria chike Nigeria

I am having a similar issue, all attempts to pass a computed token or computed twig value to the price field is failing. If I try a value field with a number explicitly written it will will work but a token value or computed twig value will fail to pass. I have tried all types of Twig filters and all types of ways to cast the value to make sure it is a number and yet it wouldn't pass over to the price field.

🇳🇬Nigeria chike Nigeria

Patch #7 is working. Thanks.

🇳🇬Nigeria chike Nigeria

Yes I have field_formatter installed, the latest version 3.0.0-rc3

🇳🇬Nigeria chike Nigeria

The MR worked for me. I didn't test any of the other patches.

🇳🇬Nigeria chike Nigeria

I got the same issue, the comments here encouraged me to try regardless so I saved the page and everything worked!

🇳🇬Nigeria chike Nigeria

I want to target the submit button, should be the last step I guess. What can I adjust in my code to target the button and change the text?

🇳🇬Nigeria chike Nigeria

hook_form_alter() didn't work I guess for the same reason given by FrankDesign in the comment here, https://drupal.stackexchange.com/questions/308223/drupal-9-commerce-chan...

Here is the code I used,

 function mymodule_alters_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
  if ($form_id == "commerce-checkout-flow-multistep-default") { 
    $form['actions']['submit']['#value'] = t('Complete checkout');       
    }
  }

This does not work.

🇳🇬Nigeria chike Nigeria

Tried again and sure the patch is working for me now.

🇳🇬Nigeria chike Nigeria

I am using media_thumbnails_video which like you said needs ffmpeg.

Per my check most (if not all) host companies will not offer ffmpeg on their shared plans because it is resource-intensive. A user attempting to install it will also need root level access on the server which a shared hosting plan will not offer.

I spoke with my host company now and they said,

... ffmpeg is not supported on any of our hosting plans due to security considerations and resource intensiveness.

So like I feared, there seems to be no luck for sites on shared servers.

🇳🇬Nigeria chike Nigeria

As said on #6 admin-level permissions is required for a user to be adding views headers and footers so I am not sure site owners would be giving untrusted users admin roles. For the possible security risks with Twig templates, a warning message could be left on the field.

There is a legitimate and very powerful use case for allowing Twig syntax on views headers and footers just as they add so much power to views when one uses 'Custom text' field to play around with fields using Twig. It indeed gives so much power to Views, and so also will there be such power added to headers and footers if full Twig syntax is allowed.

Yesterday I wanted to use Twig if elseif condition to conditionally display a message on the views footer depending on the value of a field, that's when I noticed this wasn't possible. Now I did make a Custom text field and write the Twig conditions on it and then added the field on the footer which ended up achieving the same goal. So if I could still add the condition there somehow why not then allow us do it directly on the footer?

Weighing the security risks against the use case of the feature, it sure will win to have it enabled and a warning message left on the field to tell people to write Twig with care.

🇳🇬Nigeria chike Nigeria

My issue wasn't solved. What happened in my case was somehow 'media' module did not install completely or something cos I found the media types were not available on the site and visiting 'admin/content/media' threw an error. So I rolled back the site till I uninstalled 'media' module. I removed patch #57 and re-installed the media module and it was now properly installed. I re-installed back all the other modules and site came back normal.

The thing is, without patch #57 I wouldn't have been able to access the Uninstall page to uninstall the media module and the other modules that required it.

🇳🇬Nigeria chike Nigeria

chike created an issue.

🇳🇬Nigeria chike Nigeria

I installed Drupal 10.2.4 and started building the site, just regular site building stuff - enabling contrib modules and creating pages. Then I decided to uninstall the 'contact' module and clicking /admin/modules/uninstall threw this error,

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'custom_theme.media' doesn't exist: SELECT "base_table"."vid" AS "vid", "base_table"."mid" AS "mid" FROM "media" "base_table" GROUP BY "base_table"."vid", "base_table"."mid" LIMIT 1 OFFSET 0; Array ( ) in Drupal\Core\Entity\Query\Sql\Query->result() (line 271 of C:\wamp64\www\custom-theme\public_html\core\lib\Drupal\Core\Entity\Query\Sql\Query.php).

The 'media' module was auto-installed as a dependency for 'bootstrap_layout_builder' module. I have not added a media item yet.

Anyways patch #57 got me back to the Uninstall page and I was able to uninstall the 'contact' module.

Thanks @_utsavsharma

🇳🇬Nigeria chike Nigeria

I equally can't find a way to do this.

It looks like it's either one uses this formatter or use Colorbox and the two will not work together.

🇳🇬Nigeria chike Nigeria

See how Conditions in Webform handles this,

🇳🇬Nigeria chike Nigeria

None of the patches is applying on the latest version.

🇳🇬Nigeria chike Nigeria

I just experienced what @jjpost said at #23.

🇳🇬Nigeria chike Nigeria

Thanks @dqd for all your work. When I tried the patches and they didn't work I reached out to a friend and he did this on the site: he made 3 conditions to solve the issue. Let me explain.

The control field is 'field_type_of_event'. If the value is 'Physical' then the target field 'field_venue' should be visible and if the value is 'Virtual' then the target field should be hidden. I had another condition to show another field 'field_online_event_platform' when 'field_type_of_event' has value 'Virtual'.

Initially I set one condition for 'visible' then I noticed that when it is hidden it was still required (the field was required) so the form won't submit. That was where the frustration started.

But I found out one other thing, if control field is set to 'Physical' and the target field showed up and I entered a value in 'field_venue' let's say 'Lagos' and then I switched the control field to 'Virtual' and 'field_online_event_platform' becomes visible and I entered a value 'Google Meet' and saved the form; then both 'Lagos' and 'Google Meet' are displayed on the page. So not only did I need to make the hidden field not-required, I also needed to make it empty cos user could have populated it with values before changing his mind to hide it.

So my friend made these three conditions on the site:

First he made 'field_venue' not required on the site and then he made the conditions.

1) If 'field_type_of_event' has value 'Physical' make 'field_venue' visible.

2) If 'field_type_of_event' has value 'Physical' make 'field_venue' required.

3) If 'field_type_of_event' has value 'Virtual' make 'field_venue' empty.

This is working perfectly.

I am not sure if this will help in the decision making for the way forward.

🇳🇬Nigeria chike Nigeria

It does render the Header or Footer area of the configured View but I had wanted to show the term description and an image field I added to the terms on the term pages.

🇳🇬Nigeria chike Nigeria

I am using X Grid for 'Optionset main' and X Splide nav for 'Optionset nav' and when there is one image, is-less class is added on the navigation slide and none added on the main slide. If slider type is set to 'Loop' on any of the slides the arrows show up. If slider type is set to 'Slide' on the navigation slide, the arrows are hidden and if slider type is set to 'Slide' on the main slide the right arrow shows up.

Summary: is-less is only added on the navigation slide (in my case) and only hides the arrows with slider type set to 'Slide' or 'Fade' and does not hide the arrow when slider type is set to 'Loop', when slide has only one image. is-less is never added on the main slide and the arrows stay visible.

Unfortunately I am not able to make a patch.

Thanks.

🇳🇬Nigeria chike Nigeria

base on module Elevate Image Zoom
but this module is no longer under maintenance and too many errors, I decided to redo it all with new library jQuery ElevateZoom Plus Plugin
View demo

The above message on the project page suggests one should not use the other module if starting a new project.

🇳🇬Nigeria chike Nigeria

@dac_ca I thought about this two days when I installed a new site using steps at #33 then I found layout_builder_iframe_modal wasn't showing a good UI so I tried to remove it but found out I couldn't cos the method at #33 made bootstrap_layout_builder require it so I had to unstall bootstrap_layout_builder before I would be able to uninstall layout_builder_iframe_modal.

I then realized the implication of one using his own methods, if the module finally makes an update to remove the dependency on media_library_theme_reset and the way the modules goes does not play with your custom way, you have to roll back to follow the module and if you have built a heavy site, it wouldn't be easy rolling back. E.g. before I could uninstall layout_builder_iframe_modal I had to disable all layouts made with bootstrap_layout_builder and then uninstall bootstrap_layout_builder. I could do that because it was still a new site, if I had gone far with the project it won't be that easy removing layout_builder_iframe_modal. Perhaps there could be some type of way of requiring all the projects independently in localhost and overwriting in production. But to be safer I would suggest waiting for the module to make an update so you are not left to fight your fires alone.

🇳🇬Nigeria chike Nigeria

MR !24 didn't work for me neither did the patch on the referenced issue.

I am using shs for a select field and when I enter a value and save, if I edit the node the field will appear twice it two levels and thrice if 3 levels. It's messy.

I can't make a patch so I can only report.

🇳🇬Nigeria chike Nigeria

Using Drupal 10.2.3 and Commerce 8.x-2.38 I am still not able to let users see only orders on their own products.

🇳🇬Nigeria chike Nigeria

But Twig Tweak might be an overkill for a site that is not already using it.

It would be more handy having a configuration option for it on the block. How I wish I have the expertise to make a patch for it, but not yet.

🇳🇬Nigeria chike Nigeria

Putting it in a submodule will be an excellent idea but I am not sure the maintainer will commit the patch. A better way will be to make a separate dependent module for it.

🇳🇬Nigeria chike Nigeria

This is not working for me. Term lineage is not saved after applying the patches above.

The maintainer of this module said repeatedly this module will NEVER save term lineage as a feature.

I will suggest using https://www.drupal.org/project/taxonomy_set_lineage together with shs to save the lineage.

🇳🇬Nigeria chike Nigeria

As per #8 yes you can create one but it works fine as long as you use Layout Builder or remain in-cms. If you make a template override for the view mode your template will be ignored and commerce-product--default.html will always be used, but will respect your custom view mode as to the fields you enable or disable in Manage display.

🇳🇬Nigeria chike Nigeria

None of the patches here is working for me in Drupal 10.2.0.

🇳🇬Nigeria chike Nigeria

Thanks @lluisma I tried this and it worked.

🇳🇬Nigeria chike Nigeria

#4 worked for me (Drupal 10.2.0)

🇳🇬Nigeria chike Nigeria

Thanks for your work. I later found out this was due to changes in Twig 2.10.0.

Also is there a way for this module not to depend on Lightning Media cos having core Media module turned on and this module again requiring one to install Lightning Media kind of clutters the site with Media solutions.

🇳🇬Nigeria chike Nigeria

I can use Layout Builder in the 'PDF' display to add and remove fields but layouts and styles made with LB are not respected in the generated PDF files.

🇳🇬Nigeria chike Nigeria

I later understood better and was able to use the hook to load the ticket in the browser. I guess this is about all what the hook is meant for? And then whatever other information one wants to make available will be added to the ticket page that loads on the browser?

🇳🇬Nigeria chike Nigeria

I am also getting a WSOD when trying to edit tickets (although this error is not a problem to us as we hardly will want to edit tickets).

How to reproduce:

Navigate to /admin/commerce/tickets and click Edit button for any of the tickets.

The error logged in dblog is,

Error: Call to undefined method Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::getTransitions() in Drupal\state_machine\Access\StateTransitionAccessCheck->access() (line 51 of /home/hostacct/public_html/modules/contrib/state_machine/src/Access/StateTransitionAccessCheck.php).

I am using the latest version on Drupal 10.2.0.

🇳🇬Nigeria chike Nigeria

How can I use this hook to pass the name and phone number of the owner of the ticket, and fields from the product variation, say the label, into the QR code?

Thank you.

🇳🇬Nigeria chike Nigeria

#23 is working for me on Drupal 10.2.0.

🇳🇬Nigeria chike Nigeria

Thank you @mably that's exactly what I am looking for.

🇳🇬Nigeria chike Nigeria

I just encountered this issue with an image field using Drupal 9.5.11. field_config_cardinality settings on the image field are ignored by the site.

🇳🇬Nigeria chike Nigeria

I encountered this issue and worked around it by adding the mentioned css to my custom theme but not adding the css with the .blockquote class selector but adding it on the blockquote element as so,

blockquote {
  border-left: 5px solid #ccc;
  font-style: italic;
  margin-left: 0;
  margin-right: 0;
  overflow: hidden;
  padding-left: 1.5em;
  padding-right: 1.5em;
}

This is because I didn't see any classes on the rendered blockquote. My markup is,

<blockquote>
    <p>...</p>
    <p>...</p>
</blockquote>
Production build 0.71.5 2024