Account created on 18 January 2009, over 16 years ago
#

Merge Requests

More

Recent comments

🇬🇧United Kingdom malcomio

Setting to Needs Review, as the merge request for 💬 Create new revision - Default to on option Active addresses the problem.

🇬🇧United Kingdom malcomio

If I manually edit the exported config to remove the content dependency, this error does not occur.

🇬🇧United Kingdom malcomio

This seems to be specific to block config based on search components - the actual components are imported correctly.

Inside \Drupal\Component\Plugin\Discovery\DiscoveryTrait::doGetDefinition I can see that a definition has been registered as coveo_search_component, but the value of $plugin_id does not match - e.g. in my case it is coveo.search_component.content

🇬🇧United Kingdom malcomio

The merge requests for 💬 412 Precondition Failed Active and Provide a standalone search box Active add documentation that explains how to set up search components.

🇬🇧United Kingdom malcomio

https://git.drupalcode.org/project/coveo/-/merge_requests/4/diffs includes an update to the theme suggestions and the README to enable you to create extra components with custom templates.

🇬🇧United Kingdom malcomio

Having created a Search Component at /admin/config/search/coveo/search_components, a block became available in the block layout page with the same name as the search component.

However, when viewing the block on the front end, I'm seeing a 403 error from /rest/search/v2?organizationId={orgID} and a 400 from /rest/v15/analytics/custom?visitor={visitorID}

🇬🇧United Kingdom malcomio

This was happening because I hadn't configured the Source ID for the organization - after adding that, I was able to index content.

The documentation should be updated to explain about adding an organization in Drupal.

🇬🇧United Kingdom malcomio

When trying to request the URL, it responds with 401 UNAUTHORIZED: "Full authentication is required to access this resource"

The module should catch the exception and provide an appropriate error message.

🇬🇧United Kingdom malcomio

Having looked at the code, this doesn't seem to be configurable - work in progress in https://git.drupalcode.org/project/sitewide_alert/-/merge_requests/75

🇬🇧United Kingdom malcomio

malcomio made their first commit to this issue’s fork.

🇬🇧United Kingdom malcomio

In our case, this does seem to be caused by views_cm_current_state - I've created 🐛 Error when sorting views by moderation state Active and will create a merge request with a proposed fix.

🇬🇧United Kingdom malcomio

I've pushed a change in the branch that handles this scenario, but I think that the real problem is that the module does not implement hook_user_cancel - see 📌 Implement hook_user_cancel Active

🇬🇧United Kingdom malcomio

One factor that may be relevant is that @suryabhi and I work on a project which previously used the 2.x branch of the module and has been updated to use the 3.x branch.

I've been able to reproduce this issue when trying to edit an old alert, but it doesn't seem to happen for newly created alerts.

The merge request does not address the problem, as the return value can still be null.

🇬🇧United Kingdom malcomio

I also encountered this issue on a server where the site root was in a symlinked directory.

Even after following the steps above, the problem persisted until I changed settings.php to use the real (non-symlink) path.

🇬🇧United Kingdom malcomio

Have made a start on this in https://git.drupalcode.org/project/ckeditor_datetime/-/merge_requests/2, but I think there's more to it than just changing the version dependency - need to make the plugin compatible with CKeditor 5

🇬🇧United Kingdom malcomio

Given that the sending form provides a text area where you can add any email address (whether or not it relates to a user), it isn't clear what the request is here.

🇬🇧United Kingdom malcomio

As far as I can see, this still needs work - the merge request shows no changes, but the code still calls getUsername

🇬🇧United Kingdom malcomio

This is effectively the same issue as 🐛 Call to undefined method getUsername RTBC

🇬🇧United Kingdom malcomio

This change doesn't explain what to do about unknown parsers, but it does:

1. fix the packagist API URL
2. only check enabled parsers
3. make the messaging a bit easier to read

🇬🇧United Kingdom malcomio

\Drupal\markdown\Annotation\ComposerPackage::getAvailableVersions is using a deprecated URL to check for known packages.

See https://github.com/thephpleague/commonmark/discussions/1082#discussionco... for more info.

🇬🇧United Kingdom malcomio

Regarding the unknown parsers issue, see 📌 Explain Unknown parsers more clearly Active

🇬🇧United Kingdom malcomio

Possibly related to Add support for Commonmark v2 Active ?

In our test environment, where we have the patch from that issue, and league/commonmark 2.7.0, but haven't changed any markdown settings, we are seeing "3 Unknown parsers", with CommonMark and CommonMark PECL as the unknown ones.

In another environment where we have league/commonmark:2.6.0, it isn't flagged as unknown.

🇬🇧United Kingdom malcomio

Thanks for the detailed response, and the suggestion of ddev-drupal-contrib - I hadn't seen that before.

I'll look at the various points you raised.

In terms of why I chose Matt Brailsford's CSS, it was just the most visually appealing to me, and technically simplest.

It did need some modification to work with Drupal, because it assumed particular markup.

It is itself a derivative of Slickmap, which uses The Unlicense.

So perhaps it would make sense to alter the styles so that they aren't based on Matt Brailsford's CSS.

In terms of an API for registering a different library, that feels like overkill to me - if a particular site wants to override styles, they can do it in the theme layer.

🇬🇧United Kingdom malcomio

Patch #19 doesn't apply cleanly because it was created from a site root.

I've taken the changes and applied them in https://git.drupalcode.org/project/adminimal_theme/-/merge_requests/17

It fixes the problem for me.

🇬🇧United Kingdom malcomio

In our case, we disabled advagg, as the site's styling is relatively simple, and the benefits we were getting from advagg were fairly small.

@rahaf albawab what is "PSH"?

