strpos issue with installation

Created on 3 January 2024, 6 months ago
Updated 24 April 2024, 2 months ago

Problem/Motivation

I tried to install the theme, but got this error immediately:

The website encountered an unexpected error. Try again later.

TypeError: strrpos(): Argument #1 ($haystack) must be of type string, array given in strrpos() (line 294 of themes/contrib/sailor/sailor.theme).

This was on a pretty clean version of Drupal 10.2. (Just a bit of migration work beforehand.)

Happy to help debug if you like.

TIA.

๐Ÿ› Bug report
Status

RTBC

Version

3.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States bogdog400

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

Merge Requests

Comments & Activities

  • Issue created by @bogdog400
  • Assigned to samir_shukla
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia samir_shukla bareilly
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia samir_shukla bareilly

    Hi, I have created the patch for the above issue. Please review.

  • Status changed to Needs review 6 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia samir_shukla bareilly
  • Issue was unassigned.
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia samir_shukla bareilly
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States bogdog400

    The patch works for me and solves that problem.

    Now I'm seeing this problem:

    Warning: file_get_contents(themes/contrib/sailor/dist/css/main.css): Failed to open stream: No such file or directory in Drupal\Core\Asset\CssCollectionOptimizerLazy->generateHash() (line 43 of core/lib/Drupal/Core/Asset/AssetGroupSetHashTrait.php).
    

    It seems like the subdirectory "dist" is mentioned in several places, but I don't see it.

    For instance:

    sailor.libraries.yml:    dist/js/main.js:
    sailor.libraries.yml:      dist/css/main.css:
    

    But here are the files in my root:

    2-3412174.patch  config              images       package.json       sailor.breakpoints.yml  sailor.theme    tests
    bin              docker-compose.yml  js           package-lock.json  sailor.info.yml         screenshot.png  webpack.config.js
    composer.json    Dockerfile          LICENSE.txt  phpcs.xml          sailor.layouts.yml      scss
    composer.lock    favicon.ico         logo.svg     README.txt         sailor.libraries.yml    templates
    
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia samir_shukla bareilly

    Hi, have you followed up with the license requirements and the npm ci command mentioned on the module page. I am not sure; maybe be this can be the reason for the issue. I hope it helps.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Gautam_105@

    Gautam_105@ โ†’ made their first commit to this issueโ€™s fork.

  • Status changed to RTBC 2 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Gautam_105@

    @samir_shukla , i have tested given patch that have fixed above issue so created MR for the same and moving RTBC++

Production build 0.69.0 2024