hiqdev / asset-packagist

Asset Packagist
https://asset-packagist.org
BSD 3-Clause "New" or "Revised" License
247 stars 24 forks source link

composer show -t result in error: strtok() expects parameter 1 to be string, null given #152

Closed Oleksii909 closed 1 year ago

Oleksii909 commented 1 year ago
image

My composer.json:

  "name": "elevatedthird/paragon-base",
  "description": "A Composer-based installation template for the Paragon Drupal 8 Distribution",
  "type": "project",
  "license": "GPL-2.0-or-later",
  "authors": [
    {
      "name": "Elevated Third",
      "email": "info@elevatedthird.com"
    }
  ],
  "repositories": [
    {
      "type": "composer",
      "url": "https://packages.drupal.org/8"
    },
    {
      "type": "composer",
      "url": "https://asset-packagist.org"
    }
  ],
  "require-dev": {
    "drupal/drupal-extension": "^4.0"
  },
  "require": {
    "bower-asset/chosen": "^1.8",
    "bower-asset/lazysizes": "^5.2",
    "composer/installers": "^1.10",
    "cweagans/composer-patches": "~1.0",
    "drupal/address": "^1.0",
    "drupal/admin_toolbar": "^3.0",
    "drupal/advagg": "^5.0",
    "drupal/allowed_formats": "^1.1",
    "drupal/backup_migrate": "^5.0@RC",
    "drupal/better_exposed_filters": "^5.0@beta",
    "drupal/block_field": "^1.0@alpha",
    "drupal/chosen": "^3.0",
    "drupal/ckeditorheight": "^1.0",
    "drupal/components": "^2.2",
    "drupal/config_update": "^1.0",
    "drupal/core": "9.4.5",
    "drupal/core-composer-scaffold": "~9.4.5",
    "drupal/csv_serialization": "^2.0@beta",
    "drupal/devel": "^4.0",
    "drupal/embed": "^1.0",
    "drupal/entity": "^1.0",
    "drupal/entity_browser": "^2.5",
    "drupal/entity_embed": "^1.0",
    "drupal/environment_indicator": "~4.0.0",
    "drupal/fast_404": "2.x-dev",
    "drupal/field_group": "^3.0",
    "drupal/field_hidden": "^2.0",
    "drupal/field_tools": "dev-1.x",
    "drupal/focal_point": "^1.0",
    "drupal/gin": "3.x-dev",
    "drupal/gin_lb": "^1.0@beta",
    "drupal/gtm": "^1.6",
    "drupal/http_cache_control": "^2.0",
    "drupal/imageapi_optimize": "~4.0.0@beta",
    "drupal/imageapi_optimize_gd": "^2.0@beta",
    "drupal/imageapi_optimize_webp": "2.x-dev",
    "drupal/inline_block_title_automatic": "^1.0",
    "drupal/inline_entity_form": "^1.0",
    "drupal/layout_builder_browser": "^1.1",
    "drupal/layout_builder_modal": "^1.1",
    "drupal/layout_builder_operation_link": "^2.0",
    "drupal/layout_builder_restrictions": "^2.7",
    "drupal/lazy": "^3.4",
    "drupal/link_attributes": "^1.0",
    "drupal/linkit": "~6.0.0@beta",
    "drupal/login_security": "^2.0",
    "drupal/mailsystem": "^4.0",
    "drupal/markup": "^1.0",
    "drupal/media_responsive_thumbnail": "^1.0",
    "drupal/memcache": "^2.0",
    "drupal/menu_block": "^1.0",
    "drupal/metatag": "^1.0",
    "drupal/name": "^1.0",
    "drupal/paragon_core": "1.0.x-dev",
    "drupal/paragon_gin": "1.0.x-dev",
    "drupal/paragon_themekit": "^1.0@alpha",
    "drupal/paragraphs": "^1.0",
    "drupal/paragraphs_browser": "^1.0",
    "drupal/path_redirect_import": "^2.0",
    "drupal/pathauto": "^1.0",
    "drupal/purge": "^3.0@beta",
    "drupal/quicklink": "^2.0",
    "drupal/redirect": "^1.0",
    "drupal/robotstxt": "^1.4",
    "drupal/scheduler": "^1.0",
    "drupal/scheduler_content_moderation_integration": "^1.3",
    "drupal/search_api": "^1.0",
    "drupal/search_api_solr": "^4.0",
    "drupal/seckit": "~2.0.0@RC",
    "drupal/security_review": "^1.0",
    "drupal/shield": "^1.0",
    "drupal/simple_sitemap": "^4.0",
    "drupal/site_settings": "^1.0",
    "drupal/sitemap": "^2.0@beta",
    "drupal/smart_trim": "^1.0",
    "drupal/svg_image_field": "^1.2",
    "drupal/svg_upload_sanitizer": "^1.0@alpha",
    "drupal/swiftmailer": "^2.0",
    "drupal/system_status": "^2.0",
    "drupal/twig_field_value": "~2.0.0",
    "drupal/ultimate_cron": "^2.0",
    "drupal/username_enumeration_prevention": "^1.1",
    "drupal/views_bulk_edit": "^2.0",
    "drupal/views_bulk_operations": "^4.0",
    "drush/drush": "~10.0",
    "npm-asset/jquery-ui-touch-punch": "dev-master",
    "oomphinc/composer-installers-extender": "^2.0",
    "symfony/css-selector": "~3.3",
    "zaporylie/composer-drupal-optimizations": "^1.1"
  },
  "conflict": {
    "drupal/drupal": "*"
  },
  "minimum-stability": "dev",
  "prefer-stable": true,
  "autoload": {
    "classmap": [
      "scripts/composer/ScriptHandler.php"
    ]
  },
  "scripts": {
    "pre-install-cmd": [
      "DrupalProject\\composer\\ScriptHandler::checkComposerVersion"
    ],
    "pre-update-cmd": [
      "DrupalProject\\composer\\ScriptHandler::checkComposerVersion"
    ],
    "post-install-cmd": [
      "DrupalProject\\composer\\ScriptHandler::createRequiredDirectories",
      "DrupalProject\\composer\\ScriptHandler::createRequiredFiles",
      "DrupalProject\\composer\\ScriptHandler::removeGitSubmodules",
      "DrupalProject\\composer\\ScriptHandler::themeStartkitCopy"
    ],
    "post-update-cmd": [
      "DrupalProject\\composer\\ScriptHandler::createRequiredDirectories",
      "DrupalProject\\composer\\ScriptHandler::createRequiredFiles",
      "DrupalProject\\composer\\ScriptHandler::removeGitSubmodules",
      "DrupalProject\\composer\\ScriptHandler::themeStartkitCopy"
    ]
  },
  "extra": {
    "installer-types": [
      "bower-asset",
      "npm-asset"
    ],
    "installer-paths": {
      "docroot/core": ["type:drupal-core"],
      "docroot/libraries/{$name}": [
        "type:drupal-library",
        "type:bower-asset",
        "type:npm-asset"
      ],
      "docroot/modules/contrib/{$name}": ["type:drupal-module"],
      "docroot/profiles/contrib/{$name}": ["type:drupal-profile"],
      "docroot/themes/contrib/{$name}": ["type:drupal-theme"],
      "drush/contrib/{$name}": ["type:drupal-drush"]
    },
    "enable-patching": true,
    "drupal-scaffold": {
      "locations": {
        "web-root": "./docroot"
      },
      "file-mapping": {
        "[web-root]/robots.txt": false,
        "[web-root]/.htaccess": {
          "mode": "replace",
          "path": "assets/scaffold/files/htaccess",
          "overwrite": false
        },
        "[web-root]/.editorconfig": {
          "mode": "replace",
          "path": "assets/scaffold/files/editorconfig",
          "overwrite": false
        },
        "[web-root]/.gitattributes": {
          "mode": "replace",
          "path": "assets/scaffold/files/gitattributes",
          "overwrite": false
        },
        "[web-root]/sites/default/services.php": {
          "mode": "replace",
          "path": "assets/scaffold/files/default.services.yml",
          "overwrite": false
        },
        "[web-root]/sites/default/local.services.yml": {
          "mode": "replace",
          "path": "assets/scaffold/files/local.services.yml",
          "overwrite": false
        },
        "[web-root]/sites/default/cloud-memcache-d8+.php": {
          "mode": "replace",
          "path": "assets/scaffold/files/cloud-memcache-d8+.php",
          "overwrite": false
        },
        "[web-root]/sites/default/settings.acquia.php": {
          "mode": "replace",
          "path": "assets/scaffold/files/settings.acquia.php",
          "overwrite": false
        },
        "[web-root]/sites/default/settings.lando.php": {
          "mode": "replace",
          "path": "assets/scaffold/files/settings.lando.php",
          "overwrite": false
        },
        "[web-root]/sites/default/settings.fast404.php": {
          "mode": "replace",
          "path": "assets/scaffold/files/settings.fast404.php",
          "overwrite": false
        },
        "[web-root]/sites/default/settings.php": {
          "mode": "replace",
          "path": "assets/scaffold/files/settings.php",
          "overwrite": false
        }
      }
    },
    "composer-exit-on-patch-failure": true,
    "patchLevel": {
      "drupal/core": "-p2"
    },
    "patches": {
      "drupal/core":{
        "Field Groups marked as required are missing red asterisk": "https://www.drupal.org/files/issues/2020-09-18/required-asterisk-missing--3171835--2.patch",
        "Reverting entity revisions that contain custom blocks erroneously triggers EntityChangedConstraint": "https://www.drupal.org/files/issues/2021-04-06/3053881-3049332-45.patch"
      },
      "drupal/paragraphs": {
        "Affix correct langcode to paragraph in layout builder": "https://www.drupal.org/files/issues/2020-06-25/paragraphs-2901390-51.patch",
        "Paragraphs do not render: access check for 'view' fail when using layout builder + custom blocks & content revisions because the incorrect parent revision ID is being passed in ParagraphAccessControlHandler::checkAccess(": "https://www.drupal.org/files/issues/2020-07-08/access-controll-issue-3090200-22.patch"
      }
    }
  },
  "config": {
    "sort-packages": true,
    "platform-check": false,
    "allow-plugins": {
      "composer/installers": true,
      "cweagans/composer-patches": true,
      "drupal/core-composer-scaffold": true,
      "oomphinc/composer-installers-extender": true,
      "zaporylie/composer-drupal-optimizations": true
    }
  }
}
dvaldaliso commented 1 year ago

