Hello farhadhf ,

greate work but i cannot use it under the distribution above

i can install the module without problems but when i try to configure the module under admin/commerce i got the error that non admin objects are available,

is this module onyl for ecommerce 1.x?

Thanks in advance!

CommentFileSizeAuthor
#2 screenshot_15.jpg77.71 KBiTiZZiMO
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

farhadhf’s picture

Status: Active » Postponed (maintainer needs more info)

Hi,
Commerce 2.0? do you mean commerce_kickstart 2.0? The latest version of Commerce is 7.x-1.7, while commerce 2.0 is being planned and developed for Drupal 8!

In any case, I need to know exactly what you were trying to do and what error you got (path to the page where you saw the error).

Thanks!

iTiZZiMO’s picture

FileSize
77.71 KB

Hello Thanks für Quick Reply,

sorry yes i mean drupal commerce kickstart 2.0

When i goto admin/modules and search for marketplace i will found your module
if i click on configure i see the screen attachted

No Admin Settings

when i click on a product the following error will raises:

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'testshop.t' doesn't exist: SELECT t.* FROM {} t WHERE (name = :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] => commerce_store ) in DBObject->load() (Zeile 111 von /data/disk/o1/distro/002/commerce-7.x-2.0-7.18.1/sites/all/modules/eck/eck.classes.inc).

i use eck version 7.x-2.0-rc2 and l10n_upodate with german

Thanks in advance!

farhadhf’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Hey, I can't reproduce this problem (maybe this is fixed in previous commits?). Please try again and if you can reproduce it, reopen this issue and give me steps for reproducing this. Thanks

fercoc’s picture

Hallo.

I'm testing commerce_marketplace with Commerce kickstart 2.0 and I have the same problem: When i go to admin/modules and search for marketplace i will found your module but when I click on configure I see the message reported by iTiZZiMO.

Thank you.

akolonin’s picture

Version: » 7.x-1.x-dev
Issue summary: View changes

I use:
Drupal 7.22
Commerce 7.x-1.8
commerce_marketplace-7.x-1.x-dev OR commerce_marketplace-7.x-1.0-beta2
eck-7.x-2.0-rc2

When trying to enable eck module, there is a crash with message:
Warning: in_array() expects parameter 2 to be array, null given в функции DBObject->__set() (строка 50 в файле /vhosts/akolonin/vp.akolonin.dev.vitaportal.ru/sites/all/modules/eck/eck.classes.inc).
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'akolonin_vp.t' doesn't exist: SELECT t.* FROM {} t WHERE (name = :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] => commerce_store ) в функции DBObject->load() (строка 111 в файле /vhosts/akolonin/vp.akolonin.dev.vitaportal.ru/sites/all/modules/eck/eck.classes.inc).

Steps:
1. Get clean installation with Drupal Commerce 7.x-1.8
2. Install Commerce Marketplace (commerce_marketplace-7.x-1.x-dev OR commerce_marketplace-7.x-1.0-beta2) and Eck (eck-7.x-2.0-rc2)
3. Enable Eck
Expected: Module enabled
Actual: Crash

Reproducible 100%

akolonin’s picture

Component: User interface » Code
Priority: Normal » Critical
Status: Closed (cannot reproduce) » Needs work

Re-open as obviuously critical

farhadhf’s picture

What version of the ECK module are you using?

UPDATE: Sorry, I just saw that you're using ECK version 2, Looking into this.

subigor’s picture

Same here.
Using ECK 7.x-2.0-rc3 + Commerce Kickstart 7.x-2.15
I tried both marketplace beta and dev with the same result.

andrews501’s picture

Hello,

I'm using a local computer to test this module with the following characteristics:

PHP 5.3.28
PHP memory limit 256M
Database system version: MySQL 5.1.66-community-log

I installed:

Commerce Kickstart (commerce_kickstart-7.x-2.15) with Drupal 7.28. I selected import of demo site with products, taxes, and all content including slideshows.

