Error on pages, site/node/null not found

Created on 12 September 2024, 2 months ago
Updated 18 September 2024, 2 months ago

Problem/Motivation

This module has been installed as a requirement to another module. Menu link attributes. As such it was not configured. The default configuration causes broken links in each page and a lot of error messages in the drupal error log

Steps to reproduce

> composer require 'drupal/menu_link_attributes:^1.5'
> composer require 'drupal/yaml_editor:^1.2'

Must have installed it and enabled it, as there is no composer dependencies in menu_link_attributes.

> drush en -y menu_link_attributes
> drush en -y yaml_editor

Edit a node. View the browser error console

Proposed resolution

1. There isn't much description as to how to install the ace editor in the readme.md file. I would not have read it as yaml editor was not the primary goal.

Digressing, I did this to add the ace editor

- download from https://github.com/ajaxorg/ace-builds/ to web/libraries
- Enter /libraries/ace-builds-1.5.0/src-min-noconflict/ace.js into /admin/config/development/yaml_editor as Editor source

2. Code checks. May hide the problem rather than solve it

if (drupalSettings.yamlEditor.source) {
getScript(drupalSettings.yamlEditor.source, initEditor);
}

Better would be to add a cdn to the default value for the editor. Get the install program to install the library, or add as a composer dependency.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.2

Component

Code

Created by

🇦🇺Australia interlated

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @interlated
  • 🇮🇳India sourav_paul Kolkata

    Can't reproduce the issue by following mentioned steps..

    Please provide proper mentioned steps & configuration..

  • 🇦🇺Australia interlated

    The important information is that you don't configure the ace editor.

    - composer require yaml editor
    - enable the module.

    Now try browsing the site. Check the dblog for error messages. Check chrome network analysis/console for errors.

    By default the configuration page has nothing in 'Editor source'.

  • 🇮🇳India Raveen Kumar

    @interrelated ,
    Please review here - https://prnt.sc/7GHgm8PjrF6P
    Editor source has prefilled value. I just install both modules and when i visit configuration form. The editor source has pre defined value.

    Can you please let me know what exactly is the issue you are facing here??
    Please & Thank you.

    FYI : I am using drupal 10 version

  • 🇦🇺Australia interlated

    I can see that the editor source does have a pre-filled value in your example. The theme did when I installed it, but the editor source didn't. 10.3.5

Production build 0.71.5 2024