Tengo un error similar error

SilverFire commented 1 year ago

Hello! I've just checked the server and don't see any defects. Can you provide a minimal reproducible set of requirements in composer.json, that will highlight the problem?

image
{
    "name": "silverfire/test",
    "require": {
        "bower-asset/chosen": "*"
    },
    "repositories": [
        {
            "type": "composer",
            "url": "https://asset-packagist.org"
        }
    ]
}
dvaldaliso commented 1 year ago

Yes I added asset-package.org I show in the image add assets.jpg I have the error that show you in the image errror.jpg

El lun, 12 dic 2022 a las 11:14, Dmytro Naumenko @.***>) escribió:

Hello! I've just checked the server and don't see any defects. Can you provide a minimal reproducible set of requirements in composer.json, that will highlight the problem?

[image: image] https://user-images.githubusercontent.com/4499203/207096175-d9e198ee-51ae-4015-8819-eccdaf970683.png

{ "name": "silverfire/test", "require": { "bower-asset/chosen": "*" }, "repositories": [ { "type": "composer", "url": "https://asset-packagist.org" } ] }

— Reply to this email directly, view it on GitHub https://github.com/hiqdev/asset-packagist/issues/152#issuecomment-1346811781, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMH6ZNPKJ5KEP476ZPDUZJDWM5FODANCNFSM6AAAAAASRXBG5E . You are receiving this because you commented.Message ID: @.***>