Proper Ludwig usage for multisite installation

Created on 28 November 2023, over 1 year ago
Updated 30 November 2023, over 1 year ago

I am trying to install Symfony Mailer on a customer site.

It's a multisite installation, and I can't use Composer, so I am left with Ludwig.

I have manually installed all the required libs according to Ludwig (see screenshots), but still get

TypeError: htmlspecialchars(): Argument #1 ($string) must be of type string, array given in htmlspecialchars() (line 436 of /opt/drupal10/core/lib/Drupal/Component/Utility/Html.php).

when I activate the module.

Where can I find more information about what is going wrong? The issues reported here are not helping, and the wiki-page doesn't help either. The dependencies listed in composer.json and symfony_mailer.install

What am I missing?

πŸ’¬ Support request
Status

Closed: works as designed

Version

1.4

Component

Documentation

Created by

πŸ‡ΈπŸ‡ͺSweden Jochen Wendebaum

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡­πŸ‡·Croatia devad

    Hi Jochen.

    Please send a bit more data about your config.

    - Your Ludwig version
    - Drupal core version
    - php version

  • πŸ‡ΈπŸ‡ͺSweden Jochen Wendebaum

    Running Drupal 10.1.6 on PHP 8.1.26.

    Modules:
    Ludwig: 2.0.6
    trying to install "Drupal Symfony Mailer" 1.4.0

    It's the latest version of Drupal and all modules. No warnings and errors on the status-log.

  • πŸ‡­πŸ‡·Croatia devad

    I tested.

    I get the same error if I try to install Drupal Symfony Mailer module BEFORE all packages are downloaded by Ludwig.

    After all packages are reported as downloaded by Ludwig the Drupal Symfony Mailer module installation goes smoothly for me. No more WSOD or errors in logs.

  • πŸ‡­πŸ‡·Croatia devad

    My log record. Screenshot attached.

  • πŸ‡ΈπŸ‡ͺSweden Jochen Wendebaum

    According to Ludwig, everything is in place, so where is the difference?

    Is there a way to share a file listing from a working installation?

  • πŸ‡ΈπŸ‡ͺSweden Jochen Wendebaum

    Also, afaik, Ludwig can't install libraries on it's own on a multisite installation, can it?

  • πŸ‡­πŸ‡·Croatia devad

    I don't have any experience with multisite configs,

    so where is the difference?

    You can try to clear caches at all your sites after visiting Ludwig Packages page... just in case that's the problem in your case.

  • πŸ‡ΈπŸ‡ͺSweden Jochen Wendebaum

    Is it possible to post a directory listing for comparison?
    Should be enough to get it of the /libs folder.

  • πŸ‡­πŸ‡·Croatia devad

    Did you try this suggestion?

    You can try to clear caches at all your sites after visiting Ludwig Packages page... just in case that's the problem in your case.

  • πŸ‡­πŸ‡·Croatia devad

    Also... at your multisite configuration... do you have a multiple modules/symfony_mailer folders or only one for all sites?

  • πŸ‡ΈπŸ‡ͺSweden Jochen Wendebaum

    yes, clearing caches worked in fact..

    Good to know. Now I feel stupid.

  • πŸ‡­πŸ‡·Croatia devad

    Glad this helped.

    yes, clearing caches worked in fact..

    Ludwig has a cache clean embedded into it's code... but it can cache clean only the cache at the site where you have visited the Ludwig > Packages page. At all other sites you need to clean caches manually.

    The same drill with cache clean (at all your sites) you will need to go through after updating the symfony_mailer (or any other Ludwig-managed module) next time.

  • Status changed to Closed: works as designed over 1 year ago
Production build 0.71.5 2024