Posted by muhittin on July 24, 2015 at 7:04pm
Merhaba Arkadaşlar.
Basic cart modülünü ve gerekli modüllerini kurduktan sonra, durum raporunda şöyle bir hata görünüyor:
Warning - Token - Identified problems
1- The following wildcard or placeholder types are not defined as arrays:
$info['tokens']['basic_cart_order']['products']
2- The following token types are not defined but have placeholders:
$info['types']['basic_cart_order']
Aynı konu şurada açılmış:
https://www.drupal.org/node/2195351
fakat burada sadece 1- maddeyi çözebildim. 2- maddenin çözümünü bulamadım.
Yardımcı olursanız sevinirim.

Comments
Sorunun Çözümü
Sorunu Çözdüm Arkadaşlar.
Şu Sayfa da ki https://www.drupal.org/node/2195351
4 Nolu cevapda Tam Çözüm Yazılmış.
sites/all/modules/basic_cart/basic_cart_order/basic_cart_order.module
dosyasındaki
/**
* Implements hook_token_info().
*/
satırı ile
/**
* Implements hook_tokens().
*/
satırları arasındaki bütün alanı silin
aşağıdaki satırları olduğu gibi bu iki satır arasına yapıştırın.
function basic_cart_order_token_info() {
$info = array();
// Add any new tokens.
$info['types']['basic_cart_order'] = array(
'name' => t('Basic cart order.'),
'description' => t('Tokens related to Basic cart order.'),
);
$info['tokens']['basic_cart_order']['products'] = array(
'name' => t('Product listing.'),
'description' => t('Listing of ordered products.'),
);
// Return them.
return $info;
}
görüntü şöyle olmalı:
...
/**
* Implements hook_token_info().
*/
function basic_cart_order_token_info() {
$info = array();
// Add any new tokens.
$info['types']['basic_cart_order'] = array(
'name' => t('Basic cart order.'),
'description' => t('Tokens related to Basic cart order.'),
);
$info['tokens']['basic_cart_order']['products'] = array(
'name' => t('Product listing.'),
'description' => t('Listing of ordered products.'),
);
// Return them.
return $info;
}
/**
* Implements hook_tokens().
*/
...
Drupal Öğrencisi
İçerik Eklerken Undefined index: ....locale.module sorunu Çözümü
Basic Cart tanımlı node ile içerik eklerken:
Undefined index: add_to_cart in locale_field_entity_form_submit in locale.module 428 satırı hatası düzeltme
sites/all/modules/basic_cart/basic_cart.module
dosyasına aşağıdaki patch uygulayınız.
diff --git a/basic_cart.module b/basic_cart.module
index 964df14..7245f69 100644
--- a/basic_cart.module
+++ b/basic_cart.module
@@ -402,7 +402,7 @@ function basic_cart_form_alter(&$form, &$form_state, $form_id) {
// Check if we are on a product content type.
if (in_array($form_id, $types_)) {
// We are - hiding the add to cart field.
- unset($form['add_to_cart']);
+ $form['add_to_cart']['#access'] = FALSE;
}
}
}
Sorununuz çözülecektir.
orjinal linki:
https://www.drupal.org/files/issues/2169975.patch
Drupal Öğrencisi