Getting errors in drupal-10.1.5 and Drupal-9.5.11

Created on 16 October 2023, about 1 year ago
Updated 8 January 2024, 10 months ago

Problem/Motivation

The errors are verly long so including few parts.

User warning: The following theme is missing from the file system: amp in Drupal\Core\Extension\ExtensionPathResolver->getPathname() (line 63 of core/lib/Drupal/Core/Extension/ExtensionPathResolver.php).
Drupal\Core\Extension\ExtensionPathResolver->getPathname('theme', 'amp') (Line: 85)
Drupal\Core\Extension\ExtensionPathResolver->getPath('theme', 'amp') (Line: 127)
Deprecated function: dirname(): Passing null to parameter #1 ($path) of type string is deprecated in Drupal\Core\Extension\ExtensionPathResolver->getPath() (line 85 of core/lib/Drupal/Core/Extension/ExtensionPathResolver.php).
Drupal\Core\Extension\ExtensionPathResolver->getPath('theme', 'amp') (Line: 127)
Drupal\Core\Asset\LibraryDiscoveryParser->buildByExtension('amp') (Line: 87)
Warning: Undefined array key 1 in Drupal\big_pipe\Render\BigPipe->sendPreBody() (line 333 of core/modules/big_pipe/src/Render/BigPipe.php).
Drupal\big_pipe\Render\BigPipe->sendPreBody('

Steps to reproduce

Install theme with composer in Drupal 10.1.5 with AMP theme 8.x-3.1.

๐Ÿ› Bug report
Status

Closed: works as designed

Version

3.1

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia ravi kant Jaipur

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

Comments & Activities

  • Issue created by @ravi kant
  • Status changed to Closed: works as designed about 1 year ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia ravi kant Jaipur

    The error solved after install AMP Module โ†’ .

  • Status changed to Active about 1 year ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia ravi kant Jaipur

    Still getting below errors.

    TypeError: Unsupported operand types: array + null in Drupal\big_pipe\Render\BigPipe->sendPlaceholders() (line 578 of /app/web/core/modules/big_pipe/src/Render/BigPipe.php)
    #0 /app/web/core/modules/big_pipe/src/Render/BigPipe.php(305): Drupal\big_pipe\Render\BigPipe->sendPlaceholders(Array, Array, Object(Drupal\Core\Asset\AttachedAssets))
    
    Deprecated function: dirname(): Passing null to parameter #1 ($path) of type string is deprecated in Drupal\Core\Extension\ExtensionPathResolver->getPath() (line 85 of /app/web/core/lib/Drupal/Core/Extension/ExtensionPathResolver.php)
    #0 /app/web/core/includes/bootstrap.inc(164): _drupal_error_handler_real(8192, 'dirname(): Pass...', '/app/web/core/l...', 85)
    #1 [internal function]: _drupal_error_handler(8192, 'dirname(): Pass...', '/app/web/core/l...', 85)
    #2 /app/web/core/lib/Drupal/Core/Extension/ExtensionPathResolver.php(85): dirname(NULL)
    #3 /app/web/core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php(127): Drupal\Core\Extension\ExtensionPathResolver->getPath('theme', 'amp')
    
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia ayush.pandey

    Hi @ravikant, Able to reproduce the issue with Drupal 10 and module version 8.x-3.1, but the issue is resolved by installing the respective version of the amp and amptheme, for ex - 8.x-3.1 of amp theme should work with amp 8.x-3.1.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia ravi kant Jaipur
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia ravi kant Jaipur

    The issue is also in Drupal-9.5.11.

  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom rachel_norfolk UK

    Hi - take a look at the final comment in #3394828: AMP Theme Error on simplytest.me that is "The website encountered an unexpected error. Please try again later." โ†’ as the reason for the error you are now seeing in #3 is an incompatibility between AMP and BigPipe module.

    Thereโ€™s a link there to the composer.json changes needed to ensure this doesnโ€™t occur but, for the purposes of simply test.me, just uninstall BigPipe.

  • Status changed to Closed: works as designed 10 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia ravi kant Jaipur

    Thank you @ravi kant

Production build 0.71.5 2024