Then I installed:
Entity Construction Kit 7.x-2.0-rc3+15-dev (apparently with ECK 7.x-2.0-rc3 doesn't work so I tried the ECK dev version)
Commerce Store 7.x-1.0-beta2+8-dev
Commerce Store Permissions 7.x-1.0-beta2+8-dev (I also tried with Commerce Marketplace and store 7.x-1.0-beta2 but had the same problem exposed below, I did #6 as well)

In Entity types/Commerce Store/Store I added my store name. I checked my store view and eveything worked fine. However, I didn't see in my store view the list of pre-populated demo products that were created previously under my admin username during the importation of the demo site.

I noticed that if I do edit to each demo product there is a new area where my store name can be added manually. Also, I noticed that if I edit the prepoluated slideshow content, there is not a new area where my store can be referenced as in the demo products.

After, I installed:
Commerce Marketplace 7.x-1.0-beta2+8-dev
Commerce Marketplace Order 7.x-1.0-beta2+8-dev
Commerce marketplace shipping method 7.x-1.0-beta2+8-dev

However, when I go to Home, to see the slideshow previously created with my admin username, I found the following error and nothing else can be seen:

DatabaseTransactionOutOfOrderException: in DatabaseConnection->rollback() (line 1061 of C:\Users\....\Sites\devdesktop\commerce_kickstart-7.x-2.15-core\includes\database\database.inc).

Any suggestion will be greatly appreciated.

In order to get back to my demo website I uninstalled:
Commerce Marketplace 7.x-1.0-beta2+8-dev
Commerce Marketplace Order 7.x-1.0-beta2+8-dev
Commerce marketplace shipping method 7.x-1.0-beta2+8-dev

Many thanks

viibfa’s picture

I installed Commerce Marketplace after updating ECK to 7.x-2.0-rc3 and removing lines 27-29 in commerce_store.install (it was a workaround for a problem with the previous version of ECK).

This was the removed code in commerce_marketplace/modules/commerce_store/commerce_store.install

  // This is a workaround for fixing http://drupal.org/node/1365602
  // @TODO: Remove this after the issue is fixed.
  drupal_get_schema('eck_commerce_auction_bid', TRUE);

After this all the Commerce Marketplace modules worked with no problems!

andrews501’s picture

I tried #10 on #9 but the error persists.

  • farhadhf committed 8d270fa on 7.x-1.x
    #2004534 Removed legacy workaround code
    
farhadhf’s picture

Status: Needs work » Postponed (maintainer needs more info)

I just installed the latest dev version of commerce_marketplace on commerce_kickstart 2.15 with the latest dev version of ECK without any problems.
I need a backtrace to be able to track down this issue.

andrews501’s picture

I downloaded the latest dev (10/7/2014) of ECK and commerce marketplace.

I did the following using #9 (with kickstart demo store content):

1.Installed ECK kit.
2.Installed Store and Store permissions, but I receive the following error:

Error message
Warning: array_keys() expects parameter 1 to be array, null given in drupal_schema_fields_sql() (line 7215 of C:\Users\....\Sites\devdesktop\commerce_kickstart-7.x-2.15-core\includes\common.inc).

However, I still was able to install the other parts of the commerce marketplace module.

3.Installed Commerce Marketplace, Commerce Marketplace Order, and Commerce marketplace shipping method. When I went to the front page I got the following error.

DatabaseTransactionOutOfOrderException: in DatabaseConnection->rollback() (line 1061 of C:\Users\....\Sites\devdesktop\commerce_kickstart-7.x-2.15-core\includes\database\database.inc).

Also I installed Commerce Marketplace Funds, and Commerce Marketplace Funds Withdrawal methods.

I went to /admin/structure/entity-type/commerce_store/store I added My Website Store. Tried again to access to the front page but the error from step 3 remains.

I noticed that Product Variations had :
Label: Store
Machine field: cmp_store
Field type: Entity reference

I created a product and it was created correctly. I filled the entity blank space with My Store name. However, when I clicked on the product to see the view, again I obtained the following error:

DatabaseTransactionOutOfOrderException: in DatabaseConnection->rollback() (line 1061 of C:\Users\....\Sites\devdesktop\commerce_kickstart-7.x-2.15-core\includes\database\database.inc).

Also still I was not able to see the front page content (demo store). I decided to add field cmp_store to other content types (ad push, slideshow, blog, basic page) that were part of the front page. After the field was created, I edited each content item created previously (demo store) and added the My Store name in the blank field (entity reference). By referencing all content including old products I intended to be able to see the front page, however, the error remained.

Then I decided to delete every old content and old products (and their old product variations) and start creating new content, products and product variations from scratch. I started deleting each product variations first and worked well. However, when I tried to delete the product content type (product created before installing ECK and marketplace) then I was not able to delete it and received the following message. I :

Price field is required.

I inserted the Price field value and was able to delete it. I also deleted all other content (ad push, slideshow, blog, basic page). As I deleted all the product and their product variations already, then I went to check the tab ALL VARIATIONS and content management, and it seems that were not deleted, so I tried to delete them again. However, I tried to delete them by bulk and didnt work (didnt receive any error message). Then I tried one by one removing images first but when I clicked on delete to erase the product variation, I received the following error:

DatabaseTransactionOutOfOrderException: in DatabaseConnection->rollback() (line 1061 of C:\Users\....\Sites\devdesktop\commerce_kickstart-7.x-2.15-core\includes\database\database.inc).

I decided to uninstall all components of commerce marketplace and then I was able to access to the front page again (but now without any content as I previously deleted all).

I went to reinstall the commerce marketplace components again but after saving them I received the following message:

Fatal error: Call to a member function entityType() on a non-object in C:\Users\....\Sites\devdesktop\commerce_kickstart-7.x-2.15-core\sites\all\modules\eck\eck.module on line 146

NEW INSTALLATION

I deleted the database and I re-installed everything without any content and when I installed ECK I received the following message:

Warning: array_keys() expects parameter 1 to be array, null given in drupal_schema_fields_sql() (line 7215 of C:\Users\....\Sites\devdesktop\commerce_kickstart-7.x-2.15-core\includes\common.inc).

I continued installing commerce store and store permissions. Then I added a My Store name. After I continue installing the other marketplace components but I got the following error:

Fatal error: Call to a member function entityType() on a non-object in C:\Users\....\Sites\devdesktop\commerce_kickstart-7.x-2.15-core\sites\all\modules\eck\eck.module on line 146

In another new installation without content I installed ECK and then commerce store and store permissions and received this error:

Warning: array_keys() expects parameter 1 to be array, null given in drupal_schema_fields_sql() (line 7215 of C:\Users\....\Sites\devdesktop\commerce_kickstart-7.x-2.15-core\includes\common.inc).

I continued installing commerce marketplace components but after I click save the following message appears :

Fatal error: Call to a member function entityType() on a non-object in C:\Users\....\Sites\devdesktop\commerce_kickstart-7.x-2.15-core\sites\all\modules\eck\eck.module on line 146

SECON NEW INSTALLATION

I deleted the database and installed commerce kikcstart with demo store again. First intalled ECK and all went fine. Then installed commerce store and store permission and received the following message:

Warning: array_keys() expects parameter 1 to be array, null given in drupal_schema_fields_sql() (line 7215 of C:\Users\....\Sites\devdesktop\commerce_kickstart-7.x-2.15-core\includes\common.inc).

After, I installed Commerce Marketplace and Commerce Marketplace Order and all went well. I continued installing Commerce marketplace shipping method and all was good. Then I continued installing Commerce Marketplace Funds and it worked fine. Then I continue installing Commerce Marketplace Funds Withdrawal methods but I received this error:

Fatal error: Call to a member function entityType() on a non-object in C:\Users\....\Sites\devdesktop\commerce_kickstart-7.x-2.15-core\sites\all\modules\eck\eck.module on line 146

And the link was: .../admin/modules/list/confirm

I reloaded it and everything was installed correctly. I went to the front page and the content of the demo store was fine. I clicked on different items of the menu and received this message:

EntityMetadataWrapperException: Unknown data property commerce_discounts. in EntityStructureWrapper->getPropertyInfo() (line 335 of C:\Users\...\Sites\devdesktop\commerce_kickstart-7.x-2.15-core\profiles\commerce_kickstart\modules\contrib\entity\includes\entity.wrapper.inc).

I went to add My Store name in Entity types. I accessed to my store and was able to look at the tabs of products.

Then, when I went to create a new product and when I save it, the following error appeared:

Fatal error: Call to a member function entityType() on a non-object in C:\Users\....\Sites\devdesktop\commerce_kickstart-7.x-2.15-core\sites\all\modules\eck\eck.module on line 146

The product was not saved. I tried again to create a product with My Store name as entity but was not saved either.

I edited a product and its product variations. Then added My Store name in each product variation. When I did preview I received this error:

EntityMetadataWrapperException: Unknown data property commerce_discounts. in EntityStructureWrapper->getPropertyInfo() (line 335 of C:\Users\...\Sites\devdesktop\commerce_kickstart-7.x-2.15-core\profiles\commerce_kickstart\modules\contrib\entity\includes\entity.wrapper.inc).

And when I saved the product the following message appeared:

Fatal error: Call to a member function entityType() on a non-object in C:\Users\....\Sites\devdesktop\commerce_kickstart-7.x-2.15-core\sites\all\modules\eck\eck.module on line 146

Link: .../node/32/edit?destination=admin%2Fcommerce%2Fproducts&

If I click on the view of this product I receive this message:

EntityMetadataWrapperException: Unknown data property commerce_discounts. in EntityStructureWrapper->getPropertyInfo() (line 335 of C:\Users\...\Sites\devdesktop\commerce_kickstart-7.x-2.15-core\profiles\commerce_kickstart\modules\contrib\entity\includes\entity.wrapper.inc).

Hope this helps. I will keep an eye to continue testing it.

Cheers

  • farhadhf committed 068a596 on 7.x-1.x
    #2004534: Rebuild schema cache before creating fields in commerce_store....
farhadhf’s picture

Hey, I just made some changes that should fix the following errors:

Fatal error: Call to a member function entityType() on a non-object in C:\Users\....\Sites\devdesktop\commerce_kickstart-7.x-2.15-core\sites\all\modules\eck\eck.module on line 146

and

Warning: array_keys() expects parameter 1 to be array, null given in drupal_schema_fields_sql() (line 7215 of C:\Users\....\Sites\devdesktop\commerce_kickstart-7.x-2.15-core\includes\common.inc).

this error:

EntityMetadataWrapperException: Unknown data property commerce_discounts. in EntityStructureWrapper->getPropertyInfo() (line 335 of C:\Users\...\Sites\devdesktop\commerce_kickstart-7.x-2.15-core\profiles\commerce_kickstart\modules\contrib\entity\includes\entity.wrapper.inc).

is related to #1872922: EntityMetadataWrapperException: Unknown data property commerce_discounts. - try disabling commerce_discount.
I tried a few times but I couldn't reproduce this error (using Commerce Kickstart 2.15, latest dev version of ECK, latest dev version of Commerce Marketplace, Commerce 1.9, and both PHP 5.3 and 5.5):

DatabaseTransactionOutOfOrderException: in DatabaseConnection->rollback() (line 1061 of C:\Users\....\Sites\devdesktop\commerce_kickstart-7.x-2.15-core\includes\database\database.inc).

I won't be able to fix it without reproducing it (or at least without a backtrace, try installing commerce_devel, it generates error back traces)

Thanks

andrews501’s picture

Ok, I disabled commerce discounts and it works really well. If I dont create My Store, I still can create products as a user without reference to a store. I noticed if then I add My Store, and edit this old product by referencing it to My Store, the product appears in My Store's products tab. If I add My Store, I can create products referenced to My Store, they also appear in My Store's products tab.

After, I uninstalled commerce marketplace and then I replaced it with the latest dev version (12/7/2014) including changes from #16. I also uninstalled ECK kit. During clean installation of ECK and commerce marketplace I didn't see any errors or messages.

I was able to see the Funds and sales tab as well.

However, I noticed that even though I gave permission "Create Own Store" to a sample user in an authenticated role, the sample user couldn't create its own store. Also, as admin user, I couldn't assing or create a store for that sample user. In order to create a store as admin user, I had to go to admin/structure/entity-type/commerce_store/store and add a store. This means I couldn't create My Store through the User Profile Store tab.

farhadhf’s picture

Status: Postponed (maintainer needs more info) » Fixed

You should give "Create new Commerce Stores" permission to authenticated users (/admin/people/permissions#module-commerce_store_access)

When you give this permission to authenticated users they can create stores by visiting /admin/structure/entity-type/commerce_store/store/add - you might wanna create menu item for letting people access this page easily. Also, if you want to change this path you can use ECK Extras.

andrews501’s picture

Ok, I gave "Create new Commerce Stores" permission to authenticated users, and it works fine. Also I added a menu item "Create New Store" using /admin/structure/entity-type/commerce_store/store/add in the user menu, but the item appears next to My Account | Logout, which is not ideal as it is far away from the Stores tab. However, it is the quickest solution.

Another solution more adhoc is done by editing the My Stores view (admin/structure/views/view/my_stores/edit) under the Store tab. I went to Master details, Advanced, No results behavior, Global: Text area and added next to "You don't have any stores." :

Add a <a href="/admin/structure/entity-type/commerce_store/store/add">New Store</a>

So it will look like:

You don't have any stores. Add a New Store

In this manner the user who doesnt have any stores, will be able to create the first. For additional stores would be nice having a button within the Stores tab, however, the solution that I implemented is the following:

In My Stores view I added another field to the table. I selected field Commerce Store: commerce_store type. Then I configured this field in Rewrite results by selecting "Rewrite the output of this field" and "Add a new store". Also I selected "Output this field as a link" and inserted admin/structure/entity-type/commerce_store/store/add

Once the first store is created then next to Edit will appear "Add a new store" in each line.

farhadhf’s picture

You can add the same link in the "My Stores" view header to let people add additional stores easily.

andrews501’s picture

I tried to insert the link admin/structure/entity-type/commerce_store/store/add into My Stores header, but there is not option for adding/selecting a link.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.