Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The "add a product" page creates a ghost product the moment you open it #9945

Closed
Tracked by #14763
prestonBot opened this issue Aug 22, 2018 · 23 comments
Closed
Tracked by #14763
Labels
1.7.4.1 Affects versions BO Category: Back Office Bug Type: Bug FO Category: Front Office Minor Severity: minor bug > https://build.prestashop.com/news/severity-classification Must-have Kanban prioritization: issue must be included in next version Old Products Page Concerns the old product page Topwatchers Backlog prioritization: issue reported & followed by +6 people Verified The issue has been reproduced
Milestone

Comments

@prestonBot
Copy link
Collaborator

prestonBot commented Aug 22, 2018

This issue has been migrated from the Forge. Read the original ticket here.

  • Reporter: Shad
  • Created at: Mon, 10 Jul 2017 15:09:26 +0200

Describe the bug

Someone in the german forum found a bug and I managed to reproduce it but it´s a little difficult to explain:
If you create a new product and directly leave to the dashboard for example, the shop frontend shows a blank product in the featured products.
And you can´t delete it because the backend don´t see this product. You can only delete it in the database.
The solution is to deactivate the function that new products directly are online. More infos in the reproduce part...

Steps to reproduce

  1. You need an active featured products module.
  2. Under configure / shop parameters / products, default activation status must set to yes.
  3. Than create a new product without changing anything in the product.
  4. Just directly leave to the dashboard or something else.
  5. Go to the frontoffice of the shop and refresh it.
  6. Check the features products, there should be a blank product.
  7. Check the backoffice, there is no new product.

Additional infos

  • PS version: 1.7.6.0
  • PHP version: 7.2
@prestonBot prestonBot added 1.7.4.1 Affects versions Bug Type: Bug Major Severity: major bug > https://build.prestashop.com/news/severity-classification Old Products Page Concerns the old product page Ready Status: Issue is ready to be worked on Topwatchers Backlog prioritization: issue reported & followed by +6 people labels Aug 22, 2018
@prestonBot
Copy link
Collaborator Author

This comment has been migrated from the Forge. Read the original comment here.

  • Author: vincentbz
  • Created at: Tue, 11 Jul 2017 11:37:03 +0200

il semblerait que Classic affiche tous les produits de la base qui sont display=yes et non tous ceux du catalogue. Donc quand, par défaut, on a des produits activés mais qu'on ne les save pas, ils sont en base et actifs.

@prestonBot
Copy link
Collaborator Author

This comment has been migrated from the Forge. Read the original comment here.

  • Author: ktecho
  • Created at: Sat, 12 Aug 2017 20:28:47 +0200

I don't know how I created my ghost product, but it could be in the same way that the bug reporter. I have a ghost product too that appears in "feature products" and I cannot delete it.

If you need to see something in my store, just say it. If not, I'll delete the product from database in a few days.

Thanks.

@prestonBot
Copy link
Collaborator Author

This comment has been migrated from the Forge. Read the original comment here.

  • Author: marion_francois
  • Created at: Thu, 24 Aug 2017 16:16:41 +0200

Ce problème se pose car PrestaShop insère le produit en base de donnée dès le clique sur "New product", même si rien n'est renseigné dans la fiche produit.

Comportement à revoir lors de la refonte de la page produit

@prestonBot
Copy link
Collaborator Author

This comment has been migrated from the Forge. Read the original comment here.

  • Author: simchgab
  • Created at: Thu, 12 Apr 2018 16:58:06 +0200

Hi, this is mark for major and dont fix it??? in what version is reported? 1.7.1?

Dates

  • Created:10/Jul/17 3:09 PM
    for the next year 2019 may be solved this issue?

Very thanks

@prestonBot
Copy link
Collaborator Author

This comment has been migrated from the Forge. Read the original comment here.

  • Author: khouloud.belguith
  • Created at: Thu, 12 Apr 2018 17:17:41 +0200

Hi,

This issue should be solved in 1.7.4.
Thanks for your patience and your understanding.

Best regards, Khouloud

@prestonBot
Copy link
Collaborator Author

This comment has been migrated from the Forge. Read the original comment here.

  • Author: marion_francois
  • Created at: Thu, 12 Apr 2018 17:20:23 +0200

Hello gabriel simchuk

There are more important issues to solve before this one.
An e-commerce shop have normally some products with names, descriptions, etc 
Creating empty product isn't a basic need.

To solve this issue we need to refact all the product page, so yes it will probably not solved before 2019.
PrestaShop is an open source project, so it can be solved before if someone submit a pull request to solve it

@BenTen
Copy link

BenTen commented Mar 22, 2019

An e-commerce shop have normally some products with names, descriptions, etc
Creating empty product isn't a basic need.

@khouloudbelguith @marionf
Here the problem is not create a product by purpose.

Look:
1/ Set option "Default activation status" to YES
2/ click "New Product"
3/ Touch nothing
4/ Quit the page

The product is created, displayed on FO as "new product" but you can't modify or deactivate it because you can't see it in the BO.

Is this issue can be fix in 1.7.6?

EDIT: If someone has the problem.
To deactivate it or modify it from the BO
1/ Copy-Paste the url of an other product
{PROJECT}/admin123/index.php/sell/catalog/products/99999?_token=573

