Account created on 28 May 2014, over 10 years ago
#

Recent comments

I am on 10.3.10 and have upgraded book module to latest alpha version. I did see the add-sibling link as an anonymous user, so tried to install a patch from your MR. Unfortunately it doesn't apply. The error I get is "can't find file to patch at input line 15."

@SocialNicheGuru, for what it's worth I was able to successfully apply the patch in #41, but only after I removed the patch from issue 2928904 Add a mapping target to media field Needs review , which I had already added. For some reason, if either patch is present in the composer file, the other won't apply. Right now I have 2928904's patch in my composer file. (And I have the beta4 version of Feeds.)

Since I am trying to create both a series of media importers that will import files as media, and also a node importer that will then import those local media files into node content, it would be extremely helpful if both patches were available to use at the same time. Thanks for the quick responses from you and @MegaCriz.

Thank you for a great module, which has been my go-to for years now. I am currently converting a site from D7 to D10 and really need to be able to import local files using the public:// path. Neither the patch in #45 nor the merge request will apply in Drupal 10.3.1. Any chance of an update?

I encountered this same problem. The original builder of the webform had set up "yes/no" as a custom option list for some reason and on the translated form the option being shown for the second item ("No") was always the first item's value ("Yes"), as mentioned above. Oddly, I discovered that a custom list that has three items (yes, no, unsure) does translate all three items correctly. Maybe that's a clue?

In my case since there is already a standard option for "yes/no", I was able to change to that, translate it, and that translation displays correctly in my webform.

@simonbaese,

In answer to your questions:

Which browser are you using? Does the error prevail in other browsers?
I was using Chrome, but error persists in Edge. I'm assuming it happens in Safari and Firefox as well but I haven't tested them.

Does the error show, when placing other blocks?
No, it doesn't.

What is the complete error AJAX error message?
It's huge, but here's the first part which looks like maybe what you might need:

"\nAn AJAX HTTP error occurred.\nHTTP Result Code: 200\nDebugging information follows.\nPath: /admin/structure/block/add/custom_book_navigation/hhsds?region=sidebar_first\nStatusText: parsererror\nResponseText: Warning: Undefined array key \"use_top_level_title\" in /app/docroot/core/modules/book/src/Plugin/Block/BookNavigationBlock.php on line 113\n[{\"command\":\"settings\",\"settings\":{\"ajaxPageState\":{\"theme\":\"claro\",\"theme_token\":\"yPltGbVFEAkLR7nAUBnafWSDBzlW5YEvTHh0vt3Qte4\",\"libraries\"

Does any related error show in the reports (/admin/reports/dblog)?
No, there isn't anything there.

Are there other modules that could cause this behavior?
I do have Menu Block enabled. I tried uninstalling it and just using Custom Book Block and core menu blocks, but error still happens when I try to add a custom book navigation block.

I'm using the 2.0RC version of Scheduler, and have tried this code in a custom module per your suggestion (in my case, setting the unpublish date to two years in the future).

It isn't working for me. Not sure what I'm doing wrong? Here's the code from my .module file:

function mymodule_form_alter(&$form, &$form_state, $form_id) {
    if ($form_id == 'node_events_form') {
        // Set the "Publish on" date to two years from now
        $form['options']['status']['scheduled']['unpublish_on']['#default_value'] = date('Y-m-d', strtotime('+2 years'));
    }
}
Production build 0.71.5 2024