🇬🇧United Kingdom malcomio

As noted on 🐛 getName() must be compatible Closed: duplicate , the video_embed_field module has changed the signature of getName, so we will need to update this.

🇬🇧United Kingdom malcomio

I've realised that getName comes from our patch for 📌 Implement a getName method in the VideoEmbedProvider Needs review , so we'll need to update that merge request.

🇬🇧United Kingdom malcomio

Link to Gitlab templates info about project pages

🇬🇧United Kingdom malcomio

I've also observed this in some spammy webform submissions:

Incorrect string value: '\xED\xA0\xBD\xED\xB1\x89...' for column 'value' at row 6: INSERT INTO "webform_submission_data"

Inside the message was:

�� Click Here to Claim Your FREE Copy

Not sure what that was attempting to write.

🇬🇧United Kingdom malcomio

With the patch applied, we're no longer seeing the original error on page load, but we are seeing this error in an alert after AJAX sorting:

An error occurred while attempting to process /views/ajax?search=&sort_by=changed&_wrapper_format=drupal_ajax: Failed to execute 'pushState' on 'History': A history state object with URL 'https://domain/search-content?sort_by=search_api_relevance' cannot be created in a document with origin 'https://domain' and URL 'https://username:password@domain/search-content?search=&sort_by=changed'.

🇬🇧United Kingdom malcomio

Having tested Country a little, it doesn't directly provide the filtering functionality - that comes from Select2 Boxes , which doesn't have a stable release.

So for our use case, I think we will:

1. Use the Chosen module
2. Apply it to the existing select field - this could be done in a form alter, but I'd started investigating integration with the phone_number module, so I started MR34 - that patch makes it work, although ideally the change would declare dependencies etc.

🇬🇧United Kingdom malcomio

I think that there was some confusion around this issue.

The patch on #4 and #5 is actually for the Phone Number (field) module .

The issue should have been raised for that module in the first place.

🇬🇧United Kingdom malcomio

If we check that $query exists before trying to call getSearchId on it, we get the message "Cannot search on a disabled index." as expected.

See https://git.drupalcode.org/project/search_api/-/merge_requests/219

🇬🇧United Kingdom malcomio

One example where we found that this patch was needed was when a user selected India, then entered "999" as the phone number, they did not see any error message.

The function in the library is documented at https://github.com/giggsey/libphonenumber-for-php/blob/master/src/PhoneN... - there aren't many examples in the tests there, but one is +33 6 76 83 51 85 for Germany

🇬🇧United Kingdom malcomio

Need to test further, but seems to work, based on similar changes in other modules, e.g. https://git.drupalcode.org/project/menu_breadcrumb/-/merge_requests/27/d... for 🐛 Missing route cachability metadata. Active

🇬🇧United Kingdom malcomio

malcomio made their first commit to this issue’s fork.

🇬🇧United Kingdom malcomio

The patch fixes the issue for us.

🇬🇧United Kingdom malcomio

Thanks for sharing the patch - a merge request would be good - see https://www.drupal.org/docs/develop/git/using-gitlab-to-contribute-to-dr...

Also, if this needs to be reviewed by the maintainers, then the status should be "Needs Review" - see https://www.drupal.org/docs/develop/issues/fields-and-other-parts-of-an-...

I found this issue after investigating 🐛 Ajax link flag does not work in view with ajax enabled. Closed: outdated - will test whether the patch solves our problem.

🇬🇧United Kingdom malcomio

malcomio made their first commit to this issue’s fork.

🇬🇧United Kingdom malcomio

Looking at the difference between beta5 and beta6, one significant difference seems to be the changes in flag.routing.yml

🇬🇧United Kingdom malcomio

Having updated from 8.x-4.0-beta5 to 8.x-4.0-beta6, we've started seeing this.

We do have a patch applied for Allow AjaxResponse to be altered RTBC - possibly related?

🇬🇧United Kingdom malcomio

It may also be worth adding extra logging, similar to 📌 Introduce debug mode - do not pollute indexing output with Tika warnings Active .

For example, if debug mode is on, the extractor could:

1. log details of the file before it tries to do the extraction
2. report success or failure

🇬🇧United Kingdom malcomio

Possibly related to the following issues on older branches:

#2474849: Ignore attachments based on uri, filesize or file extension
🐛 Request Entity Too Large Closed: cannot reproduce

Perhaps the way forward would be to limit extraction by file size.

There is a config option in the schema, and this is configurable via the Search API processors form.

We saw the error with the following config:

  file_attachments:
    excluded_extensions: 'aif art avi bmp gif ico mov oga ogv png psd ra ram rgb flv'
    number_indexed: 0
    number_first_bytes: '1 MB'
    max_filesize: '0'
    excluded_private: 1
    excluded_mimes: 'audio/x-aiff image/x-jg video/x-msvideo image/x-ms-bmp image/gif image/vnd.microsoft.icon video/quicktime audio/ogg video/ogg image/png image/x-photoshop audio/x-realaudio audio/x-pn-realaudio image/x-rgb video/x-flv'
 

Perhaps we need to try changing these settings?

🇬🇧United Kingdom malcomio

For anyone who is having this problem when trying to edit non-markdown formats, there is a workaround:

1. delete the markdown filter format: drush cdel filter.format.markdown
2, uninstall the markdown module: drush pmu markdown
3. clear cache: drush cr
4. re-enable markdown: drush en markdown
5. re-create the markdown format

🇬🇧United Kingdom malcomio

Rather than uploading a zip with a set of instructions, ideally we would update the main instructions.

Also, see 🐛 Required PDF.js library is not installed when using composer RTBC for a suggested improvement to the installation process.

Production build 0.71.5 2024