2/ change the id "99999" by the missing one.

@marionf marionf added BO Category: Back Office FO Category: Front Office labels May 7, 2019
@marionf marionf added Minor Severity: minor bug > https://build.prestashop.com/news/severity-classification and removed Major Severity: major bug > https://build.prestashop.com/news/severity-classification labels May 16, 2019
@marionf marionf added the 1.7.6.0 Affects versions label May 24, 2019
@davidglezz
Copy link
Contributor

davidglezz commented Oct 1, 2019

It seems to be related to the cache.
It would be nice to test if it still happens when the cache is disabled
Related: https://github.com/PrestaShop/ps_featuredproducts/issues/20

@marionf marionf added the Must-have Kanban prioritization: issue must be included in next version label Dec 4, 2019
@marionf marionf added this to Backlog in PrestaShop 1.7.8.0 via automation Dec 4, 2019
@marionf marionf removed this from Backlog in PrestaShop 1.7.8.0 Feb 12, 2020
@Riddik96
Copy link

Can be fixed adding an check on the name of product in the templates

@matks
Copy link
Contributor

matks commented Mar 1, 2020

Can be fixed adding an check on the name of product in the templates

That would work, but it would only hide the real issue 😄. The real issue comes from a bad implementation of the "add a product" page which creates a ghost product the moment you open it (waiting for you to add more informations to link them to this ghost product and make it a real product), and this is what we should rather fix 😉

Also it creates useless SQL rows.

@PierreRambaud
Copy link
Contributor

There are more problem. The SQL requests to check for new products is incomplete and don't check the state.
#18822 (comment)

@alfonsolr09
Copy link

when will it be fixed?

@PierreRambaud
Copy link
Contributor

@alfonsolr09 Feel free to make it fixed for the next release by creating a pull request if you have a proper solution.
We are always glad to receive good pull requests to improve this open source project 😸

@alfonsolr09
Copy link

I'm not a programmer, I don't have the necessary knowledge

if you indicate the path of the files I can try to fix it and do tests

@Caleydon
Copy link
Contributor

Any plan to fix this 3 years old issue? It was reported already multiple times.

@PierreRambaud
Copy link
Contributor

Any plan to fix this 3 years old issue? It was reported already multiple times.

Unfortunately, there are many other issues that are more important and take time to be fixed.
It's an open-source project, if this issue is mandatory for your business, feel free to help us, create a pull request, or use your money to hire someone to do it.

As you can see above, there are more than 1800 issues, and like Wordpress, Drupal, or any other open-source project, we can't do it alone 😉

@Caleydon
Copy link
Contributor

I understand that. I needed any response for my clients which reported to me this bug and read this discussion. Thank you.

@marionf marionf changed the title [BOOM-3438] Ghost Product in Frontend The "add a product" page creates a ghost product the moment you open it Oct 12, 2020
@Koudy1203
Copy link

when will it be fixed?

@hibatallahAouadni hibatallahAouadni added Verified The issue has been reproduced and removed 1.7.6.0 Affects versions labels Apr 7, 2022
@MatShir
Copy link
Contributor

MatShir commented Jun 26, 2023

Should be fixed with the new product page on 8.1! Don't hesitate to open the issue again if the bug is back :)

@MatShir MatShir closed this as completed Jun 26, 2023
@prestashop-issue-bot prestashop-issue-bot bot removed the Ready Status: Issue is ready to be worked on label Jun 26, 2023
@MatShir MatShir added this to the 8.1.0 milestone Jun 26, 2023
@matks
Copy link
Contributor

matks commented Sep 5, 2023

Happy to see this item is finally fixed 😁 in product page v2.

@lordchukz
Copy link

Hi, sorry to bother everyone.

I came up to this thread looking for a solution to my problem.

I am working on a test version of my site as to revamp.

I was deleting products which are of no interest to me anymore when all of a sudden all products disappeared.

I had to go through the import process again and same thing happened.

Today, I manually created a product and viewed it in the front end where it shows, there I realised that all products I thought were delated are still available.

Now, I went back to backend to find that catalog is empty, and not only that, the new created product is gone also with not deleting action.

These products are available in database and front end I I cannot find the reason why they all disappeared.

Screen shot of backend is attached.

Thanks for the assistance if any.

Regards all.
Screenshot 2023-11-22 at 13 55 22

@MatShir
Copy link
Contributor

MatShir commented Nov 24, 2023

Hi @lordchukz,
Can you share the exact steps? When I delete the products from the interface, they are permanently deleted.

@lordchukz
Copy link

Hello @MatShir,

I was working on 8.1.0 when this happened.

I was deleting some unwanted products in batches when at a point, after the delete, all products in catalog were not available in the Catalog -> Products area of my backend.

Products were still available in the front end and database, thus they were not deleted.

This was resolved with the 8.1.2 update.

Thanks for responding.

Regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.7.4.1 Affects versions BO Category: Back Office Bug Type: Bug FO Category: Front Office Minor Severity: minor bug > https://build.prestashop.com/news/severity-classification Must-have Kanban prioritization: issue must be included in next version Old Products Page Concerns the old product page Topwatchers Backlog prioritization: issue reported & followed by +6 people Verified The issue has been reproduced
Projects
None yet
Development

No branches or pull requests