Error creating Product Display node - Drupal Commerce

Events happening in the community are now at Drupal community events on www.drupal.org.
TarekElTabey's picture

I follow the instructions at the documentation in Drupal.org by letter and also in drupalcommerce.org user guide...

I created a content type called Product Display (also when renamed it, the problem persists) through "structure>content types>Add content type" and after the content type is created, I start adding content through "content>add content>product display"
and after I fill all fields necessary, if I clicked preview or save to check the display... I receive this error below:

EntityMetadataWrapperException: Unknown data property commerce_product. in EntityStructureWrapper->getPropertyInfo() (line 339 of /home/mysite/public_html/sites/all/modules/entity/includes/entity.wrapper.inc).

and when checking the line 339 following the link above I find the lines below:

<?php
/**
   * 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;
  }
?>

although the 339 line exactly is:

<?php
throw new EntityMetadataWrapperException('Unknown data property ' . check_plain($name) . '.');
?>

I'm using panels, I don't know if this has any effects, but thought you should know, and if there's another alternative than creating content type for product display please inform me, thanks :)

I guess I said it all, please tell me if I can provide more details, I searched online since morning and can't find a clear solution (tried what I could grasp and nothing worked)...

also, there's one more problem, I don't know any PHP yet, so please bear explaining the solution -if any- to a total noob in that matter,,,

Much appreicated, guys, thanks..

Comments

Is there a product

shadysamir's picture

Is there a product corresponding to this display?

btw, installing commerce profile (distribution) saves you so much work.

i already added a required

TarekElTabey's picture

i already added a required "product reference" field to the "Product Display" content type with the widget "autocomplete text field" so YES, when I add a "product display" node I have to mention a product to be referenced in that field..

I didn't find commerce profile anywhere, do you mean commerce kickstarter?

thanks for your care, Shady :)

You can also use

AhmadZain's picture

You Can Also Use

Commerce Kickstart

Drupal Egypt Manager
Drupal Consultant

Ahmed, thanks for your care

TarekElTabey's picture

Ahmed, thanks for your care ya man :)
Unfortunately it's my first Drupal site, so I just knew about distributions and how useful are they, when I read the documentation andeverything they didn't recommend distibutionsoften so I didn't care about it, and when first read the Drupal Commerce module page I realised that there was "something" called Commerce Kickstarter but I thought it's a theme :S

Anyway, as I said, my first Drupal site so I'm learning new steps for next workflow, and I know that I have to start from the end in sight, Unfortunately I used "AT Everywhere" theme and used Panels and Panels Everywhere modules, and I don't know if I can risk losing what I already did to install Commerce Kickstarter distribution...

I don't know, what do you think?
Can I install a distribution with out losing what I already did with my drupal core and custom modules installs???

Thank, man :)

Egypt

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: