Author Topic: Products kicked out of category on save  (Read 2966 times)

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3165
  • VirtueMart Version: 3.6.11
Re: Products kicked out of category on save
« Reply #15 on: May 05, 2020, 09:40:40 am »
Kicked out - is not what I think is happening here

Check the listing of the categories - I think you will find that current categories for the item along with the category drop list is empty!

Therefore on a save - it stores no setting for category.

Check console and see if any js errors or php errors

A fix was made to stop this happening i.e dont store "blank categories" if the category listing has failed to load.

regards
A

Joomla 3.9.18
php 7.3

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9651
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Products kicked out of category on save
« Reply #16 on: May 05, 2020, 09:43:05 am »
have u gone through this post step by step trying the suggestions?
http://forum.virtuemart.net/index.php?topic=144464.0
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

melsonmarketing

  • Jr. Member
  • **
  • Posts: 64
Re: Products kicked out of category on save
« Reply #17 on: May 05, 2020, 10:18:57 am »
Thanks for your replies.

I didn't check the thread suggested by GJC Web Design later.

Attached some screenshots that might make it clearer:

Screen1 shows, that the categories are there
Screen2 shows the problem to assign the product to the cat
Screen3 is (a part of) the category overview
Screen4a is a product before changes
Screen4b after saving changes - no category. (wasn't allowed to post)


Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2750
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Products kicked out of category on save
« Reply #18 on: May 05, 2020, 10:24:57 am »
Screenshots ?

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)

melsonmarketing

  • Jr. Member
  • **
  • Posts: 64
Re: Products kicked out of category on save
« Reply #19 on: May 05, 2020, 10:29:10 am »
Sorry Jörgen - missed to save.
Thanks for your hint

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2750
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Products kicked out of category on save
« Reply #20 on: May 05, 2020, 10:50:22 am »
Inconsistent type for the dbase files ? Collation ?

How does the category Kleider look ? Published ?

Jörgen
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3165
  • VirtueMart Version: 3.6.11
Re: Products kicked out of category on save
« Reply #21 on: May 05, 2020, 11:02:46 am »
Looks like it is as I said

There are NO categories loaded on the product page which is the first issue

It looks like you have something in your setup that is causing issues - and GJC noted such things in the related article

One observation:
I reported categories being removed - this was due to the fast save issue and was resolved by the VM team. That issue is no longer causing any problems and has been working for some time.

So that leads to 2 questions:

1 - Why are your categories on the product page not getting loaded - what is your setup that results in this.
2 - Why is VM allowing a product save that is not detecting non loaded categories and thus allowing an "empty" category value to be stored.

regards
A

Joomla 3.9.18
php 7.3

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4329
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Products kicked out of category on save
« Reply #22 on: May 06, 2020, 00:25:26 am »
Perhaps PHP max post size problem or something similar?
It's hard to say if you dont have all informations.
 

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9651
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Products kicked out of category on save
« Reply #23 on: May 06, 2020, 12:10:07 pm »
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

melsonmarketing

  • Jr. Member
  • **
  • Posts: 64
Re: Products kicked out of category on save
« Reply #24 on: May 08, 2020, 10:01:24 am »
Thank you all.

@ Jörgen: collation is okay and fixed with admintools, all categories in use are published

@ AH: you're right: On product-view level the categories are not being loaded

@ Studio 42: post_max_size is set to 64MB, memory_limit 256 MB - shouldn't be a problem as I have severeal working shops on the same server with the same setup

@ GJC WebDesign: Yep, that's working - try here: https://www.deko-gama.de

The problem occurs only on productview-level. At the moment we can fix it by using the mass assignment to categories function - but this is very frustrating work as it has to be done after each product edit...

Stay safe and have a nice weekend.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9651
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Products kicked out of category on save
« Reply #25 on: May 08, 2020, 11:00:18 am »
Quote
@ GJC WebDesign: Yep, that's working - try here: https://www.deko-gama.de

we cannot check this as u have to be logged in as an admin

but screenshot what returns
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

melsonmarketing

  • Jr. Member
  • **
  • Posts: 64
Re: Products kicked out of category on save
« Reply #26 on: May 08, 2020, 11:20:05 am »
Ouch - sorry I missed the admin-part in tzhe URL :-(

But here's a screenshot - looks okay I think

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9651
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Products kicked out of category on save
« Reply #27 on: May 08, 2020, 11:40:22 am »
yes-- looks fine

be aware that any php notices etc that are returned in the response will break the select .. so do this check on a live edit of a product
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation