Ошибки при ручной сборке Commerce

Главные вкладки

Аватар пользователя alexo alexo 25 июля 2020 в 17:31

Здравствуйте! Подключаю модули из commerce kickstart вручную. При создании материала с полем типа ссылка на товар выдаются ошибки и предупреждения. Как это исправить? Сайт новый. Или может быть лучше готовый Commerce kickstart поставить?

EntityMetadataWrapperException: Unknown data property commerce_product. в функции EntityStructureWrapper->getPropertyInfo() (строка 354 в файле  sites/all/modules/entity/includes/entity.wrapper.inc).

В файле

 /**
   * Gets the info about the given property.
   *
   * @param $name
   *   The name of the property. If not given, info about all properties will
   *   be returned.
   * @throws EntityMetadataWrapperException
   *   If there is no such property.
   * @return
   *   An array of info about the property.
   */

  public function getPropertyInfo($name = NULL) {
    $this->spotInfo();
    if (!isset($name)) {
      return $this->propertyInfo['properties'];
    }
    if (!isset($this->propertyInfo['properties'][$name])) {
      throw new EntityMetadataWrapperException('Unknown data property ' . check_plain($name) . '.');
    }
    return $this->propertyInfo['properties'][$name] + $this->info['property defaults'] + $this->propertyInfoDefaults;
  }

  /**
   * Returns a reference on the property info.
   *
   * If possible, use the property info alter callback for spotting metadata.
   * The reference may be used to alter the property info for any remaining
   * cases, e.g. if additional metadata has been asserted.
   */

  public function &refPropertyInfo() {
    return $this->propertyInfo;

Еще при включении модулей была ошибка

Error: Call to undefined function commerce_kickstart_rebuild_feature() в функции commerce_kickstart_slideshow_enable() (строка 9 в файле  sites/all/modules/commerce_kickstart_slideshow.install).

Слайдшоу модуль вообще не обязательно нужен, его могу выключить.

И еще в процессе работы было предупреждение.

Warning: file_get_contents(/chosen.jquery.min.js): failed to open stream: No such file or directory в функции _locale_parse_js_file() (строка 1527 в файле public_html/includes/locale.inc).

Список модулей, которые включались недавно
drush en file_entity -y

chosen
colorbox
commerce_add_to_cart_confirmation
commerce_product entities
commerce_backoffice
commerce_autosku
commerce_backoffice_product, commerce_backoffice_order, commerce_backoffice_content
commerce_checkout_progress
commerce_checkout_redirect для анонимов
commerce_discount
commerce_extra_price_formatters
commerce_fancy_attributes
commerce_features
commerce_kickstart_block
commerce_kickstart_dfp
commerce_kickstart_comment
commerce_kickstart_help
commerce_kickstart_menus
commerce_kickstart_order
commerce_kickstart_product_ui
commerce_kickstart_search
commerce_kickstart_slideshow
commerce_kickstart_taxonomy
commerce_kickstart_user
commerce_message
commerce_search_api
current_search
commerce_customer_ui
entity
entity_token
field_ui
filter
commerce_order
commerce_order_ui
page_manager
commerce_payment
commerce_price
commerce_product
commerce_product_pricing
commerce_product_ui
rules_admin
field_sql_storage
views_bulk_operations

Комментарии

Аватар пользователя alexo alexo 25 июля 2020 в 18:21

После выключения вышеперечисленных модулей через drush
"Error: Class 'EntityReference_BehaviorHandler_Broken' not found в функции _entityreference_get_behavior_handler() (строка 198 в файле
sites/all/modules/entityreference/entityreference.module)."

После включения модуля commerce_product entities через drush

Может быть дело в настройках на сервере связи с базой данных?
До коммерс все было в порядке на этом сервере.