stephaneerard / dmCommercePlugin

a Diem plugin adding e-commerce features
Other
4 stars 1 forks source link

Problems #1

Open fospald opened 13 years ago

fospald commented 13 years ago

Hi, I used your diem and added this plugin now I get some strange errors when adding suppliers

http://diem-test.de/admin_dev.php/commerce/products/suppliers/new

Unknown record property / related component "dm_com_product_id" on "DmComSupplier" stack trace

* at ()
  in SF_SYMFONY_LIB_DIR/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record/Filter/Standard.php line 55 ...
          52.      */
          53.     public function filterGet(Doctrine_Record $record, $name)
          54.     {
          55.         throw new Doctrine_Record_UnknownPropertyException(sprintf('Unknown record property / related component "%s" on "%s"', $name, get_class($record)));
          56.     }
          57. }

and

http://diem-test.de/admin_dev.php/commerce/product-definitions/product-types/index

500 | Internal Server Error | sfRenderException The template "_dm_ns_parent_id.php" does not exist or is unreadable in "". stack trace

* at ()
  in SF_SYMFONY_LIB_DIR/view/sfView.class.php line 364 ...
         361.       }
         362.       else
         363.       {
         364.         throw new sfRenderException(sprintf('The template "%s" does not exist or is unreadable in "%s".', $this->template, $this->directory));
         365.       }
         366.     }
         367.   }

any ideas?

stephaneerard commented 13 years ago

Hello,

This plugin is clearly not finished ! It really needs more works.

I'll try to keep on it as of now, but have many things to get done before (releasing 5.4 :o)

Regards,

stephaneerard commented 13 years ago

The second problem has been fixed.

I'll fix the first one latter.

stephaneerard commented 13 years ago

Hmm and don't use my Diem ! Uses original one from http://www.github.com/diem-project/diem instead :)

fospald commented 13 years ago

Hi, I'm sorry now I created a category and want to edit it: (fresh diem installation without any errors)

http://diem-test.de/admin_dev.php/commerce/categories/categories/edit/pk/1

500 | Internal Server Error | Doctrine_Table_Exception Unknown relation alias Products stack trace

* at ()
  in SF_ROOT_DIR/lib/vendor/diem/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/lib/Doctrine/Relation/Parser.php line 237 ...
         234.
         235.             return $this->getRelation($alias, false);
         236.         } else {
         237.             throw new Doctrine_Table_Exception('Unknown relation alias ' . $alias);
         238.         }
         239.     }

240. * at Doctrine_Relation_Parser->getRelation('Products', ) in SF_ROOT_DIR/lib/vendor/diem/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/lib/Doctrine/Relation/Parser.php line 235 ...

  1. if ($recursive) {
  2. $this->getRelations();
  3. return $this->getRelation($alias, false);
  4. } else {
  5. throw new Doctrine_Table_Exception('Unknown relation alias ' . $alias);
  6. }